From 29d882980a6894560b1a1e09935f485b0b35de24 Mon Sep 17 00:00:00 2001 From: AWS SDK Swift Automation Date: Fri, 30 Aug 2024 18:59:18 +0000 Subject: [PATCH] chore: Updates version to 0.70.0 --- Package.swift | 2 +- Package.version | 2 +- .../Sources/AWSBackup/BackupClient.swift | 34 +- .../AWSBackup/Sources/AWSBackup/Models.swift | 777 +- .../CloudWatchLogsClient.swift | 10 +- .../Sources/AWSCloudWatchLogs/Models.swift | 122 +- .../Sources/AWSDataZone/DataZoneClient.swift | 882 +- .../Sources/AWSDataZone/Models.swift | 13987 +++++++++------- .../Sources/AWSDataZone/Paginators.swift | 67 + .../Sources/AWSRedshiftData/Models.swift | 226 +- .../AWSRedshiftData/RedshiftDataClient.swift | 8 + packageDependencies.plist | 2 +- 12 files changed, 9887 insertions(+), 6232 deletions(-) diff --git a/Package.swift b/Package.swift index 548e7ab8abc..5d6f4c75a7b 100644 --- a/Package.swift +++ b/Package.swift @@ -255,7 +255,7 @@ func addResolvedTargets() { // MARK: - Generated addDependencies( - clientRuntimeVersion: "0.60.0", + clientRuntimeVersion: "0.61.0", crtVersion: "0.33.0" ) diff --git a/Package.version b/Package.version index acdcb836222..d9bd9500760 100644 --- a/Package.version +++ b/Package.version @@ -1 +1 @@ -0.69.0 \ No newline at end of file +0.70.0 \ No newline at end of file diff --git a/Sources/Services/AWSBackup/Sources/AWSBackup/BackupClient.swift b/Sources/Services/AWSBackup/Sources/AWSBackup/BackupClient.swift index da82d0ad6c6..56a27556fa3 100644 --- a/Sources/Services/AWSBackup/Sources/AWSBackup/BackupClient.swift +++ b/Sources/Services/AWSBackup/Sources/AWSBackup/BackupClient.swift @@ -194,7 +194,7 @@ extension BackupClient { extension BackupClient { /// Performs the `CancelLegalHold` operation on the `CryoControllerUserManager` service. /// - /// This action removes the specified legal hold on a recovery point. This action can only be performed by a user with sufficient permissions. + /// Removes the specified legal hold on a recovery point. This action can only be performed by a user with sufficient permissions. /// /// - Parameter CancelLegalHoldInput : [no documentation found] /// @@ -563,7 +563,7 @@ extension BackupClient { /// Performs the `CreateLegalHold` operation on the `CryoControllerUserManager` service. /// - /// This action creates a legal hold on a recovery point (backup). A legal hold is a restraint on altering or deleting a backup until an authorized user cancels the legal hold. Any actions to delete or disassociate a recovery point will fail with an error if one or more active legal holds are on the recovery point. + /// Creates a legal hold on a recovery point (backup). A legal hold is a restraint on altering or deleting a backup until an authorized user cancels the legal hold. Any actions to delete or disassociate a recovery point will fail with an error if one or more active legal holds are on the recovery point. /// /// - Parameter CreateLegalHoldInput : [no documentation found] /// @@ -636,7 +636,7 @@ extension BackupClient { /// Performs the `CreateLogicallyAirGappedBackupVault` operation on the `CryoControllerUserManager` service. /// - /// This request creates a logical container to where backups may be copied. This request includes a name, the Region, the maximum number of retention days, the minimum number of retention days, and optionally can include tags and a creator request ID. Do not include sensitive data, such as passport numbers, in the name of a backup vault. + /// Creates a logical container to where backups may be copied. This request includes a name, the Region, the maximum number of retention days, the minimum number of retention days, and optionally can include tags and a creator request ID. Do not include sensitive data, such as passport numbers, in the name of a backup vault. /// /// - Parameter CreateLogicallyAirGappedBackupVaultInput : [no documentation found] /// @@ -786,7 +786,7 @@ extension BackupClient { /// Performs the `CreateRestoreTestingPlan` operation on the `CryoControllerUserManager` service. /// - /// This is the first of two steps to create a restore testing plan; once this request is successful, finish the procedure with request CreateRestoreTestingSelection. You must include the parameter RestoreTestingPlan. You may optionally include CreatorRequestId and Tags. + /// Creates a restore testing plan. The first of two steps to create a restore testing plan. After this request is successful, finish the procedure using CreateRestoreTestingSelection. /// /// - Parameter CreateRestoreTestingPlanInput : [no documentation found] /// @@ -3745,7 +3745,7 @@ extension BackupClient { /// Performs the `ListBackupPlanTemplates` operation on the `CryoControllerUserManager` service. /// - /// Returns metadata of your saved backup plan templates, including the template ID, name, and the creation and deletion dates. + /// Lists the backup plan templates. /// /// - Parameter ListBackupPlanTemplatesInput : [no documentation found] /// @@ -3887,7 +3887,7 @@ extension BackupClient { /// Performs the `ListBackupPlans` operation on the `CryoControllerUserManager` service. /// - /// Returns a list of all active backup plans for an authenticated account. The list contains information such as Amazon Resource Names (ARNs), plan IDs, creation and deletion dates, version IDs, plan names, and creator request IDs. + /// Lists the active backup plans for the account. /// /// - Parameter ListBackupPlansInput : [no documentation found] /// @@ -4656,7 +4656,7 @@ extension BackupClient { /// Performs the `ListRecoveryPointsByResource` operation on the `CryoControllerUserManager` service. /// - /// Returns detailed information about all the recovery points of the type specified by a resource Amazon Resource Name (ARN). For Amazon EFS and Amazon EC2, this action only lists recovery points created by Backup. + /// The information about the recovery points of the type specified by a resource Amazon Resource Name (ARN). For Amazon EFS and Amazon EC2, this action only lists recovery points created by Backup. /// /// - Parameter ListRecoveryPointsByResourceInput : [no documentation found] /// @@ -5216,7 +5216,7 @@ extension BackupClient { /// Performs the `ListTags` operation on the `CryoControllerUserManager` service. /// - /// Returns a list of key-value pairs assigned to a target recovery point, backup plan, or backup vault. ListTags only works for resource types that support full Backup management of their backups. Those resource types are listed in the "Full Backup management" section of the [ Feature availability by resource](https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html#features-by-resource) table. + /// Returns the tags assigned to the resource, such as a target recovery point, backup plan, or backup vault. /// /// - Parameter ListTagsInput : [no documentation found] /// @@ -5360,7 +5360,7 @@ extension BackupClient { /// Performs the `PutBackupVaultLockConfiguration` operation on the `CryoControllerUserManager` service. /// - /// Applies Backup Vault Lock to a backup vault, preventing attempts to delete any recovery point stored in or created in a backup vault. Vault Lock also prevents attempts to update the lifecycle policy that controls the retention period of any recovery point currently stored in a backup vault. If specified, Vault Lock enforces a minimum and maximum retention period for future backup and copy jobs that target a backup vault. Backup Vault Lock has been assessed by Cohasset Associates for use in environments that are subject to SEC 17a-4, CFTC, and FINRA regulations. For more information about how Backup Vault Lock relates to these regulations, see the [Cohasset Associates Compliance Assessment.] + /// Applies Backup Vault Lock to a backup vault, preventing attempts to delete any recovery point stored in or created in a backup vault. Vault Lock also prevents attempts to update the lifecycle policy that controls the retention period of any recovery point currently stored in a backup vault. If specified, Vault Lock enforces a minimum and maximum retention period for future backup and copy jobs that target a backup vault. Backup Vault Lock has been assessed by Cohasset Associates for use in environments that are subject to SEC 17a-4, CFTC, and FINRA regulations. For more information about how Backup Vault Lock relates to these regulations, see the [Cohasset Associates Compliance Assessment.](https://docs.aws.amazon.com/aws-backup/latest/devguide/samples/cohassetreport.zip) For more information, see [Backup Vault Lock](https://docs.aws.amazon.com/aws-backup/latest/devguide/vault-lock.html). /// /// - Parameter PutBackupVaultLockConfigurationInput : [no documentation found] /// @@ -5879,7 +5879,7 @@ extension BackupClient { /// Performs the `StopBackupJob` operation on the `CryoControllerUserManager` service. /// - /// Attempts to cancel a job to create a one-time backup of a resource. This action is not supported for the following services: Amazon FSx for Windows File Server, Amazon FSx for Lustre, Amazon FSx for NetApp ONTAP , Amazon FSx for OpenZFS, Amazon DocumentDB (with MongoDB compatibility), Amazon RDS, Amazon Aurora, and Amazon Neptune. + /// Attempts to cancel a job to create a one-time backup of a resource. This action is not supported for the following services: Amazon FSx for Windows File Server, Amazon FSx for Lustre, Amazon FSx for NetApp ONTAP, Amazon FSx for OpenZFS, Amazon DocumentDB (with MongoDB compatibility), Amazon RDS, Amazon Aurora, and Amazon Neptune. /// /// - Parameter StopBackupJobInput : [no documentation found] /// @@ -5950,7 +5950,7 @@ extension BackupClient { /// Performs the `TagResource` operation on the `CryoControllerUserManager` service. /// - /// Assigns a set of key-value pairs to a recovery point, backup plan, or backup vault identified by an Amazon Resource Name (ARN). + /// Assigns a set of key-value pairs to a recovery point, backup plan, or backup vault identified by an Amazon Resource Name (ARN). This API is supported for recovery points for resource types including Aurora, Amazon DocumentDB. Amazon EBS, Amazon FSx, Neptune, and Amazon RDS. /// /// - Parameter TagResourceInput : [no documentation found] /// @@ -6024,7 +6024,7 @@ extension BackupClient { /// Performs the `UntagResource` operation on the `CryoControllerUserManager` service. /// - /// Removes a set of key-value pairs from a recovery point, backup plan, or backup vault identified by an Amazon Resource Name (ARN) + /// Removes a set of key-value pairs from a recovery point, backup plan, or backup vault identified by an Amazon Resource Name (ARN) This API is not supported for recovery points for resource types including Aurora, Amazon DocumentDB. Amazon EBS, Amazon FSx, Neptune, and Amazon RDS. /// /// - Parameter UntagResourceInput : [no documentation found] /// @@ -6097,7 +6097,7 @@ extension BackupClient { /// Performs the `UpdateBackupPlan` operation on the `CryoControllerUserManager` service. /// - /// Updates an existing backup plan identified by its backupPlanId with the input document in JSON format. The new version is uniquely identified by a VersionId. + /// Updates the specified backup plan. The new version is uniquely identified by its ID. /// /// - Parameter UpdateBackupPlanInput : [no documentation found] /// @@ -6170,7 +6170,7 @@ extension BackupClient { /// Performs the `UpdateFramework` operation on the `CryoControllerUserManager` service. /// - /// Updates an existing framework identified by its FrameworkName with the input document in JSON format. + /// Updates the specified framework. /// /// - Parameter UpdateFrameworkInput : [no documentation found] /// @@ -6320,7 +6320,7 @@ extension BackupClient { /// Performs the `UpdateRecoveryPointLifecycle` operation on the `CryoControllerUserManager` service. /// - /// Sets the transition lifecycle of a recovery point. The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define. Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold. Resource types that are able to be transitioned to cold storage are listed in the "Lifecycle to cold storage" section of the [ Feature availability by resource](https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html#features-by-resource) table. Backup ignores this expression for other resource types. This operation does not support continuous backups. + /// Sets the transition lifecycle of a recovery point. The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define. Resource types that can transition to cold storage are listed in the [Feature availability by resource](https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html#features-by-resource) table. Backup ignores this expression for other resource types. Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold. If your lifecycle currently uses the parameters DeleteAfterDays and MoveToColdStorageAfterDays, include these parameters and their values when you call this operation. Not including them may result in your plan updating with null values. This operation does not support continuous backups. /// /// - Parameter UpdateRecoveryPointLifecycleInput : [no documentation found] /// @@ -6466,7 +6466,7 @@ extension BackupClient { /// Performs the `UpdateReportPlan` operation on the `CryoControllerUserManager` service. /// - /// Updates an existing report plan identified by its ReportPlanName with the input document in JSON format. + /// Updates the specified report plan. /// /// - Parameter UpdateReportPlanInput : [no documentation found] /// @@ -6625,7 +6625,7 @@ extension BackupClient { /// Performs the `UpdateRestoreTestingSelection` operation on the `CryoControllerUserManager` service. /// - /// Most elements except the RestoreTestingSelectionName can be updated with this request. RestoreTestingSelection can use either protected resource ARNs or conditions, but not both. That is, if your selection has ProtectedResourceArns, requesting an update with the parameter ProtectedResourceConditions will be unsuccessful. + /// Updates the specified restore testing selection. Most elements except the RestoreTestingSelectionName can be updated with this request. You can use either protected resource ARNs or conditions, but not both. /// /// - Parameter UpdateRestoreTestingSelectionInput : [no documentation found] /// diff --git a/Sources/Services/AWSBackup/Sources/AWSBackup/Models.swift b/Sources/Services/AWSBackup/Sources/AWSBackup/Models.swift index e50a4414ceb..73c32da8bb7 100644 --- a/Sources/Services/AWSBackup/Sources/AWSBackup/Models.swift +++ b/Sources/Services/AWSBackup/Sources/AWSBackup/Models.swift @@ -137,7 +137,7 @@ public struct UpdateRegionSettingsOutput { } extension BackupClientTypes { - /// A list of backup options for each resource type. + /// The backup options for each resource type. public struct AdvancedBackupSetting { /// Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs. Valid values: Set to "WindowsVSS":"enabled" to enable the WindowsVSS backup option and create a Windows VSS backup. Set to "WindowsVSS":"disabled" to create a regular backup. The WindowsVSS option is not enabled by default. If you specify an invalid option, you get an InvalidParameterValueException exception. For more information about Windows VSS backups, see [Creating a VSS-Enabled Windows Backup](https://docs.aws.amazon.com/aws-backup/latest/devguide/windows-backups.html). public var backupOptions: [Swift.String: Swift.String]? @@ -322,9 +322,9 @@ extension BackupClientTypes { public var backupSizeInBytes: Swift.Int? /// Represents the type of backup for a backup job. public var backupType: Swift.String? - /// An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. + /// An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault. public var backupVaultArn: Swift.String? - /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. public var backupVaultName: Swift.String? /// The size in bytes transferred to a backup vault at the time that the job status was queried. public var bytesTransferred: Swift.Int? @@ -338,7 +338,7 @@ extension BackupClientTypes { public var expectedCompletionDate: Foundation.Date? /// Specifies the IAM role ARN used to create the target recovery point. IAM roles other than the default role must include either AWSBackup or AwsBackup in the role name. For example, arn:aws:iam::123456789012:role/AWSBackupRDSAccess. Role names without those strings lack permissions to perform backup jobs. public var iamRoleArn: Swift.String? - /// This is the date on which the backup job was initiated. + /// The date on which the backup job was initiated. public var initiationDate: Foundation.Date? /// This is a boolean value indicating this is a parent (composite) backup job. public var isParent: Swift.Bool @@ -352,7 +352,7 @@ extension BackupClientTypes { public var recoveryPointArn: Swift.String? /// An ARN that uniquely identifies a resource. The format of the ARN depends on the resource type. public var resourceArn: Swift.String? - /// This is the non-unique name of the resource that belongs to the specified backup. + /// The non-unique name of the resource that belongs to the specified backup. public var resourceName: Swift.String? /// The type of Amazon Web Services resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only supported resource type is Amazon EC2. public var resourceType: Swift.String? @@ -522,13 +522,13 @@ extension BackupClientTypes { } extension BackupClientTypes { - /// Contains an array of Transition objects specifying how long in days before a recovery point transitions to cold storage or is deleted. Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, on the console, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold. Resource types that are able to be transitioned to cold storage are listed in the "Lifecycle to cold storage" section of the [ Feature availability by resource](https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html#features-by-resource) table. Backup ignores this expression for other resource types. + /// Specifies the time period, in days, before a recovery point transitions to cold storage or is deleted. Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, on the console, the retention setting must be 90 days greater than the transition to cold after days setting. The transition to cold after days setting can't be changed after a backup has been transitioned to cold. Resource types that can transition to cold storage are listed in the [Feature availability by resource](https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html#features-by-resource) table. Backup ignores this expression for other resource types. To remove the existing lifecycle and retention periods and keep your recovery points indefinitely, specify -1 for MoveToColdStorageAfterDays and DeleteAfterDays. public struct Lifecycle { - /// Specifies the number of days after creation that a recovery point is deleted. Must be greater than 90 days plus MoveToColdStorageAfterDays. + /// The number of days after creation that a recovery point is deleted. This value must be at least 90 days after the number of days specified in MoveToColdStorageAfterDays. public var deleteAfterDays: Swift.Int? - /// Specifies the number of days after creation that a recovery point is moved to cold storage. + /// The number of days after creation that a recovery point is moved to cold storage. public var moveToColdStorageAfterDays: Swift.Int? - /// Optional Boolean. If this is true, this setting will instruct your backup plan to transition supported resources to archive (cold) storage tier in accordance with your lifecycle settings. + /// If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings. public var optInToArchiveForSupportedResources: Swift.Bool? public init( @@ -548,10 +548,10 @@ extension BackupClientTypes { extension BackupClientTypes { /// The details of the copy operation. public struct CopyAction { - /// An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup. For example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. + /// An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup. For example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault. /// This member is required. public var destinationBackupVaultArn: Swift.String? - /// Contains an array of Transition objects specifying how long in days before a recovery point transitions to cold storage or is deleted. Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, on the console, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold. Resource types that are able to be transitioned to cold storage are listed in the "Lifecycle to cold storage" section of the [ Feature availability by resource](https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html#features-by-resource) table. Backup ignores this expression for other resource types. + /// Specifies the time period, in days, before a recovery point transitions to cold storage or is deleted. Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, on the console, the retention setting must be 90 days greater than the transition to cold after days setting. The transition to cold after days setting can't be changed after a backup has been transitioned to cold. Resource types that can transition to cold storage are listed in the [Feature availability by resource](https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html#features-by-resource) table. Backup ignores this expression for other resource types. To remove the existing lifecycle and retention periods and keep your recovery points indefinitely, specify -1 for MoveToColdStorageAfterDays and DeleteAfterDays. public var lifecycle: BackupClientTypes.Lifecycle? public init( @@ -575,9 +575,9 @@ extension BackupClientTypes { public var copyActions: [BackupClientTypes.CopyAction]? /// Specifies whether Backup creates continuous backups. True causes Backup to create continuous backups capable of point-in-time restore (PITR). False (or not specified) causes Backup to create snapshot backups. public var enableContinuousBackup: Swift.Bool? - /// The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define. Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold. Resource types that are able to be transitioned to cold storage are listed in the "Lifecycle to cold storage" section of the [ Feature availability by resource](https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html#features-by-resource) table. Backup ignores this expression for other resource types. + /// The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define. Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold. Resource types that can transition to cold storage are listed in the [Feature availability by resource](https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html#features-by-resource) table. Backup ignores this expression for other resource types. public var lifecycle: BackupClientTypes.Lifecycle? - /// An array of key-value pair strings that are assigned to resources that are associated with this rule when restored from backup. + /// The tags that are assigned to resources that are associated with this rule when restored from backup. public var recoveryPointTags: [Swift.String: Swift.String]? /// Uniquely identifies a rule that is used to schedule the backup of a selection of resources. public var ruleId: Swift.String? @@ -586,11 +586,11 @@ extension BackupClientTypes { public var ruleName: Swift.String? /// A cron expression in UTC specifying when Backup initiates a backup job. For more information about Amazon Web Services cron expressions, see [Schedule Expressions for Rules](https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html) in the Amazon CloudWatch Events User Guide.. Two examples of Amazon Web Services cron expressions are 15 * ? * * * (take a backup every hour at 15 minutes past the hour) and 0 12 * * ? * (take a backup every day at 12 noon UTC). For a table of examples, click the preceding link and scroll down the page. public var scheduleExpression: Swift.String? - /// This is the timezone in which the schedule expression is set. By default, ScheduleExpressions are in UTC. You can modify this to a specified timezone. + /// The timezone in which the schedule expression is set. By default, ScheduleExpressions are in UTC. You can modify this to a specified timezone. public var scheduleExpressionTimezone: Swift.String? /// A value in minutes after a backup is scheduled before a job will be canceled if it doesn't start successfully. This value is optional. If this value is included, it must be at least 60 minutes to avoid errors. During the start window, the backup job status remains in CREATED status until it has successfully begun or until the start window time has run out. If within the start window time Backup receives an error that allows the job to be retried, Backup will automatically retry to begin the job at least every 10 minutes until the backup successfully begins (the job status changes to RUNNING) or until the job status changes to EXPIRED (which is expected to occur when the start window time is over). public var startWindowMinutes: Swift.Int? - /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. /// This member is required. public var targetBackupVaultName: Swift.String? @@ -634,7 +634,7 @@ extension BackupClientTypes { public struct BackupPlan { /// Contains a list of BackupOptions for each resource type. public var advancedBackupSettings: [BackupClientTypes.AdvancedBackupSetting]? - /// The display name of a backup plan. Must contain 1 to 50 alphanumeric or '-_.' characters. + /// The display name of a backup plan. Must contain only alphanumeric or '-_.' special characters. If this is set in the console, it can contain 1 to 50 characters; if this is set through CLI or API, it can contain 1 to 200 characters. /// This member is required. public var backupPlanName: Swift.String? /// An array of BackupRule objects, each of which specifies a scheduled task that is used to back up a selection of resources. @@ -664,20 +664,20 @@ extension BackupClientTypes { public var copyActions: [BackupClientTypes.CopyAction]? /// Specifies whether Backup creates continuous backups. True causes Backup to create continuous backups capable of point-in-time restore (PITR). False (or not specified) causes Backup to create snapshot backups. public var enableContinuousBackup: Swift.Bool? - /// The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup will transition and expire backups automatically according to the lifecycle that you define. Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold. Resource types that are able to be transitioned to cold storage are listed in the "Lifecycle to cold storage" section of the [ Feature availability by resource](https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html#features-by-resource) table. Backup ignores this expression for other resource types. This parameter has a maximum value of 100 years (36,500 days). + /// The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup will transition and expire backups automatically according to the lifecycle that you define. Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold storage. Resource types that can transition to cold storage are listed in the [Feature availability by resource](https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html#features-by-resource) table. Backup ignores this expression for other resource types. This parameter has a maximum value of 100 years (36,500 days). public var lifecycle: BackupClientTypes.Lifecycle? - /// To help organize your resources, you can assign your own metadata to the resources that you create. Each tag is a key-value pair. + /// The tags to assign to the resources. public var recoveryPointTags: [Swift.String: Swift.String]? /// A display name for a backup rule. Must contain 1 to 50 alphanumeric or '-_.' characters. /// This member is required. public var ruleName: Swift.String? /// A CRON expression in UTC specifying when Backup initiates a backup job. public var scheduleExpression: Swift.String? - /// This is the timezone in which the schedule expression is set. By default, ScheduleExpressions are in UTC. You can modify this to a specified timezone. + /// The timezone in which the schedule expression is set. By default, ScheduleExpressions are in UTC. You can modify this to a specified timezone. public var scheduleExpressionTimezone: Swift.String? /// A value in minutes after a backup is scheduled before a job will be canceled if it doesn't start successfully. This value is optional. If this value is included, it must be at least 60 minutes to avoid errors. This parameter has a maximum value of 100 years (52,560,000 minutes). During the start window, the backup job status remains in CREATED status until it has successfully begun or until the start window time has run out. If within the start window time Backup receives an error that allows the job to be retried, Backup will automatically retry to begin the job at least every 10 minutes until the backup successfully begins (the job status changes to RUNNING) or until the job status changes to EXPIRED (which is expected to occur when the start window time is over). public var startWindowMinutes: Swift.Int? - /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. /// This member is required. public var targetBackupVaultName: Swift.String? @@ -757,7 +757,7 @@ extension BackupClientTypes { public var creatorRequestId: Swift.String? /// The date and time a backup plan is deleted, in Unix format and Coordinated Universal Time (UTC). The value of DeletionDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. public var deletionDate: Foundation.Date? - /// The last time a job to back up resources was run with this rule. A date and time, in Unix format and Coordinated Universal Time (UTC). The value of LastExecutionDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. + /// The last time this backup plan was run. A date and time, in Unix format and Coordinated Universal Time (UTC). The value of LastExecutionDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. public var lastExecutionDate: Foundation.Date? /// Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. Version IDs cannot be edited. public var versionId: Swift.String? @@ -809,7 +809,7 @@ extension BackupClientTypes { } extension BackupClientTypes { - /// Includes information about tags you define to assign tagged resources to a backup plan. + /// Includes information about tags you define to assign tagged resources to a backup plan. Include the prefix aws:ResourceTag in your tags. For example, "aws:ResourceTag/TagKey1": "Value1". public struct ConditionParameter { /// The key in a key-value pair. For example, in the tag Department: Accounting, Department is the key. public var conditionKey: Swift.String? @@ -910,26 +910,18 @@ extension BackupClientTypes { } extension BackupClientTypes { - /// Used to specify a set of resources to a backup plan. Specifying your desired Conditions, ListOfTags, NotResources, and/or Resources is recommended. If none of these are specified, Backup will attempt to select all supported and opted-in storage resources, which could have unintended cost implications. + /// Used to specify a set of resources to a backup plan. We recommend that you specify conditions, tags, or resources to include or exclude. Otherwise, Backup attempts to select all supported and opted-in storage resources, which could have unintended cost implications. For more information, see [Assigning resources programmatically](https://docs.aws.amazon.com/aws-backup/latest/devguide/assigning-resources.html#assigning-resources-json). public struct BackupSelection { - /// A list of conditions that you define to assign resources to your backup plans using tags. For example, "StringEquals": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },. Condition operators are case sensitive. Conditions differs from ListOfTags as follows: - /// - /// * When you specify more than one condition, you only assign the resources that match ALL conditions (using AND logic). - /// - /// * Conditions supports StringEquals, StringLike, StringNotEquals, and StringNotLike. ListOfTags only supports StringEquals. + /// The conditions that you define to assign resources to your backup plans using tags. For example, "StringEquals": { "ConditionKey": "aws:ResourceTag/backup", "ConditionValue": "daily" }. Conditions supports StringEquals, StringLike, StringNotEquals, and StringNotLike. Condition operators are case sensitive. If you specify multiple conditions, the resources much match all conditions (AND logic). public var conditions: BackupClientTypes.Conditions? /// The ARN of the IAM role that Backup uses to authenticate when backing up the target resource; for example, arn:aws:iam::123456789012:role/S3Access. /// This member is required. public var iamRoleArn: Swift.String? - /// A list of conditions that you define to assign resources to your backup plans using tags. For example, "StringEquals": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },. Condition operators are case sensitive. ListOfTags differs from Conditions as follows: - /// - /// * When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic). - /// - /// * ListOfTags only supports StringEquals. Conditions supports StringEquals, StringLike, StringNotEquals, and StringNotLike. + /// The conditions that you define to assign resources to your backup plans using tags. For example, "StringEquals": { "ConditionKey": "backup", "ConditionValue": "daily"}. ListOfTags supports only StringEquals. Condition operators are case sensitive. If you specify multiple conditions, the resources much match any of the conditions (OR logic). public var listOfTags: [BackupClientTypes.Condition]? - /// A list of Amazon Resource Names (ARNs) to exclude from a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards. If you need to exclude many resources from a backup plan, consider a different resource selection strategy, such as assigning only one or a few resource types or refining your resource selection using tags. + /// The Amazon Resource Names (ARNs) of the resources to exclude from a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards. If you need to exclude many resources from a backup plan, consider a different resource selection strategy, such as assigning only one or a few resource types or refining your resource selection using tags. public var notResources: [Swift.String]? - /// A list of Amazon Resource Names (ARNs) to assign to a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards. If you need to assign many resources to a backup plan, consider a different resource selection strategy, such as assigning all resources of a resource type or refining your resource selection using tags. + /// The Amazon Resource Names (ARNs) of the resources to assign to a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards. If you need to assign many resources to a backup plan, consider a different resource selection strategy, such as assigning all resources of a resource type or refining your resource selection using tags. If you specify multiple ARNs, the resources much match any of the ARNs (OR logic). public var resources: [Swift.String]? /// The display name of a resource selection document. Must contain 1 to 50 alphanumeric or '-_.' characters. /// This member is required. @@ -1065,12 +1057,73 @@ extension BackupClientTypes { } } +extension BackupClientTypes { + + public enum VaultState: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { + case available + case creating + case failed + case sdkUnknown(Swift.String) + + public static var allCases: [VaultState] { + return [ + .available, + .creating, + .failed + ] + } + + public init?(rawValue: Swift.String) { + let value = Self.allCases.first(where: { $0.rawValue == rawValue }) + self = value ?? Self.sdkUnknown(rawValue) + } + + public var rawValue: Swift.String { + switch self { + case .available: return "AVAILABLE" + case .creating: return "CREATING" + case .failed: return "FAILED" + case let .sdkUnknown(s): return s + } + } + } +} + +extension BackupClientTypes { + + public enum VaultType: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { + case backupVault + case logicallyAirGappedBackupVault + case sdkUnknown(Swift.String) + + public static var allCases: [VaultType] { + return [ + .backupVault, + .logicallyAirGappedBackupVault + ] + } + + public init?(rawValue: Swift.String) { + let value = Self.allCases.first(where: { $0.rawValue == rawValue }) + self = value ?? Self.sdkUnknown(rawValue) + } + + public var rawValue: Swift.String { + switch self { + case .backupVault: return "BACKUP_VAULT" + case .logicallyAirGappedBackupVault: return "LOGICALLY_AIR_GAPPED_BACKUP_VAULT" + case let .sdkUnknown(s): return s + } + } + } +} + extension BackupClientTypes { /// Contains metadata about a backup vault. public struct BackupVaultListMember { - /// An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. + /// An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault. public var backupVaultArn: Swift.String? - /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. public var backupVaultName: Swift.String? /// The date and time a resource backup is created, in Unix format and Coordinated Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. public var creationDate: Foundation.Date? @@ -1088,6 +1141,10 @@ extension BackupClientTypes { public var minRetentionDays: Swift.Int? /// The number of recovery points that are stored in a backup vault. public var numberOfRecoveryPoints: Swift.Int + /// The current state of the vault. + public var vaultState: BackupClientTypes.VaultState? + /// The type of vault in which the described recovery point is stored. + public var vaultType: BackupClientTypes.VaultType? public init( backupVaultArn: Swift.String? = nil, @@ -1099,7 +1156,9 @@ extension BackupClientTypes { locked: Swift.Bool? = nil, maxRetentionDays: Swift.Int? = nil, minRetentionDays: Swift.Int? = nil, - numberOfRecoveryPoints: Swift.Int = 0 + numberOfRecoveryPoints: Swift.Int = 0, + vaultState: BackupClientTypes.VaultState? = nil, + vaultType: BackupClientTypes.VaultType? = nil ) { self.backupVaultArn = backupVaultArn @@ -1112,13 +1171,15 @@ extension BackupClientTypes { self.maxRetentionDays = maxRetentionDays self.minRetentionDays = minRetentionDays self.numberOfRecoveryPoints = numberOfRecoveryPoints + self.vaultState = vaultState + self.vaultType = vaultType } } } extension BackupClientTypes { - /// Contains DeleteAt and MoveToColdStorageAt timestamps, which are used to specify a lifecycle for a recovery point. The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define. Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold. Resource types that are able to be transitioned to cold storage are listed in the "Lifecycle to cold storage" section of the [ Feature availability by resource](https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html#features-by-resource) table. Backup ignores this expression for other resource types. + /// Contains DeleteAt and MoveToColdStorageAt timestamps, which are used to specify a lifecycle for a recovery point. The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define. Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold. Resource types that can transition to cold storage are listed in the [Feature availability by resource](https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html#features-by-resource) table. Backup ignores this expression for other resource types. public struct CalculatedLifecycle { /// A timestamp that specifies when to delete a recovery point. public var deleteAt: Foundation.Date? @@ -1313,13 +1374,13 @@ public struct ServiceUnavailableException: ClientRuntime.ModeledError, AWSClient } public struct CancelLegalHoldInput { - /// String describing the reason for removing the legal hold. + /// A string the describes the reason for removing the legal hold. /// This member is required. public var cancelDescription: Swift.String? - /// Legal hold ID required to remove the specified legal hold on a recovery point. + /// The ID of the legal hold. /// This member is required. public var legalHoldId: Swift.String? - /// The integer amount in days specifying amount of days after this API operation to remove legal hold. + /// The integer amount, in days, after which to remove legal hold. public var retainRecordInDays: Swift.Int? public init( @@ -1375,7 +1436,7 @@ public struct ConflictException: ClientRuntime.ModeledError, AWSClientRuntime.AW } extension BackupClientTypes { - /// A list of parameters for a control. A control can have zero, one, or more than one parameter. An example of a control with two parameters is: "backup plan frequency is at least daily and the retention period is at least 1 year". The first parameter is daily. The second parameter is 1 year. + /// The parameters for a control. A control can have zero, one, or more than one parameter. An example of a control with two parameters is: "backup plan frequency is at least daily and the retention period is at least 1 year". The first parameter is daily. The second parameter is 1 year. public struct ControlInputParameter { /// The name of a parameter, for example, BackupPlanFrequency. public var parameterName: Swift.String? @@ -1401,7 +1462,7 @@ extension BackupClientTypes { public var complianceResourceIds: [Swift.String]? /// Describes whether the control scope includes one or more types of resources, such as EFS or RDS. public var complianceResourceTypes: [Swift.String]? - /// The tag key-value pair applied to those Amazon Web Services resources that you want to trigger an evaluation for a rule. A maximum of one key-value pair can be provided. The tag value is optional, but it cannot be an empty string. The structure to assign a tag is: [{"Key":"string","Value":"string"}]. + /// The tag key-value pair applied to those Amazon Web Services resources that you want to trigger an evaluation for a rule. A maximum of one key-value pair can be provided. The tag value is optional, but it cannot be an empty string if you are creating or editing a framework from the console (though the value can be an empty string when included in a CloudFormation template). The structure to assign a tag is: [{"Key":"string","Value":"string"}]. public var tags: [Swift.String: Swift.String]? public init( @@ -1467,7 +1528,7 @@ extension BackupClientTypes { public var childJobsInState: [Swift.String: Swift.Int]? /// The date and time a copy job is completed, in Unix format and Coordinated Universal Time (UTC). The value of CompletionDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. public var completionDate: Foundation.Date? - /// This is the identifier of a resource within a composite group, such as nested (child) recovery point belonging to a composite (parent) stack. The ID is transferred from the [ logical ID](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resources-section-structure.html#resources-section-structure-syntax) within a stack. + /// The identifier of a resource within a composite group, such as nested (child) recovery point belonging to a composite (parent) stack. The ID is transferred from the [ logical ID](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resources-section-structure.html#resources-section-structure-syntax) within a stack. public var compositeMemberIdentifier: Swift.String? /// Uniquely identifies a copy job. public var copyJobId: Swift.String? @@ -1475,7 +1536,7 @@ extension BackupClientTypes { public var createdBy: BackupClientTypes.RecoveryPointCreator? /// The date and time a copy job is created, in Unix format and Coordinated Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. public var creationDate: Foundation.Date? - /// An Amazon Resource Name (ARN) that uniquely identifies a destination copy vault; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. + /// An Amazon Resource Name (ARN) that uniquely identifies a destination copy vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault. public var destinationBackupVaultArn: Swift.String? /// An ARN that uniquely identifies a destination recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. public var destinationRecoveryPointArn: Swift.String? @@ -1485,17 +1546,17 @@ extension BackupClientTypes { public var isParent: Swift.Bool /// This parameter is the job count for the specified message category. Example strings may include AccessDenied, SUCCESS, AGGREGATE_ALL, and InvalidParameters. See [Monitoring](https://docs.aws.amazon.com/aws-backup/latest/devguide/monitoring.html) for a list of MessageCategory strings. The the value ANY returns count of all message categories. AGGREGATE_ALL aggregates job counts for all message categories and returns the sum public var messageCategory: Swift.String? - /// This is the number of child (nested) copy jobs. + /// The number of child (nested) copy jobs. public var numberOfChildJobs: Swift.Int? /// This uniquely identifies a request to Backup to copy a resource. The return will be the parent (composite) job ID. public var parentJobId: Swift.String? /// The Amazon Web Services resource to be copied; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. public var resourceArn: Swift.String? - /// This is the non-unique name of the resource that belongs to the specified backup. + /// The non-unique name of the resource that belongs to the specified backup. public var resourceName: Swift.String? /// The type of Amazon Web Services resource to be copied; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. public var resourceType: Swift.String? - /// An Amazon Resource Name (ARN) that uniquely identifies a source copy vault; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. + /// An Amazon Resource Name (ARN) that uniquely identifies a source copy vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault. public var sourceBackupVaultArn: Swift.String? /// An ARN that uniquely identifies a source recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. public var sourceRecoveryPointArn: Swift.String? @@ -1623,7 +1684,7 @@ extension BackupClientTypes { public var endTime: Foundation.Date? /// This parameter is the job count for the specified message category. Example strings include AccessDenied, Success, and InvalidParameters. See [Monitoring](https://docs.aws.amazon.com/aws-backup/latest/devguide/monitoring.html) for a list of MessageCategory strings. The the value ANY returns count of all message categories. AGGREGATE_ALL aggregates job counts for all message categories and returns the sum. public var messageCategory: Swift.String? - /// This is the Amazon Web Services Regions within the job summary. + /// The Amazon Web Services Regions within the job summary. public var region: Swift.String? /// This value is the job count for the specified resource type. The request GetSupportedResourceTypes returns strings for supported resource types public var resourceType: Swift.String? @@ -1692,10 +1753,10 @@ public struct LimitExceededException: ClientRuntime.ModeledError, AWSClientRunti } public struct CreateBackupPlanInput { - /// Specifies the body of a backup plan. Includes a BackupPlanName and one or more sets of Rules. + /// The body of a backup plan. Includes a BackupPlanName and one or more sets of Rules. /// This member is required. public var backupPlan: BackupClientTypes.BackupPlanInput? - /// To help organize your resources, you can assign your own metadata to the resources that you create. Each tag is a key-value pair. The specified tags are assigned to all backups created with this plan. + /// The tags to assign to the backup plan. public var backupPlanTags: [Swift.String: Swift.String]? /// Identifies the request and allows failed requests to be retried without the risk of running the operation twice. If the request includes a CreatorRequestId that matches an existing backup plan, that plan is returned. This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters. public var creatorRequestId: Swift.String? @@ -1718,11 +1779,11 @@ extension CreateBackupPlanInput: Swift.CustomDebugStringConvertible { } public struct CreateBackupPlanOutput { - /// A list of BackupOptions settings for a resource type. This option is only available for Windows Volume Shadow Copy Service (VSS) backup jobs. + /// The settings for a resource type. This option is only available for Windows Volume Shadow Copy Service (VSS) backup jobs. public var advancedBackupSettings: [BackupClientTypes.AdvancedBackupSetting]? /// An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example, arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50. public var backupPlanArn: Swift.String? - /// Uniquely identifies a backup plan. + /// The ID of the backup plan. public var backupPlanId: Swift.String? /// The date and time that a backup plan is created, in Unix format and Coordinated Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. public var creationDate: Foundation.Date? @@ -1746,10 +1807,10 @@ public struct CreateBackupPlanOutput { } public struct CreateBackupSelectionInput { - /// Uniquely identifies the backup plan to be associated with the selection of resources. + /// The ID of the backup plan. /// This member is required. public var backupPlanId: Swift.String? - /// Specifies the body of a request to assign a set of resources to a backup plan. + /// The body of a request to assign a set of resources to a backup plan. /// This member is required. public var backupSelection: BackupClientTypes.BackupSelection? /// A unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters. @@ -1768,7 +1829,7 @@ public struct CreateBackupSelectionInput { } public struct CreateBackupSelectionOutput { - /// Uniquely identifies a backup plan. + /// The ID of the backup plan. public var backupPlanId: Swift.String? /// The date and time a backup selection is created, in Unix format and Coordinated Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. public var creationDate: Foundation.Date? @@ -1791,7 +1852,7 @@ public struct CreateBackupVaultInput { /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of letters, numbers, and hyphens. /// This member is required. public var backupVaultName: Swift.String? - /// Metadata that you can assign to help organize the resources that you create. Each tag is a key-value pair. + /// The tags to assign to the backup vault. public var backupVaultTags: [Swift.String: Swift.String]? /// A unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters. public var creatorRequestId: Swift.String? @@ -1818,7 +1879,7 @@ extension CreateBackupVaultInput: Swift.CustomDebugStringConvertible { } public struct CreateBackupVaultOutput { - /// An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. + /// An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault. public var backupVaultArn: Swift.String? /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Region where they are created. They consist of lowercase letters, numbers, and hyphens. public var backupVaultName: Swift.String? @@ -1840,7 +1901,7 @@ public struct CreateBackupVaultOutput { extension BackupClientTypes { /// Contains detailed information about all of the controls of a framework. Each framework must contain at least one control. public struct FrameworkControl { - /// A list of ParameterName and ParameterValue pairs. + /// The name/value pairs. public var controlInputParameters: [BackupClientTypes.ControlInputParameter]? /// The name of a control. This name is between 1 and 256 characters. /// This member is required. @@ -1863,7 +1924,7 @@ extension BackupClientTypes { } public struct CreateFrameworkInput { - /// A list of the controls that make up the framework. Each control in the list has a name, input parameters, and scope. + /// The controls that make up the framework. Each control in the list has a name, input parameters, and scope. /// This member is required. public var frameworkControls: [BackupClientTypes.FrameworkControl]? /// An optional description of the framework with a maximum of 1,024 characters. @@ -1871,7 +1932,7 @@ public struct CreateFrameworkInput { /// The unique name of the framework. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_). /// This member is required. public var frameworkName: Swift.String? - /// Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair. + /// The tags to assign to the framework. public var frameworkTags: [Swift.String: Swift.String]? /// A customer-chosen string that you can use to distinguish between otherwise identical calls to CreateFrameworkInput. Retrying a successful request with the same idempotency token results in a success message with no action taken. public var idempotencyToken: Swift.String? @@ -1955,16 +2016,16 @@ extension BackupClientTypes { } public struct CreateLegalHoldInput { - /// This is the string description of the legal hold. + /// The description of the legal hold. /// This member is required. public var description: Swift.String? /// This is a user-chosen string used to distinguish between otherwise identical calls. Retrying a successful request with the same idempotency token results in a success message with no action taken. public var idempotencyToken: Swift.String? - /// This specifies criteria to assign a set of resources, such as resource types or backup vaults. + /// The criteria to assign a set of resources, such as resource types or backup vaults. public var recoveryPointSelection: BackupClientTypes.RecoveryPointSelection? /// Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /. public var tags: [Swift.String: Swift.String]? - /// This is the string title of the legal hold. + /// The title of the legal hold. /// This member is required. public var title: Swift.String? @@ -2025,19 +2086,19 @@ extension BackupClientTypes { } public struct CreateLegalHoldOutput { - /// Time in number format when legal hold was created. + /// The time when the legal hold was created. public var creationDate: Foundation.Date? - /// This is the returned string description of the legal hold. + /// The description of the legal hold. public var description: Swift.String? - /// This is the ARN (Amazon Resource Number) of the created legal hold. + /// The Amazon Resource Name (ARN) of the legal hold. public var legalHoldArn: Swift.String? - /// Legal hold ID returned for the specified legal hold on a recovery point. + /// The ID of the legal hold. public var legalHoldId: Swift.String? - /// This specifies criteria to assign a set of resources, such as resource types or backup vaults. + /// The criteria to assign to a set of resources, such as resource types or backup vaults. public var recoveryPointSelection: BackupClientTypes.RecoveryPointSelection? - /// This displays the status of the legal hold returned after creating the legal hold. Statuses can be ACTIVE, PENDING, CANCELED, CANCELING, or FAILED. + /// The status of the legal hold. public var status: BackupClientTypes.LegalHoldStatus? - /// This is the string title of the legal hold returned after creating the legal hold. + /// The title of the legal hold. public var title: Swift.String? public init( @@ -2096,17 +2157,17 @@ public struct InvalidRequestException: ClientRuntime.ModeledError, AWSClientRunt } public struct CreateLogicallyAirGappedBackupVaultInput { - /// This is the name of the vault that is being created. + /// The name of a logical container where backups are stored. Logically air-gapped backup vaults are identified by names that are unique to the account used to create them and the Region where they are created. /// This member is required. public var backupVaultName: Swift.String? - /// These are the tags that will be included in the newly-created vault. + /// The tags to assign to the vault. public var backupVaultTags: [Swift.String: Swift.String]? - /// This is the ID of the creation request. This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters. + /// The ID of the creation request. This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters. public var creatorRequestId: Swift.String? - /// This is the setting that specifies the maximum retention period that the vault retains its recovery points. If this parameter is not specified, Backup does not enforce a maximum retention period on the recovery points in the vault (allowing indefinite storage). If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or shorter than the maximum retention period. If the job retention period is longer than that maximum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. + /// The maximum retention period that the vault retains its recovery points. /// This member is required. public var maxRetentionDays: Swift.Int? - /// This setting specifies the minimum retention period that the vault retains its recovery points. If this parameter is not specified, no minimum retention period is enforced. If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or longer than the minimum retention period. If a job retention period is shorter than that minimum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. + /// This setting specifies the minimum retention period that the vault retains its recovery points. The minimum value accepted is 7 days. /// This member is required. public var minRetentionDays: Swift.Int? @@ -2131,46 +2192,14 @@ extension CreateLogicallyAirGappedBackupVaultInput: Swift.CustomDebugStringConve "CreateLogicallyAirGappedBackupVaultInput(backupVaultName: \(Swift.String(describing: backupVaultName)), creatorRequestId: \(Swift.String(describing: creatorRequestId)), maxRetentionDays: \(Swift.String(describing: maxRetentionDays)), minRetentionDays: \(Swift.String(describing: minRetentionDays)), backupVaultTags: \"CONTENT_REDACTED\")"} } -extension BackupClientTypes { - - public enum VaultState: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case available - case creating - case failed - case sdkUnknown(Swift.String) - - public static var allCases: [VaultState] { - return [ - .available, - .creating, - .failed - ] - } - - public init?(rawValue: Swift.String) { - let value = Self.allCases.first(where: { $0.rawValue == rawValue }) - self = value ?? Self.sdkUnknown(rawValue) - } - - public var rawValue: Swift.String { - switch self { - case .available: return "AVAILABLE" - case .creating: return "CREATING" - case .failed: return "FAILED" - case let .sdkUnknown(s): return s - } - } - } -} - public struct CreateLogicallyAirGappedBackupVaultOutput { - /// This is the ARN (Amazon Resource Name) of the vault being created. + /// The ARN (Amazon Resource Name) of the vault. public var backupVaultArn: Swift.String? - /// The name of a logical container where backups are stored. Logically air-gapped backup vaults are identified by names that are unique to the account used to create them and the Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// The name of a logical container where backups are stored. Logically air-gapped backup vaults are identified by names that are unique to the account used to create them and the Region where they are created. public var backupVaultName: Swift.String? /// The date and time when the vault was created. This value is in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. public var creationDate: Foundation.Date? - /// This is the current state of the vault. + /// The current state of the vault. public var vaultState: BackupClientTypes.VaultState? public init( @@ -2190,7 +2219,7 @@ public struct CreateLogicallyAirGappedBackupVaultOutput { extension BackupClientTypes { /// Contains information from your report plan about where to deliver your reports, specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your reports. public struct ReportDeliveryChannel { - /// A list of the format of your reports: CSV, JSON, or both. If not specified, the default format is CSV. + /// The format of your reports: CSV, JSON, or both. If not specified, the default format is CSV. public var formats: [Swift.String]? /// The unique name of the S3 bucket that receives your reports. /// This member is required. @@ -2215,7 +2244,7 @@ extension BackupClientTypes { extension BackupClientTypes { /// Contains detailed information about a report setting. public struct ReportSetting { - /// These are the accounts to be included in the report. + /// These are the accounts to be included in the report. Use string value of ROOT to include all organizational units. public var accounts: [Swift.String]? /// The Amazon Resource Names (ARNs) of the frameworks a report covers. public var frameworkArns: [Swift.String]? @@ -2223,7 +2252,7 @@ extension BackupClientTypes { public var numberOfFrameworks: Swift.Int /// These are the Organizational Units to be included in the report. public var organizationUnits: [Swift.String]? - /// These are the Regions to be included in the report. + /// These are the Regions to be included in the report. Use the wildcard as the string value to include all Regions. public var regions: [Swift.String]? /// Identifies the report template for the report. Reports are built using a report template. The report templates are: RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT /// This member is required. @@ -2260,7 +2289,7 @@ public struct CreateReportPlanInput { /// The unique name of the report plan. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_). /// This member is required. public var reportPlanName: Swift.String? - /// Metadata that you can assign to help organize the report plans that you create. Each tag is a key-value pair. + /// The tags to assign to the report plan. public var reportPlanTags: [Swift.String: Swift.String]? /// Identifies the report template for the report. Reports are built using a report template. The report templates are: RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT If the report template is RESOURCE_COMPLIANCE_REPORT or CONTROL_COMPLIANCE_REPORT, this API resource also describes the report coverage by Amazon Web Services Regions and frameworks. /// This member is required. @@ -2363,7 +2392,7 @@ extension BackupClientTypes { } extension BackupClientTypes { - /// Required: Algorithm; Required: Recovery point types; IncludeVaults(one or more). Optional: SelectionWindowDays ('30' if not specified);ExcludeVaults (list of selectors), defaults to empty list if not listed. + /// RecoveryPointSelection has five parameters (three required and two optional). The values you specify determine which recovery point is included in the restore test. You must indicate with Algorithm if you want the latest recovery point within your SelectionWindowDays or if you want a random recovery point, and you must indicate through IncludeVaults from which vaults the recovery points can be chosen. Algorithm (required) Valid values: "LATEST_WITHIN_WINDOW" or "RANDOM_WITHIN_WINDOW". Recovery point types (required) Valid values: "SNAPSHOT" and/or "CONTINUOUS". Include SNAPSHOT to restore only snapshot recovery points; include CONTINUOUS to restore continuous recovery points (point in time restore / PITR); use both to restore either a snapshot or a continuous recovery point. The recovery point will be determined by the value for Algorithm. IncludeVaults (required). You must include one or more backup vaults. Use the wildcard ["*"] or specific ARNs. SelectionWindowDays (optional) Value must be an integer (in days) from 1 to 365. If not included, the value defaults to 30. ExcludeVaults (optional). You can choose to input one or more specific backup vault ARNs to exclude those vaults' contents from restore eligibility. Or, you can include a list of selectors. If this parameter and its value are not included, it defaults to empty list. public struct RestoreTestingRecoveryPointSelection { /// Acceptable values include "LATEST_WITHIN_WINDOW" or "RANDOM_WITHIN_WINDOW" public var algorithm: BackupClientTypes.RestoreTestingRecoveryPointSelectionAlgorithm? @@ -2371,7 +2400,7 @@ extension BackupClientTypes { public var excludeVaults: [Swift.String]? /// Accepted values include wildcard ["*"] or by specific ARNs or ARN wilcard replacement ["arn:aws:backup:us-west-2:123456789012:backup-vault:asdf", ...] ["arn:aws:backup:*:*:backup-vault:asdf-*", ...] public var includeVaults: [Swift.String]? - /// These are the types of recovery points. + /// These are the types of recovery points. Include SNAPSHOT to restore only snapshot recovery points; include CONTINUOUS to restore continuous recovery points (point in time restore / PITR); use both to restore either a snapshot or a continuous recovery point. The recovery point will be determined by the value for Algorithm. public var recoveryPointTypes: [BackupClientTypes.RestoreTestingRecoveryPointType]? /// Accepted values are integers from 1 to 365. public var selectionWindowDays: Swift.Int @@ -2397,7 +2426,7 @@ extension BackupClientTypes { extension BackupClientTypes { /// This contains metadata about a restore testing plan. public struct RestoreTestingPlanForCreate { - /// Required: Algorithm; Required: Recovery point types; IncludeVaults (one or more). Optional: SelectionWindowDays ('30' if not specified); ExcludeVaults (list of selectors), defaults to empty list if not listed. + /// RecoveryPointSelection has five parameters (three required and two optional). The values you specify determine which recovery point is included in the restore test. You must indicate with Algorithm if you want the latest recovery point within your SelectionWindowDays or if you want a random recovery point, and you must indicate through IncludeVaults from which vaults the recovery points can be chosen. Algorithm (required) Valid values: "LATEST_WITHIN_WINDOW" or "RANDOM_WITHIN_WINDOW". Recovery point types (required) Valid values: "SNAPSHOT" and/or "CONTINUOUS". Include SNAPSHOT to restore only snapshot recovery points; include CONTINUOUS to restore continuous recovery points (point in time restore / PITR); use both to restore either a snapshot or a continuous recovery point. The recovery point will be determined by the value for Algorithm. IncludeVaults (required). You must include one or more backup vaults. Use the wildcard ["*"] or specific ARNs. SelectionWindowDays (optional) Value must be an integer (in days) from 1 to 365. If not included, the value defaults to 30. ExcludeVaults (optional). You can choose to input one or more specific backup vault ARNs to exclude those vaults' contents from restore eligibility. Or, you can include a list of selectors. If this parameter and its value are not included, it defaults to empty list. /// This member is required. public var recoveryPointSelection: BackupClientTypes.RestoreTestingRecoveryPointSelection? /// The RestoreTestingPlanName is a unique string that is the name of the restore testing plan. This cannot be changed after creation, and it must consist of only alphanumeric characters and underscores. @@ -2435,7 +2464,7 @@ public struct CreateRestoreTestingPlanInput { /// A restore testing plan must contain a unique RestoreTestingPlanName string you create and must contain a ScheduleExpression cron. You may optionally include a StartWindowHours integer and a CreatorRequestId string. The RestoreTestingPlanName is a unique string that is the name of the restore testing plan. This cannot be changed after creation, and it must consist of only alphanumeric characters and underscores. /// This member is required. public var restoreTestingPlan: BackupClientTypes.RestoreTestingPlanForCreate? - /// Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters,numbers, spaces, and the following characters: + - = . _ : /. + /// The tags to assign to the restore testing plan. public var tags: [Swift.String: Swift.String]? public init( @@ -2501,7 +2530,7 @@ extension BackupClientTypes { } extension BackupClientTypes { - /// A list of conditions that you define for resources in your restore testing plan using tags. For example, "StringEquals": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },. Condition operators are case sensitive. + /// The conditions that you define for resources in your restore testing plan using tags. public struct ProtectedResourceConditions { /// Filters the values of your tagged resources for only those resources that you tagged with the same value. Also called "exact matching." public var stringEquals: [BackupClientTypes.KeyValue]? @@ -2562,7 +2591,7 @@ extension BackupClientTypes { public var protectedResourceType: Swift.String? /// You can override certain restore metadata keys by including the parameter RestoreMetadataOverrides in the body of RestoreTestingSelection. Key values are not case sensitive. See the complete list of [restore testing inferred metadata](https://docs.aws.amazon.com/aws-backup/latest/devguide/restore-testing-inferred-metadata.html). public var restoreMetadataOverrides: [Swift.String: Swift.String]? - /// This is the unique name of the restore testing selection that belongs to the related restore testing plan. + /// The unique name of the restore testing selection that belongs to the related restore testing plan. /// This member is required. public var restoreTestingSelectionName: Swift.String? /// This is amount of hours (1 to 168) available to run a validation script on the data. The data will be deleted upon the completion of the validation script or the end of the specified retention period, whichever comes first. @@ -2625,16 +2654,16 @@ public struct CreateRestoreTestingSelectionInput { } public struct CreateRestoreTestingSelectionOutput { - /// This is the time the resource testing selection was created successfully. + /// The time that the resource testing selection was created. /// This member is required. public var creationTime: Foundation.Date? - /// This is the ARN of the restore testing plan with which the restore testing selection is associated. + /// The ARN of the restore testing plan with which the restore testing selection is associated. /// This member is required. public var restoreTestingPlanArn: Swift.String? - /// Unique string that is the name of the restore testing plan. The name cannot be changed after creation. The name consists of only alphanumeric characters and underscores. Maximum length is 50. + /// The name of the restore testing plan. The name cannot be changed after creation. The name consists of only alphanumeric characters and underscores. Maximum length is 50. /// This member is required. public var restoreTestingPlanName: Swift.String? - /// This is the unique name of the restore testing selection that belongs to the related restore testing plan. + /// The name of the restore testing selection for the related restore testing plan. /// This member is required. public var restoreTestingSelectionName: Swift.String? @@ -2708,7 +2737,7 @@ public struct DeleteBackupSelectionInput { } public struct DeleteBackupVaultInput { - /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. /// This member is required. public var backupVaultName: Swift.String? @@ -2747,7 +2776,7 @@ public struct DeleteBackupVaultLockConfigurationInput { } public struct DeleteBackupVaultNotificationsInput { - /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Region where they are created. /// This member is required. public var backupVaultName: Swift.String? @@ -2773,7 +2802,7 @@ public struct DeleteFrameworkInput { } public struct DeleteRecoveryPointInput { - /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. /// This member is required. public var backupVaultName: Swift.String? /// An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. @@ -2893,9 +2922,9 @@ public struct DescribeBackupJobOutput { public var backupSizeInBytes: Swift.Int? /// Represents the actual backup type selected for a backup job. For example, if a successful Windows Volume Shadow Copy Service (VSS) backup was taken, BackupType returns "WindowsVSS". If BackupType is empty, then the backup type was a regular backup. public var backupType: Swift.String? - /// An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. + /// An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault. public var backupVaultArn: Swift.String? - /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. public var backupVaultName: Swift.String? /// The size in bytes transferred to a backup vault at the time that the job status was queried. public var bytesTransferred: Swift.Int? @@ -2911,11 +2940,11 @@ public struct DescribeBackupJobOutput { public var expectedCompletionDate: Foundation.Date? /// Specifies the IAM role ARN used to create the target recovery point; for example, arn:aws:iam::123456789012:role/S3Access. public var iamRoleArn: Swift.String? - /// This is the date a backup job was initiated. + /// The date a backup job was initiated. public var initiationDate: Foundation.Date? /// This returns the boolean value that a backup job is a parent (composite) job. public var isParent: Swift.Bool - /// This is the job count for the specified message category. Example strings may include AccessDenied, SUCCESS, AGGREGATE_ALL, and INVALIDPARAMETERS. View [Monitoring](https://docs.aws.amazon.com/aws-backup/latest/devguide/monitoring.html) for a list of accepted MessageCategory strings. + /// The job count for the specified message category. Example strings may include AccessDenied, SUCCESS, AGGREGATE_ALL, and INVALIDPARAMETERS. View [Monitoring](https://docs.aws.amazon.com/aws-backup/latest/devguide/monitoring.html) for a list of accepted MessageCategory strings. public var messageCategory: Swift.String? /// This returns the number of child (nested) backup jobs. public var numberOfChildJobs: Swift.Int? @@ -2927,7 +2956,7 @@ public struct DescribeBackupJobOutput { public var recoveryPointArn: Swift.String? /// An ARN that uniquely identifies a saved resource. The format of the ARN depends on the resource type. public var resourceArn: Swift.String? - /// This is the non-unique name of the resource that belongs to the specified backup. + /// The non-unique name of the resource that belongs to the specified backup. public var resourceName: Swift.String? /// The type of Amazon Web Services resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. public var resourceType: Swift.String? @@ -2999,9 +3028,9 @@ public struct DescribeBackupJobOutput { } public struct DescribeBackupVaultInput { - /// This is the account ID of the specified backup vault. + /// The account ID of the specified backup vault. public var backupVaultAccountId: Swift.String? - /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. /// This member is required. public var backupVaultName: Swift.String? @@ -3015,39 +3044,10 @@ public struct DescribeBackupVaultInput { } } -extension BackupClientTypes { - - public enum VaultType: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case backupVault - case logicallyAirGappedBackupVault - case sdkUnknown(Swift.String) - - public static var allCases: [VaultType] { - return [ - .backupVault, - .logicallyAirGappedBackupVault - ] - } - - public init?(rawValue: Swift.String) { - let value = Self.allCases.first(where: { $0.rawValue == rawValue }) - self = value ?? Self.sdkUnknown(rawValue) - } - - public var rawValue: Swift.String { - switch self { - case .backupVault: return "BACKUP_VAULT" - case .logicallyAirGappedBackupVault: return "LOGICALLY_AIR_GAPPED_BACKUP_VAULT" - case let .sdkUnknown(s): return s - } - } - } -} - public struct DescribeBackupVaultOutput { - /// An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. + /// An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault. public var backupVaultArn: Swift.String? - /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Region where they are created. public var backupVaultName: Swift.String? /// The date and time that a backup vault is created, in Unix format and Coordinated Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. public var creationDate: Foundation.Date? @@ -3061,11 +3061,13 @@ public struct DescribeBackupVaultOutput { public var locked: Swift.Bool? /// The Backup Vault Lock setting that specifies the maximum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock does not enforce a maximum retention period on the recovery points in the vault (allowing indefinite storage). If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or shorter than the maximum retention period. If the job's retention period is longer than that maximum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected. public var maxRetentionDays: Swift.Int? - /// The Backup Vault Lock setting that specifies the minimum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock does not enforce a minimum retention period. If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or longer than the minimum retention period. If the job's retention period is shorter than that minimum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected. + /// The Backup Vault Lock setting that specifies the minimum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock will not enforce a minimum retention period. If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or longer than the minimum retention period. If the job's retention period is shorter than that minimum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected. public var minRetentionDays: Swift.Int? /// The number of recovery points that are stored in a backup vault. public var numberOfRecoveryPoints: Swift.Int - /// This is the type of vault described. + /// The current state of the vault.-> + public var vaultState: BackupClientTypes.VaultState? + /// The type of vault described. public var vaultType: BackupClientTypes.VaultType? public init( @@ -3079,6 +3081,7 @@ public struct DescribeBackupVaultOutput { maxRetentionDays: Swift.Int? = nil, minRetentionDays: Swift.Int? = nil, numberOfRecoveryPoints: Swift.Int = 0, + vaultState: BackupClientTypes.VaultState? = nil, vaultType: BackupClientTypes.VaultType? = nil ) { @@ -3092,6 +3095,7 @@ public struct DescribeBackupVaultOutput { self.maxRetentionDays = maxRetentionDays self.minRetentionDays = minRetentionDays self.numberOfRecoveryPoints = numberOfRecoveryPoints + self.vaultState = vaultState self.vaultType = vaultType } } @@ -3141,7 +3145,7 @@ public struct DescribeFrameworkOutput { public var deploymentStatus: Swift.String? /// An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type. public var frameworkArn: Swift.String? - /// A list of the controls that make up the framework. Each control in the list has a name, input parameters, and scope. + /// The controls that make up the framework. Each control in the list has a name, input parameters, and scope. public var frameworkControls: [BackupClientTypes.FrameworkControl]? /// An optional description of the framework. public var frameworkDescription: Swift.String? @@ -3219,19 +3223,19 @@ public struct DescribeProtectedResourceInput { public struct DescribeProtectedResourceOutput { /// The date and time that a resource was last backed up, in Unix format and Coordinated Universal Time (UTC). The value of LastBackupTime is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. public var lastBackupTime: Foundation.Date? - /// This is the ARN (Amazon Resource Name) of the backup vault that contains the most recent backup recovery point. + /// The ARN (Amazon Resource Name) of the backup vault that contains the most recent backup recovery point. public var lastBackupVaultArn: Swift.String? - /// This is the ARN (Amazon Resource Name) of the most recent recovery point. + /// The ARN (Amazon Resource Name) of the most recent recovery point. public var lastRecoveryPointArn: Swift.String? - /// This is the time in minutes the most recent restore job took to complete. + /// The time, in minutes, that the most recent restore job took to complete. public var latestRestoreExecutionTimeMinutes: Swift.Int? - /// This is the creation date of the most recent restore job. + /// The creation date of the most recent restore job. public var latestRestoreJobCreationDate: Foundation.Date? - /// This is the date the most recent recovery point was created. + /// The date the most recent recovery point was created. public var latestRestoreRecoveryPointCreationDate: Foundation.Date? /// An ARN that uniquely identifies a resource. The format of the ARN depends on the resource type. public var resourceArn: Swift.String? - /// This is the non-unique name of the resource that belongs to the specified backup. + /// The name of the resource that belongs to the specified backup. public var resourceName: Swift.String? /// The type of Amazon Web Services resource saved as a recovery point; for example, an Amazon EBS volume or an Amazon RDS database. public var resourceType: Swift.String? @@ -3261,9 +3265,9 @@ public struct DescribeProtectedResourceOutput { } public struct DescribeRecoveryPointInput { - /// This is the account ID of the specified backup vault. + /// The account ID of the specified backup vault. public var backupVaultAccountId: Swift.String? - /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. /// This member is required. public var backupVaultName: Swift.String? /// An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. @@ -3352,15 +3356,15 @@ extension BackupClientTypes { public struct DescribeRecoveryPointOutput { /// The size, in bytes, of a backup. public var backupSizeInBytes: Swift.Int? - /// An ARN that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. + /// An ARN that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault. public var backupVaultArn: Swift.String? - /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Region where they are created. public var backupVaultName: Swift.String? /// A CalculatedLifecycle object containing DeleteAt and MoveToColdStorageAt timestamps. public var calculatedLifecycle: BackupClientTypes.CalculatedLifecycle? /// The date and time that a job to create a recovery point is completed, in Unix format and Coordinated Universal Time (UTC). The value of CompletionDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. public var completionDate: Foundation.Date? - /// This is the identifier of a resource within a composite group, such as nested (child) recovery point belonging to a composite (parent) stack. The ID is transferred from the [ logical ID](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resources-section-structure.html#resources-section-structure-syntax) within a stack. + /// The identifier of a resource within a composite group, such as nested (child) recovery point belonging to a composite (parent) stack. The ID is transferred from the [ logical ID](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resources-section-structure.html#resources-section-structure-syntax) within a stack. public var compositeMemberIdentifier: Swift.String? /// Contains identifying information about the creation of a recovery point, including the BackupPlanArn, BackupPlanId, BackupPlanVersion, and BackupRuleId of the backup plan used to create it. public var createdBy: BackupClientTypes.RecoveryPointCreator? @@ -3376,7 +3380,7 @@ public struct DescribeRecoveryPointOutput { public var isParent: Swift.Bool /// The date and time that a recovery point was last restored, in Unix format and Coordinated Universal Time (UTC). The value of LastRestoreTime is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. public var lastRestoreTime: Foundation.Date? - /// The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define. Backups that are transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold. Resource types that are able to be transitioned to cold storage are listed in the "Lifecycle to cold storage" section of the [ Feature availability by resource](https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html#features-by-resource) table. Backup ignores this expression for other resource types. + /// The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define. Backups that are transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold. Resource types that can transition to cold storage are listed in the [Feature availability by resource](https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html#features-by-resource) table. Backup ignores this expression for other resource types. public var lifecycle: BackupClientTypes.Lifecycle? /// This is an ARN that uniquely identifies a parent (composite) recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. public var parentRecoveryPointArn: Swift.String? @@ -3384,19 +3388,19 @@ public struct DescribeRecoveryPointOutput { public var recoveryPointArn: Swift.String? /// An ARN that uniquely identifies a saved resource. The format of the ARN depends on the resource type. public var resourceArn: Swift.String? - /// This is the non-unique name of the resource that belongs to the specified backup. + /// The name of the resource that belongs to the specified backup. public var resourceName: Swift.String? /// The type of Amazon Web Services resource to save as a recovery point; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. public var resourceType: Swift.String? - /// An Amazon Resource Name (ARN) that uniquely identifies the source vault where the resource was originally backed up in; for example, arn:aws:backup:us-east-1:123456789012:vault:BackupVault. If the recovery is restored to the same Amazon Web Services account or Region, this value will be null. + /// An Amazon Resource Name (ARN) that uniquely identifies the source vault where the resource was originally backed up in; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault. If the recovery is restored to the same Amazon Web Services account or Region, this value will be null. public var sourceBackupVaultArn: Swift.String? - /// A status code specifying the state of the recovery point. PARTIAL status indicates Backup could not create the recovery point before the backup window closed. To increase your backup plan window using the API, see [UpdateBackupPlan](https://docs.aws.amazon.com/aws-backup/latest/devguide/API_UpdateBackupPlan.html). You can also increase your backup plan window using the Console by choosing and editing your backup plan. EXPIRED status indicates that the recovery point has exceeded its retention period, but Backup lacks permission or is otherwise unable to delete it. To manually delete these recovery points, see [ Step 3: Delete the recovery points](https://docs.aws.amazon.com/aws-backup/latest/devguide/gs-cleanup-resources.html#cleanup-backups) in the Clean up resources section of Getting started. STOPPED status occurs on a continuous backup where a user has taken some action that causes the continuous backup to be disabled. This can be caused by the removal of permissions, turning off versioning, turning off events being sent to EventBridge, or disabling the EventBridge rules that are put in place by Backup. To resolve STOPPED status, ensure that all requested permissions are in place and that versioning is enabled on the S3 bucket. Once these conditions are met, the next instance of a backup rule running will result in a new continuous recovery point being created. The recovery points with STOPPED status do not need to be deleted. For SAP HANA on Amazon EC2 STOPPED status occurs due to user action, application misconfiguration, or backup failure. To ensure that future continuous backups succeed, refer to the recovery point status and check SAP HANA for details. + /// A status code specifying the state of the recovery point. PARTIAL status indicates Backup could not create the recovery point before the backup window closed. To increase your backup plan window using the API, see [UpdateBackupPlan](https://docs.aws.amazon.com/aws-backup/latest/devguide/API_UpdateBackupPlan.html). You can also increase your backup plan window using the Console by choosing and editing your backup plan. EXPIRED status indicates that the recovery point has exceeded its retention period, but Backup lacks permission or is otherwise unable to delete it. To manually delete these recovery points, see [ Step 3: Delete the recovery points](https://docs.aws.amazon.com/aws-backup/latest/devguide/gs-cleanup-resources.html#cleanup-backups) in the Clean up resources section of Getting started. STOPPED status occurs on a continuous backup where a user has taken some action that causes the continuous backup to be disabled. This can be caused by the removal of permissions, turning off versioning, turning off events being sent to EventBridge, or disabling the EventBridge rules that are put in place by Backup. For recovery points of Amazon S3, Amazon RDS, and Amazon Aurora resources, this status occurs when the retention period of a continuous backup rule is changed. To resolve STOPPED status, ensure that all requested permissions are in place and that versioning is enabled on the S3 bucket. Once these conditions are met, the next instance of a backup rule running will result in a new continuous recovery point being created. The recovery points with STOPPED status do not need to be deleted. For SAP HANA on Amazon EC2 STOPPED status occurs due to user action, application misconfiguration, or backup failure. To ensure that future continuous backups succeed, refer to the recovery point status and check SAP HANA for details. public var status: BackupClientTypes.RecoveryPointStatus? /// A status message explaining the status of the recovery point. public var statusMessage: Swift.String? /// Specifies the storage class of the recovery point. Valid values are WARM or COLD. public var storageClass: BackupClientTypes.StorageClass? - /// This is the type of vault in which the described recovery point is stored. + /// The type of vault in which the described recovery point is stored. public var vaultType: BackupClientTypes.VaultType? public init( @@ -3459,9 +3463,9 @@ public struct DescribeRegionSettingsInput { } public struct DescribeRegionSettingsOutput { - /// Returns whether Backup fully manages the backups for a resource type. For the benefits of full Backup management, see [ Full Backup management](https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html#full-management). For a list of resource types and whether each supports full Backup management, see the [ Feature availability by resource](https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html#features-by-resource) table. If "DynamoDB":false, you can enable full Backup management for DynamoDB backup by enabling [ Backup's advanced DynamoDB backup features](https://docs.aws.amazon.com/aws-backup/latest/devguide/advanced-ddb-backup.html#advanced-ddb-backup-enable-cli). + /// Returns whether Backup fully manages the backups for a resource type. For the benefits of full Backup management, see [Full Backup management](https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html#full-management). For a list of resource types and whether each supports full Backup management, see the [Feature availability by resource](https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html#features-by-resource) table. If "DynamoDB":false, you can enable full Backup management for DynamoDB backup by enabling [ Backup's advanced DynamoDB backup features](https://docs.aws.amazon.com/aws-backup/latest/devguide/advanced-ddb-backup.html#advanced-ddb-backup-enable-cli). public var resourceTypeManagementPreference: [Swift.String: Swift.Bool]? - /// Returns a list of all services along with the opt-in preferences in the Region. + /// The services along with the opt-in preferences in the Region. public var resourceTypeOptInPreference: [Swift.String: Swift.Bool]? public init( @@ -3552,7 +3556,7 @@ extension BackupClientTypes { } public struct DescribeReportJobOutput { - /// A list of information about a report job, including its completion and creation times, report destination, unique report job ID, Amazon Resource Name (ARN), report template, status, and status message. + /// The information about a report job, including its completion and creation times, report destination, unique report job ID, Amazon Resource Name (ARN), report template, status, and status message. public var reportJob: BackupClientTypes.ReportJob? public init( @@ -3779,11 +3783,11 @@ public struct DescribeRestoreJobOutput { public var completionDate: Foundation.Date? /// Contains identifying information about the creation of a restore job. public var createdBy: BackupClientTypes.RestoreJobCreator? - /// An Amazon Resource Name (ARN) that uniquely identifies a resource whose recovery point is being restored. The format of the ARN depends on the resource type of the backed-up resource. + /// The Amazon Resource Name (ARN) of the resource that was created by the restore job. The format of the ARN depends on the resource type of the backed-up resource. public var createdResourceArn: Swift.String? /// The date and time that a restore job is created, in Unix format and Coordinated Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. public var creationDate: Foundation.Date? - /// This notes the status of the data generated by the restore test. The status may be Deleting, Failed, or Successful. + /// The status of the data generated by the restore test. public var deletionStatus: BackupClientTypes.RestoreDeletionStatus? /// This describes the restore job deletion status. public var deletionStatusMessage: Swift.String? @@ -3795,7 +3799,7 @@ public struct DescribeRestoreJobOutput { public var percentDone: Swift.String? /// An ARN that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. public var recoveryPointArn: Swift.String? - /// This is the creation date of the recovery point made by the specifed restore job. + /// The creation date of the recovery point made by the specifed restore job. public var recoveryPointCreationDate: Foundation.Date? /// Returns metadata associated with a restore job listed by resource type. public var resourceType: Swift.String? @@ -3805,9 +3809,9 @@ public struct DescribeRestoreJobOutput { public var status: BackupClientTypes.RestoreJobStatus? /// A message showing the status of a job to restore a recovery point. public var statusMessage: Swift.String? - /// This is the status of validation run on the indicated restore job. + /// The status of validation run on the indicated restore job. public var validationStatus: BackupClientTypes.RestoreValidationStatus? - /// This describes the status of validation run on the indicated restore job. + /// The status message. public var validationStatusMessage: Swift.String? public init( @@ -3873,10 +3877,10 @@ public struct DisassociateRecoveryPointInput { } public struct DisassociateRecoveryPointFromParentInput { - /// This is the name of a logical container where the child (nested) recovery point is stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// The name of a logical container where the child (nested) recovery point is stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. /// This member is required. public var backupVaultName: Swift.String? - /// This is the Amazon Resource Name (ARN) that uniquely identifies the child (nested) recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. + /// The Amazon Resource Name (ARN) that uniquely identifies the child (nested) recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. /// This member is required. public var recoveryPointArn: Swift.String? @@ -3947,7 +3951,7 @@ public struct GetBackupPlanOutput { public var creatorRequestId: Swift.String? /// The date and time that a backup plan is deleted, in Unix format and Coordinated Universal Time (UTC). The value of DeletionDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. public var deletionDate: Foundation.Date? - /// The last time a job to back up resources was run with this backup plan. A date and time, in Unix format and Coordinated Universal Time (UTC). The value of LastExecutionDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. + /// The last time this backup plan was run. A date and time, in Unix format and Coordinated Universal Time (UTC). The value of LastExecutionDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. public var lastExecutionDate: Foundation.Date? /// Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. Version IDs cannot be edited. public var versionId: Swift.String? @@ -4073,7 +4077,7 @@ public struct GetBackupSelectionOutput { } public struct GetBackupVaultAccessPolicyInput { - /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. /// This member is required. public var backupVaultName: Swift.String? @@ -4086,9 +4090,9 @@ public struct GetBackupVaultAccessPolicyInput { } public struct GetBackupVaultAccessPolicyOutput { - /// An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. + /// An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault. public var backupVaultArn: Swift.String? - /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Region where they are created. public var backupVaultName: Swift.String? /// The backup vault access policy document in JSON format. public var policy: Swift.String? @@ -4106,7 +4110,7 @@ public struct GetBackupVaultAccessPolicyOutput { } public struct GetBackupVaultNotificationsInput { - /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. /// This member is required. public var backupVaultName: Swift.String? @@ -4119,11 +4123,11 @@ public struct GetBackupVaultNotificationsInput { } public struct GetBackupVaultNotificationsOutput { - /// An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. + /// An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault. public var backupVaultArn: Swift.String? /// An array of events that indicate the status of jobs to back up resources to the backup vault. public var backupVaultEvents: [BackupClientTypes.BackupVaultEvent]? - /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Region where they are created. public var backupVaultName: Swift.String? /// An ARN that uniquely identifies an Amazon Simple Notification Service (Amazon SNS) topic; for example, arn:aws:sns:us-west-2:111122223333:MyTopic. public var snsTopicArn: Swift.String? @@ -4143,7 +4147,7 @@ public struct GetBackupVaultNotificationsOutput { } public struct GetLegalHoldInput { - /// This is the ID required to use GetLegalHold. This unique ID is associated with a specific legal hold. + /// The ID of the legal hold. /// This member is required. public var legalHoldId: Swift.String? @@ -4156,25 +4160,25 @@ public struct GetLegalHoldInput { } public struct GetLegalHoldOutput { - /// String describing the reason for removing the legal hold. + /// The reason for removing the legal hold. public var cancelDescription: Swift.String? - /// Time in number when legal hold was cancelled. + /// The time when the legal hold was cancelled. public var cancellationDate: Foundation.Date? - /// Time in number format when legal hold was created. + /// The time when the legal hold was created. public var creationDate: Foundation.Date? - /// This is the returned string description of the legal hold. + /// The description of the legal hold. public var description: Swift.String? - /// This is the returned framework ARN for the specified legal hold. An Amazon Resource Name (ARN) uniquely identifies a resource. The format of the ARN depends on the resource type. + /// The framework ARN for the specified legal hold. The format of the ARN depends on the resource type. public var legalHoldArn: Swift.String? - /// This is the returned ID associated with a specified legal hold. + /// The ID of the legal hold. public var legalHoldId: Swift.String? - /// This specifies criteria to assign a set of resources, such as resource types or backup vaults. + /// The criteria to assign a set of resources, such as resource types or backup vaults. public var recoveryPointSelection: BackupClientTypes.RecoveryPointSelection? - /// This is the date and time until which the legal hold record will be retained. + /// The date and time until which the legal hold record is retained. public var retainRecordUntil: Foundation.Date? - /// This is the status of the legal hold. Statuses can be ACTIVE, CREATING, CANCELED, and CANCELING. + /// The status of the legal hold. public var status: BackupClientTypes.LegalHoldStatus? - /// This is the string title of the legal hold. + /// The title of the legal hold. public var title: Swift.String? public init( @@ -4204,9 +4208,9 @@ public struct GetLegalHoldOutput { } public struct GetRecoveryPointRestoreMetadataInput { - /// This is the account ID of the specified backup vault. + /// The account ID of the specified backup vault. public var backupVaultAccountId: Swift.String? - /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. /// This member is required. public var backupVaultName: Swift.String? /// An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. @@ -4226,11 +4230,11 @@ public struct GetRecoveryPointRestoreMetadataInput { } public struct GetRecoveryPointRestoreMetadataOutput { - /// An ARN that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. + /// An ARN that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault. public var backupVaultArn: Swift.String? /// An ARN that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. public var recoveryPointArn: Swift.String? - /// This is the resource type associated with the recovery point. + /// The resource type of the recovery point. public var resourceType: Swift.String? /// The set of metadata key-value pairs that describe the original configuration of the backed-up resource. These values vary depending on the service that is being restored. public var restoreMetadata: [Swift.String: Swift.String]? @@ -4289,7 +4293,7 @@ extension GetRestoreJobMetadataOutput: Swift.CustomDebugStringConvertible { } public struct GetRestoreTestingInferredMetadataInput { - /// This is the account ID of the specified backup vault. + /// The account ID of the specified backup vault. public var backupVaultAccountId: Swift.String? /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web ServicesRegion where they are created. They consist of letters, numbers, and hyphens. /// This member is required. @@ -4354,7 +4358,7 @@ extension BackupClientTypes { /// An Amazon Resource Name (ARN) that uniquely identifies a restore testing plan. /// This member is required. public var restoreTestingPlanArn: Swift.String? - /// This is the restore testing plan name. + /// The restore testing plan name. /// This member is required. public var restoreTestingPlanName: Swift.String? /// A CRON expression in specified timezone when a restore testing plan is executed. @@ -4447,7 +4451,7 @@ extension BackupClientTypes { /// The RestoreTestingPlanName is a unique string that is the name of the restore testing plan. /// This member is required. public var restoreTestingPlanName: Swift.String? - /// This is the unique name of the restore testing selection that belongs to the related restore testing plan. + /// The unique name of the restore testing selection that belongs to the related restore testing plan. /// This member is required. public var restoreTestingSelectionName: Swift.String? /// This is amount of hours (1 to 168) available to run a validation script on the data. The data will be deleted upon the completion of the validation script or the end of the specified retention period, whichever comes first. @@ -4504,6 +4508,10 @@ public struct GetSupportedResourceTypesOutput { /// /// * Aurora for Amazon Aurora /// + /// * CloudFormation for CloudFormation + /// + /// * DocumentDB for Amazon DocumentDB (with MongoDB compatibility) + /// /// * DynamoDB for Amazon DynamoDB /// /// * EBS for Amazon Elastic Block Store @@ -4512,15 +4520,23 @@ public struct GetSupportedResourceTypesOutput { /// /// * EFS for Amazon Elastic File System /// - /// * FSX for Amazon FSx + /// * FSx for Amazon FSx + /// + /// * Neptune for Amazon Neptune /// /// * RDS for Amazon Relational Database Service /// + /// * Redshift for Amazon Redshift + /// + /// * S3 for Amazon Simple Storage Service (Amazon S3) + /// + /// * SAP HANA on Amazon EC2 for SAP HANA databases on Amazon Elastic Compute Cloud instances + /// /// * Storage Gateway for Storage Gateway /// - /// * DocDB for Amazon DocumentDB (with MongoDB compatibility) + /// * Timestream for Amazon Timestream /// - /// * Neptune for Amazon Neptune + /// * VirtualMachine for VMware virtual machines public var resourceTypes: [Swift.String]? public init( @@ -4534,7 +4550,7 @@ public struct GetSupportedResourceTypesOutput { public struct ListBackupJobsInput { /// The account ID to list the jobs from. Returns only backup jobs associated with the specified account ID. If used from an Organizations management account, passing * returns all jobs across the organization. public var byAccountId: Swift.String? - /// Returns only backup jobs that will be stored in the specified backup vault. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// Returns only backup jobs that will be stored in the specified backup vault. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. public var byBackupVaultName: Swift.String? /// Returns only backup jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC). public var byCompleteAfter: Foundation.Date? @@ -4570,19 +4586,19 @@ public struct ListBackupJobsInput { /// /// * Neptune for Amazon Neptune /// + /// * RDS for Amazon Relational Database Service + /// /// * Redshift for Amazon Redshift /// - /// * RDS for Amazon Relational Database Service + /// * S3 for Amazon Simple Storage Service (Amazon S3) /// - /// * SAP HANA on Amazon EC2 for SAP HANA databases + /// * SAP HANA on Amazon EC2 for SAP HANA databases on Amazon Elastic Compute Cloud instances /// /// * Storage Gateway for Storage Gateway /// - /// * S3 for Amazon S3 - /// /// * Timestream for Amazon Timestream /// - /// * VirtualMachine for virtual machines + /// * VirtualMachine for VMware virtual machines public var byResourceType: Swift.String? /// Returns only backup jobs that are in the specified state. Completed with issues is a status found only in the Backup console. For API, this status refers to jobs with a state of COMPLETED and a MessageCategory with a value other than SUCCESS; that is, the status is completed but comes with a status message. To obtain the job count for Completed with issues, run two GET requests, and subtract the second, smaller number: GET /backup-jobs/?state=COMPLETED GET /backup-jobs/?messageCategory=SUCCESS&state=COMPLETED public var byState: BackupClientTypes.BackupJobState? @@ -4642,15 +4658,15 @@ public struct ListBackupJobsOutput { public struct ListBackupJobSummariesInput { /// Returns the job count for the specified account. If the request is sent from a member account or an account not part of Amazon Web Services Organizations, jobs within requestor's account will be returned. Root, admin, and delegated administrator accounts can use the value ANY to return job counts from every account in the organization. AGGREGATE_ALL aggregates job counts from all accounts within the authenticated organization, then returns the sum. public var accountId: Swift.String? - /// This is the period that sets the boundaries for returned results. Acceptable values include + /// The period for the returned results. /// - /// * ONE_DAY for daily job count for the prior 14 days. + /// * ONE_DAY - The daily job count for the prior 14 days. /// - /// * SEVEN_DAYS for the aggregated job count for the prior 7 days. + /// * SEVEN_DAYS - The aggregated job count for the prior 7 days. /// - /// * FOURTEEN_DAYS for aggregated job count for prior 14 days. + /// * FOURTEEN_DAYS - The aggregated job count for prior 14 days. public var aggregationPeriod: BackupClientTypes.AggregationPeriod? - /// This parameter sets the maximum number of items to be returned. The value is an integer. Range of accepted values is from 1 to 500. + /// The maximum number of items to be returned. The value is an integer. Range of accepted values is from 1 to 500. public var maxResults: Swift.Int? /// This parameter returns the job count for the specified message category. Example accepted strings include AccessDenied, Success, and InvalidParameters. See [Monitoring](https://docs.aws.amazon.com/aws-backup/latest/devguide/monitoring.html) for a list of accepted MessageCategory strings. The the value ANY returns count of all message categories. AGGREGATE_ALL aggregates job counts for all message categories and returns the sum. public var messageCategory: Swift.String? @@ -4682,15 +4698,15 @@ public struct ListBackupJobSummariesInput { } public struct ListBackupJobSummariesOutput { - /// This is the period that sets the boundaries for returned results. + /// The period for the returned results. /// - /// * ONE_DAY for daily job count for the prior 14 days. + /// * ONE_DAY - The daily job count for the prior 14 days. /// - /// * SEVEN_DAYS for the aggregated job count for the prior 7 days. + /// * SEVEN_DAYS - The aggregated job count for the prior 7 days. /// - /// * FOURTEEN_DAYS for aggregated job count for prior 14 days. + /// * FOURTEEN_DAYS - The aggregated job count for prior 14 days. public var aggregationPeriod: Swift.String? - /// This request returns a summary that contains Region, Account, State, ResourceType, MessageCategory, StartTime, EndTime, and Count of included jobs. + /// The summary information. public var backupJobSummaries: [BackupClientTypes.BackupJobSummary]? /// The next item following a partial list of returned resources. For example, if a request is made to return MaxResults number of resources, NextToken allows you to return more items in your list starting at the location pointed to by the next token. public var nextToken: Swift.String? @@ -4728,7 +4744,7 @@ public struct ListBackupPlansInput { } public struct ListBackupPlansOutput { - /// An array of backup plan list items containing metadata about your saved backup plans. + /// Information about the backup plans. public var backupPlansList: [BackupClientTypes.BackupPlansListMember]? /// The next item following a partial list of returned items. For example, if a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token. public var nextToken: Swift.String? @@ -4744,7 +4760,7 @@ public struct ListBackupPlansOutput { } public struct ListBackupPlanTemplatesInput { - /// The maximum number of items to be returned. + /// The maximum number of items to return. public var maxResults: Swift.Int? /// The next item following a partial list of returned items. For example, if a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token. public var nextToken: Swift.String? @@ -4900,7 +4916,7 @@ public struct ListCopyJobsInput { public var byCreatedAfter: Foundation.Date? /// Returns only copy jobs that were created before the specified date. public var byCreatedBefore: Foundation.Date? - /// An Amazon Resource Name (ARN) that uniquely identifies a source backup vault to copy from; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. + /// An Amazon Resource Name (ARN) that uniquely identifies a source backup vault to copy from; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault. public var byDestinationVaultArn: Swift.String? /// This is an optional parameter that can be used to filter out jobs with a MessageCategory which matches the value you input. Example strings may include AccessDenied, SUCCESS, AGGREGATE_ALL, and INVALIDPARAMETERS. View [Monitoring](https://docs.aws.amazon.com/aws-backup/latest/devguide/monitoring.html) for a list of accepted strings. The the value ANY returns count of all message categories. AGGREGATE_ALL aggregates job counts for all message categories and returns the sum. public var byMessageCategory: Swift.String? @@ -4928,19 +4944,19 @@ public struct ListCopyJobsInput { /// /// * Neptune for Amazon Neptune /// + /// * RDS for Amazon Relational Database Service + /// /// * Redshift for Amazon Redshift /// - /// * RDS for Amazon Relational Database Service + /// * S3 for Amazon Simple Storage Service (Amazon S3) /// - /// * SAP HANA on Amazon EC2 for SAP HANA databases + /// * SAP HANA on Amazon EC2 for SAP HANA databases on Amazon Elastic Compute Cloud instances /// /// * Storage Gateway for Storage Gateway /// - /// * S3 for Amazon S3 - /// /// * Timestream for Amazon Timestream /// - /// * VirtualMachine for virtual machines + /// * VirtualMachine for VMware virtual machines public var byResourceType: Swift.String? /// Returns only copy jobs that are in the specified state. public var byState: BackupClientTypes.CopyJobState? @@ -5000,13 +5016,13 @@ public struct ListCopyJobsOutput { public struct ListCopyJobSummariesInput { /// Returns the job count for the specified account. If the request is sent from a member account or an account not part of Amazon Web Services Organizations, jobs within requestor's account will be returned. Root, admin, and delegated administrator accounts can use the value ANY to return job counts from every account in the organization. AGGREGATE_ALL aggregates job counts from all accounts within the authenticated organization, then returns the sum. public var accountId: Swift.String? - /// This is the period that sets the boundaries for returned results. + /// The period for the returned results. /// - /// * ONE_DAY for daily job count for the prior 14 days. + /// * ONE_DAY - The daily job count for the prior 14 days. /// - /// * SEVEN_DAYS for the aggregated job count for the prior 7 days. + /// * SEVEN_DAYS - The aggregated job count for the prior 7 days. /// - /// * FOURTEEN_DAYS for aggregated job count for prior 14 days. + /// * FOURTEEN_DAYS - The aggregated job count for prior 14 days. public var aggregationPeriod: BackupClientTypes.AggregationPeriod? /// This parameter sets the maximum number of items to be returned. The value is an integer. Range of accepted values is from 1 to 500. public var maxResults: Swift.Int? @@ -5040,13 +5056,13 @@ public struct ListCopyJobSummariesInput { } public struct ListCopyJobSummariesOutput { - /// This is the period that sets the boundaries for returned results. + /// The period for the returned results. /// - /// * ONE_DAY for daily job count for the prior 14 days. + /// * ONE_DAY - The daily job count for the prior 14 days. /// - /// * SEVEN_DAYS for the aggregated job count for the prior 7 days. + /// * SEVEN_DAYS - The aggregated job count for the prior 7 days. /// - /// * FOURTEEN_DAYS for aggregated job count for prior 14 days. + /// * FOURTEEN_DAYS - The aggregated job count for prior 14 days. public var aggregationPeriod: Swift.String? /// This return shows a summary that contains Region, Account, State, ResourceType, MessageCategory, StartTime, EndTime, and Count of included jobs. public var copyJobSummaries: [BackupClientTypes.CopyJobSummary]? @@ -5118,7 +5134,7 @@ extension BackupClientTypes { } public struct ListFrameworksOutput { - /// A list of frameworks with details for each framework, including the framework name, Amazon Resource Name (ARN), description, number of controls, creation time, and deployment status. + /// The frameworks with details for each framework, including the framework name, Amazon Resource Name (ARN), description, number of controls, creation time, and deployment status. public var frameworks: [BackupClientTypes.Framework]? /// An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. public var nextToken: Swift.String? @@ -5152,19 +5168,19 @@ public struct ListLegalHoldsInput { extension BackupClientTypes { /// 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 (such as transition to cold storage) are delayed until the legal hold is removed. A backup can have more than one legal hold. Legal holds are applied to one or more backups (also known as recovery points). These backups can be filtered by resource types and by resource IDs. public struct LegalHold { - /// This is the time in number format when legal hold was cancelled. + /// The time when the legal hold was cancelled. public var cancellationDate: Foundation.Date? - /// This is the time in number format when legal hold was created. + /// The time when the legal hold was created. public var creationDate: Foundation.Date? - /// This is the description of a legal hold. + /// The description of a legal hold. public var description: Swift.String? - /// This is an Amazon Resource Number (ARN) that uniquely identifies the legal hold; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. + /// The Amazon Resource Name (ARN) of the legal hold; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. public var legalHoldArn: Swift.String? - /// ID of specific legal hold on one or more recovery points. + /// The ID of the legal hold. public var legalHoldId: Swift.String? - /// This is the status of the legal hold. Statuses can be ACTIVE, CREATING, CANCELED, and CANCELING. + /// The status of the legal hold. public var status: BackupClientTypes.LegalHoldStatus? - /// This is the title of a legal hold. + /// The title of a legal hold. public var title: Swift.String? public init( @@ -5226,13 +5242,13 @@ extension BackupClientTypes { public struct ProtectedResource { /// The date and time a resource was last backed up, in Unix format and Coordinated Universal Time (UTC). The value of LastBackupTime is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. public var lastBackupTime: Foundation.Date? - /// This is the ARN (Amazon Resource Name) of the backup vault that contains the most recent backup recovery point. + /// The ARN (Amazon Resource Name) of the backup vault that contains the most recent backup recovery point. public var lastBackupVaultArn: Swift.String? - /// This is the ARN (Amazon Resource Name) of the most recent recovery point. + /// The ARN (Amazon Resource Name) of the most recent recovery point. public var lastRecoveryPointArn: Swift.String? /// An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type. public var resourceArn: Swift.String? - /// This is the non-unique name of the resource that belongs to the specified backup. + /// The non-unique name of the resource that belongs to the specified backup. public var resourceName: Swift.String? /// The type of Amazon Web Services resource; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only supported resource type is Amazon EC2. public var resourceType: Swift.String? @@ -5274,9 +5290,9 @@ public struct ListProtectedResourcesOutput { } public struct ListProtectedResourcesByBackupVaultInput { - /// This is the list of protected resources by backup vault within the vault(s) you specify by account ID. + /// The list of protected resources by backup vault within the vault(s) you specify by account ID. public var backupVaultAccountId: Swift.String? - /// This is the list of protected resources by backup vault within the vault(s) you specify by name. + /// The list of protected resources by backup vault within the vault(s) you specify by name. /// This member is required. public var backupVaultName: Swift.String? /// The maximum number of items to be returned. @@ -5317,7 +5333,7 @@ public struct ListProtectedResourcesByBackupVaultOutput { public struct ListRecoveryPointsByBackupVaultInput { /// This parameter will sort the list of recovery points by account ID. public var backupVaultAccountId: Swift.String? - /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens. Backup vault name might not be available when a supported service creates the backup. + /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. Backup vault name might not be available when a supported service creates the backup. /// This member is required. public var backupVaultName: Swift.String? /// Returns only recovery points that match the specified backup plan ID. @@ -5350,19 +5366,19 @@ public struct ListRecoveryPointsByBackupVaultInput { /// /// * Neptune for Amazon Neptune /// + /// * RDS for Amazon Relational Database Service + /// /// * Redshift for Amazon Redshift /// - /// * RDS for Amazon Relational Database Service + /// * S3 for Amazon Simple Storage Service (Amazon S3) /// - /// * SAP HANA on Amazon EC2 for SAP HANA databases + /// * SAP HANA on Amazon EC2 for SAP HANA databases on Amazon Elastic Compute Cloud instances /// /// * Storage Gateway for Storage Gateway /// - /// * S3 for Amazon S3 - /// /// * Timestream for Amazon Timestream /// - /// * VirtualMachine for virtual machines + /// * VirtualMachine for VMware virtual machines public var byResourceType: Swift.String? /// The maximum number of items to be returned. public var maxResults: Swift.Int? @@ -5400,15 +5416,15 @@ extension BackupClientTypes { public struct RecoveryPointByBackupVault { /// The size, in bytes, of a backup. public var backupSizeInBytes: Swift.Int? - /// An ARN that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. + /// An ARN that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault. public var backupVaultArn: Swift.String? - /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. public var backupVaultName: Swift.String? /// A CalculatedLifecycle object containing DeleteAt and MoveToColdStorageAt timestamps. public var calculatedLifecycle: BackupClientTypes.CalculatedLifecycle? /// The date and time a job to restore a recovery point is completed, in Unix format and Coordinated Universal Time (UTC). The value of CompletionDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. public var completionDate: Foundation.Date? - /// This is the identifier of a resource within a composite group, such as nested (child) recovery point belonging to a composite (parent) stack. The ID is transferred from the [ logical ID](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resources-section-structure.html#resources-section-structure-syntax) within a stack. + /// The identifier of a resource within a composite group, such as nested (child) recovery point belonging to a composite (parent) stack. The ID is transferred from the [ logical ID](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resources-section-structure.html#resources-section-structure-syntax) within a stack. public var compositeMemberIdentifier: Swift.String? /// Contains identifying information about the creation of a recovery point, including the BackupPlanArn, BackupPlanId, BackupPlanVersion, and BackupRuleId of the backup plan that is used to create it. public var createdBy: BackupClientTypes.RecoveryPointCreator? @@ -5424,15 +5440,15 @@ extension BackupClientTypes { public var isParent: Swift.Bool /// The date and time a recovery point was last restored, in Unix format and Coordinated Universal Time (UTC). The value of LastRestoreTime is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. public var lastRestoreTime: Foundation.Date? - /// The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define. Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold. Resource types that are able to be transitioned to cold storage are listed in the "Lifecycle to cold storage" section of the [ Feature availability by resource](https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html#features-by-resource) table. Backup ignores this expression for other resource types. + /// The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define. Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold. Resource types that can transition to cold storage are listed in the [Feature availability by resource](https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html#features-by-resource) table. Backup ignores this expression for other resource types. public var lifecycle: BackupClientTypes.Lifecycle? - /// This is the Amazon Resource Name (ARN) of the parent (composite) recovery point. + /// The Amazon Resource Name (ARN) of the parent (composite) recovery point. public var parentRecoveryPointArn: Swift.String? /// An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. public var recoveryPointArn: Swift.String? /// An ARN that uniquely identifies a resource. The format of the ARN depends on the resource type. public var resourceArn: Swift.String? - /// This is the non-unique name of the resource that belongs to the specified backup. + /// The non-unique name of the resource that belongs to the specified backup. public var resourceName: Swift.String? /// The type of Amazon Web Services resource saved as a recovery point; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only supported resource type is Amazon EC2. public var resourceType: Swift.String? @@ -5440,9 +5456,9 @@ extension BackupClientTypes { public var sourceBackupVaultArn: Swift.String? /// A status code specifying the state of the recovery point. public var status: BackupClientTypes.RecoveryPointStatus? - /// A message explaining the reason of the recovery point deletion failure. + /// A message explaining the current status of the recovery point. public var statusMessage: Swift.String? - /// This is the type of vault in which the described recovery point is stored. + /// The type of vault in which the described recovery point is stored. public var vaultType: BackupClientTypes.VaultType? public init( @@ -5516,12 +5532,12 @@ public struct ListRecoveryPointsByBackupVaultOutput { } public struct ListRecoveryPointsByLegalHoldInput { - /// This is the ID of the legal hold. + /// The ID of the legal hold. /// This member is required. public var legalHoldId: Swift.String? - /// This is the maximum number of resource list items to be returned. + /// The maximum number of resource list items to be returned. public var maxResults: Swift.Int? - /// This is the next item following a partial list of returned resources. For example, if a request is made to return MaxResults number of resources, NextToken allows you to return more items in your list starting at the location pointed to by the next token. + /// The next item following a partial list of returned resources. For example, if a request is made to return MaxResults number of resources, NextToken allows you to return more items in your list starting at the location pointed to by the next token. public var nextToken: Swift.String? public init( @@ -5539,13 +5555,13 @@ public struct ListRecoveryPointsByLegalHoldInput { extension BackupClientTypes { /// This is a recovery point which is a child (nested) recovery point of a parent (composite) recovery point. These recovery points can be disassociated from their parent (composite) recovery point, in which case they will no longer be a member. public struct RecoveryPointMember { - /// This is the name of the backup vault (the logical container in which backups are stored). + /// The name of the backup vault (the logical container in which backups are stored). public var backupVaultName: Swift.String? - /// This is the Amazon Resource Name (ARN) of the parent (composite) recovery point. + /// The Amazon Resource Name (ARN) of the parent (composite) recovery point. public var recoveryPointArn: Swift.String? - /// This is the Amazon Resource Name (ARN) that uniquely identifies a saved resource. + /// The Amazon Resource Name (ARN) that uniquely identifies a saved resource. public var resourceArn: Swift.String? - /// This is the Amazon Web Services resource type that is saved as a recovery point. + /// The Amazon Web Services resource type that is saved as a recovery point. public var resourceType: Swift.String? public init( @@ -5565,9 +5581,9 @@ extension BackupClientTypes { } public struct ListRecoveryPointsByLegalHoldOutput { - /// This return is the next item following a partial list of returned resources. + /// The next item following a partial list of returned resources. public var nextToken: Swift.String? - /// This is a list of the recovery points returned by ListRecoveryPointsByLegalHold. + /// The recovery points. public var recoveryPoints: [BackupClientTypes.RecoveryPointMember]? public init( @@ -5610,7 +5626,7 @@ extension BackupClientTypes { public struct RecoveryPointByResource { /// The size, in bytes, of a backup. public var backupSizeBytes: Swift.Int? - /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. public var backupVaultName: Swift.String? /// The date and time a recovery point is created, in Unix format and Coordinated Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. public var creationDate: Foundation.Date? @@ -5618,17 +5634,17 @@ extension BackupClientTypes { public var encryptionKeyArn: Swift.String? /// This is a boolean value indicating this is a parent (composite) recovery point. public var isParent: Swift.Bool - /// This is the Amazon Resource Name (ARN) of the parent (composite) recovery point. + /// The Amazon Resource Name (ARN) of the parent (composite) recovery point. public var parentRecoveryPointArn: Swift.String? /// An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. public var recoveryPointArn: Swift.String? - /// This is the non-unique name of the resource that belongs to the specified backup. + /// The non-unique name of the resource that belongs to the specified backup. public var resourceName: Swift.String? /// A status code specifying the state of the recovery point. public var status: BackupClientTypes.RecoveryPointStatus? - /// A message explaining the reason of the recovery point deletion failure. + /// A message explaining the current status of the recovery point. public var statusMessage: Swift.String? - /// This is the type of vault in which the described recovery point is stored. + /// The type of vault in which the described recovery point is stored. public var vaultType: BackupClientTypes.VaultType? public init( @@ -5744,7 +5760,7 @@ public struct ListReportPlansInput { public struct ListReportPlansOutput { /// An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list. public var nextToken: Swift.String? - /// A list of your report plans with detailed information for each plan. This information includes the Amazon Resource Name (ARN), report plan name, description, settings, delivery channel, deployment status, creation time, and last times the report plan attempted to and successfully ran. + /// The report plans with detailed information for each plan. This information includes the Amazon Resource Name (ARN), report plan name, description, settings, delivery channel, deployment status, creation time, and last times the report plan attempted to and successfully ran. public var reportPlans: [BackupClientTypes.ReportPlan]? public init( @@ -5788,19 +5804,19 @@ public struct ListRestoreJobsInput { /// /// * Neptune for Amazon Neptune /// + /// * RDS for Amazon Relational Database Service + /// /// * Redshift for Amazon Redshift /// - /// * RDS for Amazon Relational Database Service + /// * S3 for Amazon Simple Storage Service (Amazon S3) /// - /// * SAP HANA on Amazon EC2 for SAP HANA databases + /// * SAP HANA on Amazon EC2 for SAP HANA databases on Amazon Elastic Compute Cloud instances /// /// * Storage Gateway for Storage Gateway /// - /// * S3 for Amazon S3 - /// /// * Timestream for Amazon Timestream /// - /// * VirtualMachine for virtual machines + /// * VirtualMachine for VMware virtual machines public var byResourceType: Swift.String? /// This returns only restore testing jobs that match the specified resource Amazon Resource Name (ARN). public var byRestoreTestingPlanArn: Swift.String? @@ -5858,7 +5874,7 @@ extension BackupClientTypes { public var deletionStatusMessage: Swift.String? /// The amount of time in minutes that a job restoring a recovery point is expected to take. public var expectedCompletionTimeMinutes: Swift.Int? - /// Specifies the IAM role ARN used to create the target recovery point; for example, arn:aws:iam::123456789012:role/S3Access. + /// The IAM role ARN used to create the target recovery point; for example, arn:aws:iam::123456789012:role/S3Access. public var iamRoleArn: Swift.String? /// Contains an estimated percentage complete of a job at the time the job status was queried. public var percentDone: Swift.String? @@ -5874,7 +5890,7 @@ extension BackupClientTypes { public var status: BackupClientTypes.RestoreJobStatus? /// A detailed message explaining the status of the job to restore a recovery point. public var statusMessage: Swift.String? - /// This is the status of validation run on the indicated restore job. + /// The status of validation run on the indicated restore job. public var validationStatus: BackupClientTypes.RestoreValidationStatus? /// This describes the status of validation run on the indicated restore job. public var validationStatusMessage: Swift.String? @@ -6040,13 +6056,13 @@ extension BackupClientTypes { public struct ListRestoreJobSummariesInput { /// Returns the job count for the specified account. If the request is sent from a member account or an account not part of Amazon Web Services Organizations, jobs within requestor's account will be returned. Root, admin, and delegated administrator accounts can use the value ANY to return job counts from every account in the organization. AGGREGATE_ALL aggregates job counts from all accounts within the authenticated organization, then returns the sum. public var accountId: Swift.String? - /// This is the period that sets the boundaries for returned results. Acceptable values include + /// The period for the returned results. /// - /// * ONE_DAY for daily job count for the prior 14 days. + /// * ONE_DAY - The daily job count for the prior 14 days. /// - /// * SEVEN_DAYS for the aggregated job count for the prior 7 days. + /// * SEVEN_DAYS - The aggregated job count for the prior 7 days. /// - /// * FOURTEEN_DAYS for aggregated job count for prior 14 days. + /// * FOURTEEN_DAYS - The aggregated job count for prior 14 days. public var aggregationPeriod: BackupClientTypes.AggregationPeriod? /// This parameter sets the maximum number of items to be returned. The value is an integer. Range of accepted values is from 1 to 500. public var maxResults: Swift.Int? @@ -6116,13 +6132,13 @@ extension BackupClientTypes { } public struct ListRestoreJobSummariesOutput { - /// This is the period that sets the boundaries for returned results. + /// The period for the returned results. /// - /// * ONE_DAY for daily job count for the prior 14 days. + /// * ONE_DAY - The daily job count for the prior 14 days. /// - /// * SEVEN_DAYS for the aggregated job count for the prior 7 days. + /// * SEVEN_DAYS - The aggregated job count for the prior 7 days. /// - /// * FOURTEEN_DAYS for aggregated job count for prior 14 days. + /// * FOURTEEN_DAYS - The aggregated job count for prior 14 days. public var aggregationPeriod: Swift.String? /// The next item following a partial list of returned resources. For example, if a request is made to return MaxResults number of resources, NextToken allows you to return more items in your list starting at the location pointed to by the next token. public var nextToken: Swift.String? @@ -6170,7 +6186,7 @@ extension BackupClientTypes { /// An Amazon Resource Name (ARN) that uniquely identifiesa restore testing plan. /// This member is required. public var restoreTestingPlanArn: Swift.String? - /// This is the restore testing plan name. + /// The restore testing plan name. /// This member is required. public var restoreTestingPlanName: Swift.String? /// A CRON expression in specified timezone when a restore testing plan is executed. @@ -6246,7 +6262,7 @@ public struct ListRestoreTestingSelectionsInput { extension BackupClientTypes { /// This contains metadata about a restore testing selection. public struct RestoreTestingSelectionForList { - /// This is the date and time that a restore testing selection was created, in Unix format and Coordinated Universal Time (UTC). The value of CreationTime is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26,2018 12:11:30.087 AM. + /// The date and time that a restore testing selection was created, in Unix format and Coordinated Universal Time (UTC). The value of CreationTime is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26,2018 12:11:30.087 AM. /// This member is required. public var creationTime: Foundation.Date? /// The Amazon Resource Name (ARN) of the IAM role that Backup uses to create the target resource; for example: arn:aws:iam::123456789012:role/S3Access. @@ -6325,7 +6341,7 @@ public struct ListTagsInput { public struct ListTagsOutput { /// The next item following a partial list of returned items. For example, if a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token. public var nextToken: Swift.String? - /// To help organize your resources, you can assign your own metadata to the resources you create. Each tag is a key-value pair. + /// Information about the tags. public var tags: [Swift.String: Swift.String]? public init( @@ -6344,7 +6360,7 @@ extension ListTagsOutput: Swift.CustomDebugStringConvertible { } public struct PutBackupVaultAccessPolicyInput { - /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. /// This member is required. public var backupVaultName: Swift.String? /// The backup vault access policy document in JSON format. @@ -6368,7 +6384,7 @@ public struct PutBackupVaultLockConfigurationInput { public var changeableForDays: Swift.Int? /// The Backup Vault Lock configuration that specifies the maximum retention period that the vault retains its recovery points. This setting can be useful if, for example, your organization's policies require you to destroy certain data after retaining it for four years (1460 days). If this parameter is not included, Vault Lock does not enforce a maximum retention period on the recovery points in the vault. If this parameter is included without a value, Vault Lock will not enforce a maximum retention period. If this parameter is specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or shorter than the maximum retention period. If the job's retention period is longer than that maximum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. The longest maximum retention period you can specify is 36500 days (approximately 100 years). Recovery points already saved in the vault prior to Vault Lock are not affected. public var maxRetentionDays: Swift.Int? - /// The Backup Vault Lock configuration that specifies the minimum retention period that the vault retains its recovery points. This setting can be useful if, for example, your organization's policies require you to retain certain data for at least seven years (2555 days). If this parameter is not specified, Vault Lock will not enforce a minimum retention period. If this parameter is specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or longer than the minimum retention period. If the job's retention period is shorter than that minimum retention period, then the vault fails that backup or copy job, and you should either modify your lifecycle settings or use a different vault. The shortest minimum retention period you can specify is 1 day. Recovery points already saved in the vault prior to Vault Lock are not affected. + /// The Backup Vault Lock configuration that specifies the minimum retention period that the vault retains its recovery points. This setting can be useful if, for example, your organization's policies require you to retain certain data for at least seven years (2555 days). This parameter is required when a vault lock is created through CloudFormation; otherwise, this parameter is optional. If this parameter is not specified, Vault Lock will not enforce a minimum retention period. If this parameter is specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or longer than the minimum retention period. If the job's retention period is shorter than that minimum retention period, then the vault fails that backup or copy job, and you should either modify your lifecycle settings or use a different vault. The shortest minimum retention period you can specify is 1 day. Recovery points already saved in the vault prior to Vault Lock are not affected. public var minRetentionDays: Swift.Int? public init( @@ -6397,10 +6413,10 @@ public struct PutBackupVaultNotificationsInput { /// * S3_BACKUP_OBJECT_FAILED | S3_RESTORE_OBJECT_FAILED /// /// - /// The list below shows items that are deprecated events (for reference) and are no longer in use. They are no longer supported and will not return statuses or notifications. Refer to the list above for current supported events. + /// 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. /// This member is required. public var backupVaultEvents: [BackupClientTypes.BackupVaultEvent]? - /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. /// This member is required. public var backupVaultName: Swift.String? /// The Amazon Resource Name (ARN) that specifies the topic for a backup vault’s events; for example, arn:aws:sns:us-west-2:111122223333:MyVaultTopic. @@ -6423,7 +6439,7 @@ public struct PutRestoreValidationResultInput { /// This is a unique identifier of a restore job within Backup. /// This member is required. public var restoreJobId: Swift.String? - /// This is the status of your restore validation. + /// The status of your restore validation. /// This member is required. public var validationStatus: BackupClientTypes.RestoreValidationStatus? /// This is an optional message string you can input to describe the validation status for the restore test validation. @@ -6442,9 +6458,9 @@ public struct PutRestoreValidationResultInput { } public struct StartBackupJobInput { - /// Specifies the backup option for a selected resource. This option is only available for Windows Volume Shadow Copy Service (VSS) backup jobs. Valid values: Set to "WindowsVSS":"enabled" to enable the WindowsVSS backup option and create a Windows VSS backup. Set to "WindowsVSS""disabled" to create a regular backup. The WindowsVSS option is not enabled by default. + /// The backup option for a selected resource. This option is only available for Windows Volume Shadow Copy Service (VSS) backup jobs. Valid values: Set to "WindowsVSS":"enabled" to enable the WindowsVSS backup option and create a Windows VSS backup. Set to "WindowsVSS""disabled" to create a regular backup. The WindowsVSS option is not enabled by default. public var backupOptions: [Swift.String: Swift.String]? - /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. /// This member is required. public var backupVaultName: Swift.String? /// A value in minutes during which a successfully started backup must complete, or else Backup will cancel the job. This value is optional. This value begins counting down from when the backup was scheduled. It does not add additional time for StartWindowMinutes, or if the backup started later than scheduled. Like StartWindowMinutes, this parameter has a maximum value of 100 years (52,560,000 minutes). @@ -6454,9 +6470,9 @@ public struct StartBackupJobInput { public var iamRoleArn: Swift.String? /// A customer-chosen string that you can use to distinguish between otherwise identical calls to StartBackupJob. Retrying a successful request with the same idempotency token results in a success message with no action taken. public var idempotencyToken: Swift.String? - /// The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup will transition and expire backups automatically according to the lifecycle that you define. Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold. Resource types that are able to be transitioned to cold storage are listed in the "Lifecycle to cold storage" section of the [ Feature availability by resource](https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html#features-by-resource) table. Backup ignores this expression for other resource types. This parameter has a maximum value of 100 years (36,500 days). + /// The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup will transition and expire backups automatically according to the lifecycle that you define. Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold. Resource types that can transition to cold storage are listed in the [Feature availability by resource](https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html#features-by-resource) table. Backup ignores this expression for other resource types. This parameter has a maximum value of 100 years (36,500 days). public var lifecycle: BackupClientTypes.Lifecycle? - /// To help organize your resources, you can assign your own metadata to the resources that you create. Each tag is a key-value pair. + /// The tags to assign to the resources. public var recoveryPointTags: [Swift.String: Swift.String]? /// An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type. /// This member is required. @@ -6518,7 +6534,7 @@ public struct StartBackupJobOutput { } public struct StartCopyJobInput { - /// An Amazon Resource Name (ARN) that uniquely identifies a destination backup vault to copy to; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. + /// An Amazon Resource Name (ARN) that uniquely identifies a destination backup vault to copy to; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault. /// This member is required. public var destinationBackupVaultArn: Swift.String? /// Specifies the IAM role ARN used to copy the target recovery point; for example, arn:aws:iam::123456789012:role/S3Access. @@ -6526,12 +6542,12 @@ public struct StartCopyJobInput { public var iamRoleArn: Swift.String? /// A customer-chosen string that you can use to distinguish between otherwise identical calls to StartCopyJob. Retrying a successful request with the same idempotency token results in a success message with no action taken. public var idempotencyToken: Swift.String? - /// Contains an array of Transition objects specifying how long in days before a recovery point transitions to cold storage or is deleted. Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, on the console, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold. Resource types that are able to be transitioned to cold storage are listed in the "Lifecycle to cold storage" section of the [ Feature availability by resource](https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html#features-by-resource) table. Backup ignores this expression for other resource types. + /// Specifies the time period, in days, before a recovery point transitions to cold storage or is deleted. Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, on the console, the retention setting must be 90 days greater than the transition to cold after days setting. The transition to cold after days setting can't be changed after a backup has been transitioned to cold. Resource types that can transition to cold storage are listed in the [Feature availability by resource](https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html#features-by-resource) table. Backup ignores this expression for other resource types. To remove the existing lifecycle and retention periods and keep your recovery points indefinitely, specify -1 for MoveToColdStorageAfterDays and DeleteAfterDays. public var lifecycle: BackupClientTypes.Lifecycle? /// An ARN that uniquely identifies a recovery point to use for the copy job; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. /// This member is required. public var recoveryPointArn: Swift.String? - /// The name of a logical source container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// The name of a logical source container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. /// This member is required. public var sourceBackupVaultName: Swift.String? @@ -6609,21 +6625,37 @@ public struct StartRestoreJobInput { public var iamRoleArn: Swift.String? /// A customer-chosen string that you can use to distinguish between otherwise identical calls to StartRestoreJob. Retrying a successful request with the same idempotency token results in a success message with no action taken. public var idempotencyToken: Swift.String? - /// A set of metadata key-value pairs. Contains information, such as a resource name, required to restore a recovery point. You can get configuration metadata about a resource at the time it was backed up by calling GetRecoveryPointRestoreMetadata. However, values in addition to those provided by GetRecoveryPointRestoreMetadata might be required to restore a resource. For example, you might need to provide a new resource name if the original already exists. You need to specify specific metadata to restore an Amazon Elastic File System (Amazon EFS) instance: + /// A set of metadata key-value pairs. You can get configuration metadata about a resource at the time it was backed up by calling GetRecoveryPointRestoreMetadata. However, values in addition to those provided by GetRecoveryPointRestoreMetadata might be required to restore a resource. For example, you might need to provide a new resource name if the original already exists. For more information about the metadata for each resource, see the following: + /// + /// * [Metadata for Amazon Aurora](https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-aur.html#aur-restore-cli) /// - /// * file-system-id: The ID of the Amazon EFS file system that is backed up by Backup. Returned in GetRecoveryPointRestoreMetadata. + /// * [Metadata for Amazon DocumentDB](https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-docdb.html#docdb-restore-cli) /// - /// * Encrypted: A Boolean value that, if true, specifies that the file system is encrypted. If KmsKeyId is specified, Encrypted must be set to true. + /// * [Metadata for CloudFormation](https://docs.aws.amazon.com/aws-backup/latest/devguide/restore-application-stacks.html#restoring-cfn-cli) /// - /// * KmsKeyId: Specifies the Amazon Web Services KMS key that is used to encrypt the restored file system. You can specify a key from another Amazon Web Services account provided that key it is properly shared with your account via Amazon Web Services KMS. + /// * [Metadata for Amazon DynamoDB](https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-dynamodb.html#ddb-restore-cli) /// - /// * PerformanceMode: Specifies the throughput mode of the file system. + /// * [ Metadata for Amazon EBS](https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-ebs.html#ebs-restore-cli) /// - /// * CreationToken: A user-supplied value that ensures the uniqueness (idempotency) of the request. + /// * [Metadata for Amazon EC2](https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-ec2.html#restoring-ec2-cli) /// - /// * newFileSystem: A Boolean value that, if true, specifies that the recovery point is restored to a new Amazon EFS file system. + /// * [Metadata for Amazon EFS](https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-efs.html#efs-restore-cli) /// - /// * ItemsToRestore: An array of one to five strings where each string is a file path. Use ItemsToRestore to restore specific files or directories rather than the entire file system. This parameter is optional. For example, "itemsToRestore":"[\"/my.test\"]". + /// * [Metadata for Amazon FSx](https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-fsx.html#fsx-restore-cli) + /// + /// * [Metadata for Amazon Neptune](https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-nep.html#nep-restore-cli) + /// + /// * [Metadata for Amazon RDS](https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-rds.html#rds-restore-cli) + /// + /// * [Metadata for Amazon Redshift](https://docs.aws.amazon.com/aws-backup/latest/devguide/redshift-restores.html#redshift-restore-api) + /// + /// * [Metadata for Storage Gateway](https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-storage-gateway.html#restoring-sgw-cli) + /// + /// * [Metadata for Amazon S3](https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-s3.html#s3-restore-cli) + /// + /// * [Metadata for Amazon Timestream](https://docs.aws.amazon.com/aws-backup/latest/devguide/timestream-restore.html#timestream-restore-api) + /// + /// * [Metadata for virtual machines](https://docs.aws.amazon.com/aws-backup/latest/devguide/restoring-vm.html#vm-restore-cli) /// This member is required. public var metadata: [Swift.String: Swift.String]? /// An ARN that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. @@ -6631,35 +6663,35 @@ public struct StartRestoreJobInput { public var recoveryPointArn: Swift.String? /// Starts a job to restore a recovery point for one of the following resources: /// - /// * Aurora for Amazon Aurora + /// * Aurora - Amazon Aurora /// - /// * DocumentDB for Amazon DocumentDB (with MongoDB compatibility) + /// * DocumentDB - Amazon DocumentDB /// - /// * CloudFormation for CloudFormation + /// * CloudFormation - CloudFormation /// - /// * DynamoDB for Amazon DynamoDB + /// * DynamoDB - Amazon DynamoDB /// - /// * EBS for Amazon Elastic Block Store + /// * EBS - Amazon Elastic Block Store /// - /// * EC2 for Amazon Elastic Compute Cloud + /// * EC2 - Amazon Elastic Compute Cloud /// - /// * EFS for Amazon Elastic File System + /// * EFS - Amazon Elastic File System /// - /// * FSx for Amazon FSx + /// * FSx - Amazon FSx /// - /// * Neptune for Amazon Neptune + /// * Neptune - Amazon Neptune /// - /// * RDS for Amazon Relational Database Service + /// * RDS - Amazon Relational Database Service /// - /// * Redshift for Amazon Redshift + /// * Redshift - Amazon Redshift /// - /// * Storage Gateway for Storage Gateway + /// * Storage Gateway - Storage Gateway /// - /// * S3 for Amazon S3 + /// * S3 - Amazon Simple Storage Service /// - /// * Timestream for Amazon Timestream + /// * Timestream - Amazon Timestream /// - /// * VirtualMachine for virtual machines + /// * VirtualMachine - Virtual machines public var resourceType: Swift.String? public init( @@ -6711,7 +6743,7 @@ public struct StopBackupJobInput { } public struct TagResourceInput { - /// An ARN that uniquely identifies a resource. The format of the ARN depends on the type of the tagged resource. + /// An ARN that uniquely identifies a resource. The format of the ARN depends on the type of the tagged resource. ARNs that do not include backup are incompatible with tagging. TagResource and UntagResource with invalid ARNs will result in an error. Acceptable ARN content can include arn:aws:backup:us-east. Invalid ARN content may look like arn:aws:ec2:us-east. /// This member is required. public var resourceArn: Swift.String? /// Key-value pairs that are used to help organize your resources. You can assign your own metadata to the resources you create. For clarity, this is the structure to assign tags: [{"Key":"string","Value":"string"}]. @@ -6734,10 +6766,10 @@ extension TagResourceInput: Swift.CustomDebugStringConvertible { } public struct UntagResourceInput { - /// An ARN that uniquely identifies a resource. The format of the ARN depends on the type of the tagged resource. + /// An ARN that uniquely identifies a resource. The format of the ARN depends on the type of the tagged resource. ARNs that do not include backup are incompatible with tagging. TagResource and UntagResource with invalid ARNs will result in an error. Acceptable ARN content can include arn:aws:backup:us-east. Invalid ARN content may look like arn:aws:ec2:us-east. /// This member is required. public var resourceArn: Swift.String? - /// A list of keys to identify which key-value tags to remove from a resource. + /// The keys to identify which key-value tags to remove from a resource. /// This member is required. public var tagKeyList: [Swift.String]? @@ -6757,10 +6789,10 @@ extension UntagResourceInput: Swift.CustomDebugStringConvertible { } public struct UpdateBackupPlanInput { - /// Specifies the body of a backup plan. Includes a BackupPlanName and one or more sets of Rules. + /// The body of a backup plan. Includes a BackupPlanName and one or more sets of Rules. /// This member is required. public var backupPlan: BackupClientTypes.BackupPlanInput? - /// Uniquely identifies a backup plan. + /// The ID of the backup plan. /// This member is required. public var backupPlanId: Swift.String? @@ -6803,7 +6835,7 @@ public struct UpdateBackupPlanOutput { } public struct UpdateFrameworkInput { - /// A list of the controls that make up the framework. Each control in the list has a name, input parameters, and scope. + /// The controls that make up the framework. Each control in the list has a name, input parameters, and scope. public var frameworkControls: [BackupClientTypes.FrameworkControl]? /// An optional description of the framework with a maximum 1,024 characters. public var frameworkDescription: Swift.String? @@ -6860,7 +6892,7 @@ public struct UpdateGlobalSettingsInput { } public struct UpdateRecoveryPointLifecycleInput { - /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens. + /// The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. /// This member is required. public var backupVaultName: Swift.String? /// The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define. Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold. @@ -6882,11 +6914,11 @@ public struct UpdateRecoveryPointLifecycleInput { } public struct UpdateRecoveryPointLifecycleOutput { - /// An ARN that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault. + /// An ARN that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault. public var backupVaultArn: Swift.String? /// A CalculatedLifecycle object containing DeleteAt and MoveToColdStorageAt timestamps. public var calculatedLifecycle: BackupClientTypes.CalculatedLifecycle? - /// The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define. Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold. Resource types that are able to be transitioned to cold storage are listed in the "Lifecycle to cold storage" section of the [ Feature availability by resource](https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html#features-by-resource) table. Backup ignores this expression for other resource types. + /// The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define. Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “retention” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold. Resource types that can transition to cold storage are listed in the [Feature availability by resource](https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html#features-by-resource) table. Backup ignores this expression for other resource types. public var lifecycle: BackupClientTypes.Lifecycle? /// An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. public var recoveryPointArn: Swift.String? @@ -6924,14 +6956,14 @@ public struct UpdateRegionSettingsInput { public struct UpdateReportPlanInput { /// A customer-chosen string that you can use to distinguish between otherwise identical calls to UpdateReportPlanInput. Retrying a successful request with the same idempotency token results in a success message with no action taken. public var idempotencyToken: Swift.String? - /// A structure that contains information about where to deliver your reports, specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your reports. + /// The information about where to deliver your reports, specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your reports. public var reportDeliveryChannel: BackupClientTypes.ReportDeliveryChannel? /// An optional description of the report plan with a maximum 1,024 characters. public var reportPlanDescription: Swift.String? /// The unique name of the report plan. This name is between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_). /// This member is required. public var reportPlanName: Swift.String? - /// Identifies the report template for the report. Reports are built using a report template. The report templates are: RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT If the report template is RESOURCE_COMPLIANCE_REPORT or CONTROL_COMPLIANCE_REPORT, this API resource also describes the report coverage by Amazon Web Services Regions and frameworks. + /// The report template for the report. Reports are built using a report template. The report templates are: RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT If the report template is RESOURCE_COMPLIANCE_REPORT or CONTROL_COMPLIANCE_REPORT, this API resource also describes the report coverage by Amazon Web Services Regions and frameworks. public var reportSetting: BackupClientTypes.ReportSetting? public init( @@ -7002,7 +7034,7 @@ public struct UpdateRestoreTestingPlanInput { /// Specifies the body of a restore testing plan. /// This member is required. public var restoreTestingPlan: BackupClientTypes.RestoreTestingPlanForUpdate? - /// This is the restore testing plan name you wish to update. + /// The name of the restore testing plan name. /// This member is required. public var restoreTestingPlanName: Swift.String? @@ -7017,7 +7049,7 @@ public struct UpdateRestoreTestingPlanInput { } public struct UpdateRestoreTestingPlanOutput { - /// This is the time the resource testing plan was created. + /// The time the resource testing plan was created. /// This member is required. public var creationTime: Foundation.Date? /// Unique ARN (Amazon Resource Name) of the restore testing plan. @@ -7026,7 +7058,7 @@ public struct UpdateRestoreTestingPlanOutput { /// The name cannot be changed after creation. The name consists of only alphanumeric characters and underscores. Maximum length is 50. /// This member is required. public var restoreTestingPlanName: Swift.String? - /// This is the time the update completed for the restore testing plan. + /// The time the update completed for the restore testing plan. /// This member is required. public var updateTime: Foundation.Date? @@ -7051,7 +7083,7 @@ extension BackupClientTypes { public var iamRoleArn: Swift.String? /// You can include a list of specific ARNs, such as ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."] or you can include a wildcard: ProtectedResourceArns: ["*"], but not both. public var protectedResourceArns: [Swift.String]? - /// A list of conditions that you define for resources in your restore testing plan using tags. For example, "StringEquals": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },. Condition operators are case sensitive. + /// The conditions that you define for resources in your restore testing plan using tags. public var protectedResourceConditions: BackupClientTypes.ProtectedResourceConditions? /// You can override certain restore metadata keys by including the parameter RestoreMetadataOverrides in the body of RestoreTestingSelection. Key values are not case sensitive. See the complete list of [restore testing inferred metadata](https://docs.aws.amazon.com/aws-backup/latest/devguide/restore-testing-inferred-metadata.html). public var restoreMetadataOverrides: [Swift.String: Swift.String]? @@ -7088,7 +7120,7 @@ public struct UpdateRestoreTestingSelectionInput { /// To update your restore testing selection, you can use either protected resource ARNs or conditions, but not both. That is, if your selection has ProtectedResourceArns, requesting an update with the parameter ProtectedResourceConditions will be unsuccessful. /// This member is required. public var restoreTestingSelection: BackupClientTypes.RestoreTestingSelectionForUpdate? - /// This is the required restore testing selection name of the restore testing selection you wish to update. + /// The required restore testing selection name of the restore testing selection you wish to update. /// This member is required. public var restoreTestingSelectionName: Swift.String? @@ -7105,19 +7137,19 @@ public struct UpdateRestoreTestingSelectionInput { } public struct UpdateRestoreTestingSelectionOutput { - /// This is the time the resource testing selection was updated successfully. + /// The time the resource testing selection was updated successfully. /// This member is required. public var creationTime: Foundation.Date? /// Unique string that is the name of the restore testing plan. /// This member is required. public var restoreTestingPlanArn: Swift.String? - /// This is the restore testing plan with which the updated restore testing selection is associated. + /// The restore testing plan with which the updated restore testing selection is associated. /// This member is required. public var restoreTestingPlanName: Swift.String? - /// This is the returned restore testing selection name. + /// The returned restore testing selection name. /// This member is required. public var restoreTestingSelectionName: Swift.String? - /// This is the time the update completed for the restore testing selection. + /// The time the update completed for the restore testing selection. /// This member is required. public var updateTime: Foundation.Date? @@ -9272,6 +9304,7 @@ extension DescribeBackupVaultOutput { value.maxRetentionDays = try reader["MaxRetentionDays"].readIfPresent() value.minRetentionDays = try reader["MinRetentionDays"].readIfPresent() value.numberOfRecoveryPoints = try reader["NumberOfRecoveryPoints"].readIfPresent() ?? 0 + value.vaultState = try reader["VaultState"].readIfPresent() value.vaultType = try reader["VaultType"].readIfPresent() return value } @@ -12494,6 +12527,8 @@ extension BackupClientTypes.BackupVaultListMember { var value = BackupClientTypes.BackupVaultListMember() value.backupVaultName = try reader["BackupVaultName"].readIfPresent() value.backupVaultArn = try reader["BackupVaultArn"].readIfPresent() + value.vaultType = try reader["VaultType"].readIfPresent() + value.vaultState = try reader["VaultState"].readIfPresent() value.creationDate = try reader["CreationDate"].readTimestampIfPresent(format: .epochSeconds) value.encryptionKeyArn = try reader["EncryptionKeyArn"].readIfPresent() value.creatorRequestId = try reader["CreatorRequestId"].readIfPresent() diff --git a/Sources/Services/AWSCloudWatchLogs/Sources/AWSCloudWatchLogs/CloudWatchLogsClient.swift b/Sources/Services/AWSCloudWatchLogs/Sources/AWSCloudWatchLogs/CloudWatchLogsClient.swift index 3ecffc404d6..1b79b5e6aae 100644 --- a/Sources/Services/AWSCloudWatchLogs/Sources/AWSCloudWatchLogs/CloudWatchLogsClient.swift +++ b/Sources/Services/AWSCloudWatchLogs/Sources/AWSCloudWatchLogs/CloudWatchLogsClient.swift @@ -4018,7 +4018,7 @@ extension CloudWatchLogsClient { /// * A logical destination in a different account created with [PutDestination](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestination.html), for cross-account delivery. Kinesis Data Streams and Firehose are supported as logical destinations. /// /// - /// Each account can have one account-level subscription filter policy. If you are updating an existing filter, you must specify the correct name in PolicyName. To perform a PutAccountPolicy subscription filter operation for any destination except a Lambda function, you must also have the iam:PassRole permission. + /// Each account can have one account-level subscription filter policy per Region. If you are updating an existing filter, you must specify the correct name in PolicyName. To perform a PutAccountPolicy subscription filter operation for any destination except a Lambda function, you must also have the iam:PassRole permission. /// /// - Parameter PutAccountPolicyInput : [no documentation found] /// @@ -4667,7 +4667,7 @@ extension CloudWatchLogsClient { /// Performs the `PutMetricFilter` operation on the `Logs_20140328` service. /// - /// Creates or updates a metric filter and associates it with the specified log group. With metric filters, you can configure rules to extract metric data from log events ingested through [PutLogEvents](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html). The maximum number of metric filters that can be associated with a log group is 100. When you create a metric filter, you can also optionally assign a unit and dimensions to the metric that is created. Metrics extracted from log events are charged as custom metrics. To prevent unexpected high charges, do not specify high-cardinality fields such as IPAddress or requestID as dimensions. Each different value found for a dimension is treated as a separate metric and accrues charges as a separate custom metric. CloudWatch Logs might disable a metric filter if it generates 1,000 different name/value pairs for your specified dimensions within one hour. You can also set up a billing alarm to alert you if your charges are higher than expected. For more information, see [ Creating a Billing Alarm to Monitor Your Estimated Amazon Web Services Charges](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html). + /// Creates or updates a metric filter and associates it with the specified log group. With metric filters, you can configure rules to extract metric data from log events ingested through [PutLogEvents](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html). The maximum number of metric filters that can be associated with a log group is 100. Using regular expressions to create metric filters is supported. For these filters, there is a quotas of quota of two regular expression patterns within a single filter pattern. There is also a quota of five regular expression patterns per log group. For more information about using regular expressions in metric filters, see [ Filter pattern syntax for metric filters, subscription filters, filter log events, and Live Tail](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html). When you create a metric filter, you can also optionally assign a unit and dimensions to the metric that is created. Metrics extracted from log events are charged as custom metrics. To prevent unexpected high charges, do not specify high-cardinality fields such as IPAddress or requestID as dimensions. Each different value found for a dimension is treated as a separate metric and accrues charges as a separate custom metric. CloudWatch Logs might disable a metric filter if it generates 1,000 different name/value pairs for your specified dimensions within one hour. You can also set up a billing alarm to alert you if your charges are higher than expected. For more information, see [ Creating a Billing Alarm to Monitor Your Estimated Amazon Web Services Charges](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html). /// /// - Parameter PutMetricFilterInput : [no documentation found] /// @@ -4975,7 +4975,7 @@ extension CloudWatchLogsClient { /// * An Lambda function that belongs to the same account as the subscription filter, for same-account delivery. /// /// - /// Each log group can have up to two subscription filters associated with it. If you are updating an existing filter, you must specify the correct name in filterName. To perform a PutSubscriptionFilter operation for any destination except a Lambda function, you must also have the iam:PassRole permission. + /// Each log group can have up to two subscription filters associated with it. If you are updating an existing filter, you must specify the correct name in filterName. Using regular expressions to create subscription filters is supported. For these filters, there is a quotas of quota of two regular expression patterns within a single filter pattern. There is also a quota of five regular expression patterns per log group. For more information about using regular expressions in subscription filters, see [ Filter pattern syntax for metric filters, subscription filters, filter log events, and Live Tail](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html). To perform a PutSubscriptionFilter operation for any destination except a Lambda function, you must also have the iam:PassRole permission. /// /// - Parameter PutSubscriptionFilterInput : [no documentation found] /// @@ -5056,9 +5056,9 @@ extension CloudWatchLogsClient { /// /// * Every second, a [LiveTailSessionUpdate](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_LiveTailSessionUpdate.html) object is sent. Each of these objects contains an array of the actual log events. If no new log events were ingested in the past second, the LiveTailSessionUpdate object will contain an empty array. The array of log events contained in a LiveTailSessionUpdate can include as many as 500 log events. If the number of log events matching the request exceeds 500 per second, the log events are sampled down to 500 log events to be included in each LiveTailSessionUpdate object. If your client consumes the log events slower than the server produces them, CloudWatch Logs buffers up to 10 LiveTailSessionUpdate events or 5000 log events, after which it starts dropping the oldest events. /// - /// * A [SessionStreamingException](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_SessionStreamingException.html) object is returned if an unknown error occurs on the server side. + /// * A [SessionStreamingException](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartLiveTailResponseStream.html#CWL-Type-StartLiveTailResponseStream-SessionStreamingException) object is returned if an unknown error occurs on the server side. /// - /// * A [SessionTimeoutException](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_SessionTimeoutException.html) object is returned when the session times out, after it has been kept open for three hours. + /// * A [SessionTimeoutException](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartLiveTailResponseStream.html#CWL-Type-StartLiveTailResponseStream-SessionTimeoutException) object is returned when the session times out, after it has been kept open for three hours. /// /// /// You can end a session before it times out by closing the session stream or by closing the client that is receiving the stream. The session also ends if the established connection between the client and the server breaks. For examples of using an SDK to start a Live Tail session, see [ Start a Live Tail session using an Amazon Web Services SDK](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/example_cloudwatch-logs_StartLiveTail_section.html). diff --git a/Sources/Services/AWSCloudWatchLogs/Sources/AWSCloudWatchLogs/Models.swift b/Sources/Services/AWSCloudWatchLogs/Sources/AWSCloudWatchLogs/Models.swift index 5d2218a2e40..0fe98497198 100644 --- a/Sources/Services/AWSCloudWatchLogs/Sources/AWSCloudWatchLogs/Models.swift +++ b/Sources/Services/AWSCloudWatchLogs/Sources/AWSCloudWatchLogs/Models.swift @@ -313,7 +313,7 @@ extension CloudWatchLogsClientTypes { } extension CloudWatchLogsClientTypes { - /// A tructures that contains information about one pattern token related to an anomaly. For more information about patterns and tokens, see [CreateLogAnomalyDetector](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateLogAnomalyDetector.html). + /// A structure that contains information about one pattern token related to an anomaly. For more information about patterns and tokens, see [CreateLogAnomalyDetector](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateLogAnomalyDetector.html). public struct PatternToken { /// For a dynamic token, this indicates where in the pattern that this token appears, related to other dynamic tokens. The dynamic token that appears first has a value of 1, the one that appears second is 2, and so on. public var dynamicTokenPosition: Swift.Int @@ -2878,6 +2878,70 @@ public struct DisassociateKmsKeyInput { } } +extension CloudWatchLogsClientTypes { + /// Reserved for future use. + public struct Entity { + /// Reserved for future use. + public var attributes: [Swift.String: Swift.String]? + /// Reserved for future use. + public var keyAttributes: [Swift.String: Swift.String]? + + public init( + attributes: [Swift.String: Swift.String]? = nil, + keyAttributes: [Swift.String: Swift.String]? = nil + ) + { + self.attributes = attributes + self.keyAttributes = keyAttributes + } + } + +} + +extension CloudWatchLogsClientTypes { + + public enum EntityRejectionErrorType: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { + case entitySizeTooLarge + case invalidAttributes + case invalidEntity + case invalidKeyAttribute + case invalidTypeValue + case missingRequiredFields + case unsupportedLogGroupType + case sdkUnknown(Swift.String) + + public static var allCases: [EntityRejectionErrorType] { + return [ + .entitySizeTooLarge, + .invalidAttributes, + .invalidEntity, + .invalidKeyAttribute, + .invalidTypeValue, + .missingRequiredFields, + .unsupportedLogGroupType + ] + } + + public init?(rawValue: Swift.String) { + let value = Self.allCases.first(where: { $0.rawValue == rawValue }) + self = value ?? Self.sdkUnknown(rawValue) + } + + public var rawValue: Swift.String { + switch self { + case .entitySizeTooLarge: return "EntitySizeTooLarge" + case .invalidAttributes: return "InvalidAttributes" + case .invalidEntity: return "InvalidEntity" + case .invalidKeyAttribute: return "InvalidKeyAttributes" + case .invalidTypeValue: return "InvalidTypeValue" + case .missingRequiredFields: return "MissingRequiredFields" + case .unsupportedLogGroupType: return "UnsupportedLogGroupType" + case let .sdkUnknown(s): return s + } + } + } +} + extension CloudWatchLogsClientTypes { /// Represents a matched event. public struct FilteredLogEvent { @@ -2924,9 +2988,9 @@ public struct FilterLogEventsInput { public var logGroupIdentifier: Swift.String? /// The name of the log group to search. You must include either logGroupIdentifier or logGroupName, but not both. public var logGroupName: Swift.String? - /// Filters the results to include only events from log streams that have names starting with this prefix. If you specify a value for both logStreamNamePrefix and logStreamNames, but the value for logStreamNamePrefix does not match any log stream names specified in logStreamNames, the action returns an InvalidParameterException error. + /// Filters the results to include only events from log streams that have names starting with this prefix. If you specify a value for both logStreamNamePrefix and logStreamNames, the action returns an InvalidParameterException error. public var logStreamNamePrefix: Swift.String? - /// Filters the results to only logs from the log streams in this list. If you specify a value for both logStreamNamePrefix and logStreamNames, the action returns an InvalidParameterException error. + /// Filters the results to only logs from the log streams in this list. If you specify a value for both logStreamNames and logStreamNamePrefix, the action returns an InvalidParameterException error. public var logStreamNames: [Swift.String]? /// The token for the next set of events to return. (You received this token from a previous call.) public var nextToken: Swift.String? @@ -3797,7 +3861,7 @@ public struct PutAccountPolicyInput { /// /// * FilterPattern A filter pattern for subscribing to a filtered stream of log events. /// - /// * DistributionThe method used to distribute log data to the destination. By default, log data is grouped by log stream, but the grouping can be set to Random for a more even distribution. This property is only applicable when the destination is an Kinesis Data Streams data stream. + /// * Distribution The method used to distribute log data to the destination. By default, log data is grouped by log stream, but the grouping can be set to Random for a more even distribution. This property is only applicable when the destination is an Kinesis Data Streams data stream. /// This member is required. public var policyDocument: Swift.String? /// A name for the policy. This must be unique within the account. @@ -3955,9 +4019,11 @@ public struct PutDeliveryDestinationPolicyOutput { public struct PutDeliverySourceInput { /// Defines the type of log that the source is sending. /// + /// * For Amazon Bedrock, the valid value is APPLICATION_LOGS. + /// /// * For Amazon CodeWhisperer, the valid value is EVENT_LOGS. /// - /// * For IAM Identity Centerr, the valid value is ERROR_LOGS. + /// * For IAM Identity Center, the valid value is ERROR_LOGS. /// /// * For Amazon WorkMail, the valid values are ACCESS_CONTROL_LOGS, AUTHENTICATION_LOGS, WORKMAIL_AVAILABILITY_PROVIDER_LOGS, and WORKMAIL_MAILBOX_ACCESS_LOGS. /// This member is required. @@ -4083,6 +4149,8 @@ public struct UnrecognizedClientException: ClientRuntime.ModeledError, AWSClient } public struct PutLogEventsInput { + /// Reserved for future use. + public var entity: CloudWatchLogsClientTypes.Entity? /// The log events. /// This member is required. public var logEvents: [CloudWatchLogsClientTypes.InputLogEvent]? @@ -4096,12 +4164,14 @@ public struct PutLogEventsInput { public var sequenceToken: Swift.String? public init( + entity: CloudWatchLogsClientTypes.Entity? = nil, logEvents: [CloudWatchLogsClientTypes.InputLogEvent]? = nil, logGroupName: Swift.String? = nil, logStreamName: Swift.String? = nil, sequenceToken: Swift.String? = nil ) { + self.entity = entity self.logEvents = logEvents self.logGroupName = logGroupName self.logStreamName = logStreamName @@ -4109,6 +4179,23 @@ public struct PutLogEventsInput { } } +extension CloudWatchLogsClientTypes { + /// Reserved for future use. + public struct RejectedEntityInfo { + /// Reserved for future use. + /// This member is required. + public var errorType: CloudWatchLogsClientTypes.EntityRejectionErrorType? + + public init( + errorType: CloudWatchLogsClientTypes.EntityRejectionErrorType? = nil + ) + { + self.errorType = errorType + } + } + +} + extension CloudWatchLogsClientTypes { /// Represents the rejected events. public struct RejectedLogEventsInfo { @@ -4136,15 +4223,19 @@ extension CloudWatchLogsClientTypes { public struct PutLogEventsOutput { /// The next sequence token. This field has been deprecated. The sequence token is now ignored in PutLogEvents actions. PutLogEvents actions are always accepted even if the sequence token is not valid. You can use parallel PutLogEvents actions on the same log stream and you do not need to wait for the response of a previous PutLogEvents action to obtain the nextSequenceToken value. public var nextSequenceToken: Swift.String? + /// Reserved for future use. + public var rejectedEntityInfo: CloudWatchLogsClientTypes.RejectedEntityInfo? /// The rejected events. public var rejectedLogEventsInfo: CloudWatchLogsClientTypes.RejectedLogEventsInfo? public init( nextSequenceToken: Swift.String? = nil, + rejectedEntityInfo: CloudWatchLogsClientTypes.RejectedEntityInfo? = nil, rejectedLogEventsInfo: CloudWatchLogsClientTypes.RejectedLogEventsInfo? = nil ) { self.nextSequenceToken = nextSequenceToken + self.rejectedEntityInfo = rejectedEntityInfo self.rejectedLogEventsInfo = rejectedLogEventsInfo } } @@ -5936,6 +6027,7 @@ extension PutLogEventsInput { static func write(value: PutLogEventsInput?, to writer: SmithyJSON.Writer) throws { guard let value else { return } + try writer["entity"].write(value.entity, with: CloudWatchLogsClientTypes.Entity.write(value:to:)) try writer["logEvents"].writeList(value.logEvents, memberWritingClosure: CloudWatchLogsClientTypes.InputLogEvent.write(value:to:), memberNodeInfo: "member", isFlattened: false) try writer["logGroupName"].write(value.logGroupName) try writer["logStreamName"].write(value.logStreamName) @@ -6736,6 +6828,7 @@ extension PutLogEventsOutput { let reader = responseReader var value = PutLogEventsOutput() value.nextSequenceToken = try reader["nextSequenceToken"].readIfPresent() + value.rejectedEntityInfo = try reader["rejectedEntityInfo"].readIfPresent(with: CloudWatchLogsClientTypes.RejectedEntityInfo.read(from:)) value.rejectedLogEventsInfo = try reader["rejectedLogEventsInfo"].readIfPresent(with: CloudWatchLogsClientTypes.RejectedLogEventsInfo.read(from:)) return value } @@ -8820,6 +8913,16 @@ extension CloudWatchLogsClientTypes.RejectedLogEventsInfo { } } +extension CloudWatchLogsClientTypes.RejectedEntityInfo { + + static func read(from reader: SmithyJSON.Reader) throws -> CloudWatchLogsClientTypes.RejectedEntityInfo { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = CloudWatchLogsClientTypes.RejectedEntityInfo() + value.errorType = try reader["errorType"].readIfPresent() + return value + } +} + extension SessionStreamingException { static func read(from reader: SmithyJSON.Reader) throws -> SessionStreamingException { @@ -8933,6 +9036,15 @@ extension CloudWatchLogsClientTypes.InputLogEvent { } } +extension CloudWatchLogsClientTypes.Entity { + + static func write(value: CloudWatchLogsClientTypes.Entity?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["attributes"].writeMap(value.attributes, valueWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) + try writer["keyAttributes"].writeMap(value.keyAttributes, valueWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) + } +} + extension CloudWatchLogsClientTypes.SuppressionPeriod { static func write(value: CloudWatchLogsClientTypes.SuppressionPeriod?, to writer: SmithyJSON.Writer) throws { diff --git a/Sources/Services/AWSDataZone/Sources/AWSDataZone/DataZoneClient.swift b/Sources/Services/AWSDataZone/Sources/AWSDataZone/DataZoneClient.swift index 347558664e8..76fc198824d 100644 --- a/Sources/Services/AWSDataZone/Sources/AWSDataZone/DataZoneClient.swift +++ b/Sources/Services/AWSDataZone/Sources/AWSDataZone/DataZoneClient.swift @@ -348,6 +348,161 @@ extension DataZoneClient { return try await op.execute(input: input) } + /// Performs the `AddEntityOwner` operation on the `DataZone` service. + /// + /// Adds the owner of an entity (a domain unit). + /// + /// - Parameter AddEntityOwnerInput : [no documentation found] + /// + /// - Returns: `AddEntityOwnerOutput` : [no documentation found] + /// + /// - Throws: One of the exceptions listed below __Possible Exceptions__. + /// + /// __Possible Exceptions:__ + /// - `AccessDeniedException` : You do not have sufficient access to perform this action. + /// - `ConflictException` : There is a conflict while performing this action. + /// - `InternalServerException` : The request has failed because of an unknown error, exception or failure. + /// - `ResourceNotFoundException` : The specified resource cannot be found. + /// - `ServiceQuotaExceededException` : The request has exceeded the specified service quota. + /// - `ThrottlingException` : The request was denied due to request throttling. + /// - `UnauthorizedException` : You do not have permission to perform this action. + /// - `ValidationException` : The input fails to satisfy the constraints specified by the Amazon Web Services service. + public func addEntityOwner(input: AddEntityOwnerInput) async throws -> AddEntityOwnerOutput { + let context = Smithy.ContextBuilder() + .withMethod(value: .post) + .withServiceName(value: serviceName) + .withOperation(value: "addEntityOwner") + .withIdempotencyTokenGenerator(value: config.idempotencyTokenGenerator) + .withLogger(value: config.logger) + .withPartitionID(value: config.partitionID) + .withAuthSchemes(value: config.authSchemes ?? []) + .withAuthSchemeResolver(value: config.authSchemeResolver) + .withUnsignedPayloadTrait(value: false) + .withSocketTimeout(value: config.httpClientConfiguration.socketTimeout) + .withIdentityResolver(value: config.bearerTokenIdentityResolver, schemeID: "smithy.api#httpBearerAuth") + .withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4") + .withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4a") + .withRegion(value: config.region) + .withSigningName(value: "datazone") + .withSigningRegion(value: config.signingRegion) + .build() + let builder = ClientRuntime.OrchestratorBuilder() + config.interceptorProviders.forEach { provider in + builder.interceptors.add(provider.create()) + } + config.httpInterceptorProviders.forEach { (provider: any ClientRuntime.HttpInterceptorProvider) -> Void in + let i: any ClientRuntime.HttpInterceptor = provider.create() + builder.interceptors.add(i) + } + builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) + builder.interceptors.add(ClientRuntime.URLPathMiddleware(AddEntityOwnerInput.urlPathProvider(_:))) + builder.interceptors.add(ClientRuntime.URLHostMiddleware()) + builder.interceptors.add(ClientRuntime.ContentTypeMiddleware(contentType: "application/json")) + builder.serialize(ClientRuntime.BodyMiddleware(rootNodeInfo: "", inputWritingClosure: AddEntityOwnerInput.write(value:to:))) + builder.interceptors.add(ClientRuntime.ContentLengthMiddleware()) + builder.deserialize(ClientRuntime.DeserializeMiddleware(AddEntityOwnerOutput.httpOutput(from:), AddEntityOwnerOutputError.httpError(from:))) + builder.interceptors.add(ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) + builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions)) + builder.retryErrorInfoProvider(AWSClientRuntime.AWSRetryErrorInfoProvider.errorInfo(for:)) + builder.applySigner(ClientRuntime.SignerMiddleware()) + let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useFIPS: config.useFIPS ?? false) + builder.applyEndpoint(AWSClientRuntime.EndpointResolverMiddleware(endpointResolverBlock: { [config] in try config.endpointResolver.resolve(params: $0) }, endpointParams: endpointParams)) + builder.interceptors.add(AWSClientRuntime.UserAgentMiddleware(serviceID: serviceName, version: "1.0", config: config)) + builder.selectAuthScheme(ClientRuntime.AuthSchemeMiddleware()) + builder.interceptors.add(AWSClientRuntime.AmzSdkInvocationIdMiddleware()) + builder.interceptors.add(AWSClientRuntime.AmzSdkRequestMiddleware(maxRetries: config.retryStrategyOptions.maxRetriesBase)) + var metricsAttributes = Smithy.Attributes() + metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.service, value: "DataZone") + metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "AddEntityOwner") + let op = builder.attributes(context) + .telemetry(ClientRuntime.OrchestratorTelemetry( + telemetryProvider: config.telemetryProvider, + metricsAttributes: metricsAttributes, + meterScope: serviceName, + tracerScope: serviceName + )) + .executeRequest(client) + .build() + return try await op.execute(input: input) + } + + /// Performs the `AddPolicyGrant` operation on the `DataZone` service. + /// + /// Adds a policy grant (an authorization policy) to a specified entity, including domain units, environment blueprint configurations, or environment profiles. + /// + /// - Parameter AddPolicyGrantInput : [no documentation found] + /// + /// - Returns: `AddPolicyGrantOutput` : [no documentation found] + /// + /// - Throws: One of the exceptions listed below __Possible Exceptions__. + /// + /// __Possible Exceptions:__ + /// - `AccessDeniedException` : You do not have sufficient access to perform this action. + /// - `ConflictException` : There is a conflict while performing this action. + /// - `InternalServerException` : The request has failed because of an unknown error, exception or failure. + /// - `ServiceQuotaExceededException` : The request has exceeded the specified service quota. + /// - `ThrottlingException` : The request was denied due to request throttling. + /// - `UnauthorizedException` : You do not have permission to perform this action. + /// - `ValidationException` : The input fails to satisfy the constraints specified by the Amazon Web Services service. + public func addPolicyGrant(input: AddPolicyGrantInput) async throws -> AddPolicyGrantOutput { + let context = Smithy.ContextBuilder() + .withMethod(value: .post) + .withServiceName(value: serviceName) + .withOperation(value: "addPolicyGrant") + .withIdempotencyTokenGenerator(value: config.idempotencyTokenGenerator) + .withLogger(value: config.logger) + .withPartitionID(value: config.partitionID) + .withAuthSchemes(value: config.authSchemes ?? []) + .withAuthSchemeResolver(value: config.authSchemeResolver) + .withUnsignedPayloadTrait(value: false) + .withSocketTimeout(value: config.httpClientConfiguration.socketTimeout) + .withIdentityResolver(value: config.bearerTokenIdentityResolver, schemeID: "smithy.api#httpBearerAuth") + .withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4") + .withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4a") + .withRegion(value: config.region) + .withSigningName(value: "datazone") + .withSigningRegion(value: config.signingRegion) + .build() + let builder = ClientRuntime.OrchestratorBuilder() + config.interceptorProviders.forEach { provider in + builder.interceptors.add(provider.create()) + } + config.httpInterceptorProviders.forEach { (provider: any ClientRuntime.HttpInterceptorProvider) -> Void in + let i: any ClientRuntime.HttpInterceptor = provider.create() + builder.interceptors.add(i) + } + builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) + builder.interceptors.add(ClientRuntime.URLPathMiddleware(AddPolicyGrantInput.urlPathProvider(_:))) + builder.interceptors.add(ClientRuntime.URLHostMiddleware()) + builder.interceptors.add(ClientRuntime.ContentTypeMiddleware(contentType: "application/json")) + builder.serialize(ClientRuntime.BodyMiddleware(rootNodeInfo: "", inputWritingClosure: AddPolicyGrantInput.write(value:to:))) + builder.interceptors.add(ClientRuntime.ContentLengthMiddleware()) + builder.deserialize(ClientRuntime.DeserializeMiddleware(AddPolicyGrantOutput.httpOutput(from:), AddPolicyGrantOutputError.httpError(from:))) + builder.interceptors.add(ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) + builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions)) + builder.retryErrorInfoProvider(AWSClientRuntime.AWSRetryErrorInfoProvider.errorInfo(for:)) + builder.applySigner(ClientRuntime.SignerMiddleware()) + let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useFIPS: config.useFIPS ?? false) + builder.applyEndpoint(AWSClientRuntime.EndpointResolverMiddleware(endpointResolverBlock: { [config] in try config.endpointResolver.resolve(params: $0) }, endpointParams: endpointParams)) + builder.interceptors.add(AWSClientRuntime.UserAgentMiddleware(serviceID: serviceName, version: "1.0", config: config)) + builder.selectAuthScheme(ClientRuntime.AuthSchemeMiddleware()) + builder.interceptors.add(AWSClientRuntime.AmzSdkInvocationIdMiddleware()) + builder.interceptors.add(AWSClientRuntime.AmzSdkRequestMiddleware(maxRetries: config.retryStrategyOptions.maxRetriesBase)) + var metricsAttributes = Smithy.Attributes() + metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.service, value: "DataZone") + metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "AddPolicyGrant") + let op = builder.attributes(context) + .telemetry(ClientRuntime.OrchestratorTelemetry( + telemetryProvider: config.telemetryProvider, + metricsAttributes: metricsAttributes, + meterScope: serviceName, + tracerScope: serviceName + )) + .executeRequest(client) + .build() + return try await op.execute(input: input) + } + /// Performs the `AssociateEnvironmentRole` operation on the `DataZone` service. /// /// Associates the environment role in Amazon DataZone. @@ -1187,6 +1342,83 @@ extension DataZoneClient { return try await op.execute(input: input) } + /// Performs the `CreateDomainUnit` operation on the `DataZone` service. + /// + /// Creates a domain unit in Amazon DataZone. + /// + /// - Parameter CreateDomainUnitInput : [no documentation found] + /// + /// - Returns: `CreateDomainUnitOutput` : [no documentation found] + /// + /// - Throws: One of the exceptions listed below __Possible Exceptions__. + /// + /// __Possible Exceptions:__ + /// - `AccessDeniedException` : You do not have sufficient access to perform this action. + /// - `ConflictException` : There is a conflict while performing this action. + /// - `InternalServerException` : The request has failed because of an unknown error, exception or failure. + /// - `ServiceQuotaExceededException` : The request has exceeded the specified service quota. + /// - `ThrottlingException` : The request was denied due to request throttling. + /// - `UnauthorizedException` : You do not have permission to perform this action. + /// - `ValidationException` : The input fails to satisfy the constraints specified by the Amazon Web Services service. + public func createDomainUnit(input: CreateDomainUnitInput) async throws -> CreateDomainUnitOutput { + let context = Smithy.ContextBuilder() + .withMethod(value: .post) + .withServiceName(value: serviceName) + .withOperation(value: "createDomainUnit") + .withIdempotencyTokenGenerator(value: config.idempotencyTokenGenerator) + .withLogger(value: config.logger) + .withPartitionID(value: config.partitionID) + .withAuthSchemes(value: config.authSchemes ?? []) + .withAuthSchemeResolver(value: config.authSchemeResolver) + .withUnsignedPayloadTrait(value: false) + .withSocketTimeout(value: config.httpClientConfiguration.socketTimeout) + .withIdentityResolver(value: config.bearerTokenIdentityResolver, schemeID: "smithy.api#httpBearerAuth") + .withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4") + .withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4a") + .withRegion(value: config.region) + .withSigningName(value: "datazone") + .withSigningRegion(value: config.signingRegion) + .build() + let builder = ClientRuntime.OrchestratorBuilder() + config.interceptorProviders.forEach { provider in + builder.interceptors.add(provider.create()) + } + config.httpInterceptorProviders.forEach { (provider: any ClientRuntime.HttpInterceptorProvider) -> Void in + let i: any ClientRuntime.HttpInterceptor = provider.create() + builder.interceptors.add(i) + } + builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) + builder.interceptors.add(ClientRuntime.URLPathMiddleware(CreateDomainUnitInput.urlPathProvider(_:))) + builder.interceptors.add(ClientRuntime.URLHostMiddleware()) + builder.interceptors.add(ClientRuntime.ContentTypeMiddleware(contentType: "application/json")) + builder.serialize(ClientRuntime.BodyMiddleware(rootNodeInfo: "", inputWritingClosure: CreateDomainUnitInput.write(value:to:))) + builder.interceptors.add(ClientRuntime.ContentLengthMiddleware()) + builder.deserialize(ClientRuntime.DeserializeMiddleware(CreateDomainUnitOutput.httpOutput(from:), CreateDomainUnitOutputError.httpError(from:))) + builder.interceptors.add(ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) + builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions)) + builder.retryErrorInfoProvider(AWSClientRuntime.AWSRetryErrorInfoProvider.errorInfo(for:)) + builder.applySigner(ClientRuntime.SignerMiddleware()) + let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useFIPS: config.useFIPS ?? false) + builder.applyEndpoint(AWSClientRuntime.EndpointResolverMiddleware(endpointResolverBlock: { [config] in try config.endpointResolver.resolve(params: $0) }, endpointParams: endpointParams)) + builder.interceptors.add(AWSClientRuntime.UserAgentMiddleware(serviceID: serviceName, version: "1.0", config: config)) + builder.selectAuthScheme(ClientRuntime.AuthSchemeMiddleware()) + builder.interceptors.add(AWSClientRuntime.AmzSdkInvocationIdMiddleware()) + builder.interceptors.add(AWSClientRuntime.AmzSdkRequestMiddleware(maxRetries: config.retryStrategyOptions.maxRetriesBase)) + var metricsAttributes = Smithy.Attributes() + metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.service, value: "DataZone") + metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "CreateDomainUnit") + let op = builder.attributes(context) + .telemetry(ClientRuntime.OrchestratorTelemetry( + telemetryProvider: config.telemetryProvider, + metricsAttributes: metricsAttributes, + meterScope: serviceName, + tracerScope: serviceName + )) + .executeRequest(client) + .build() + return try await op.execute(input: input) + } + /// Performs the `CreateEnvironment` operation on the `DataZone` service. /// /// Create an Amazon DataZone environment. @@ -2703,6 +2935,79 @@ extension DataZoneClient { return try await op.execute(input: input) } + /// Performs the `DeleteDomainUnit` operation on the `DataZone` service. + /// + /// Deletes a domain unit. + /// + /// - Parameter DeleteDomainUnitInput : [no documentation found] + /// + /// - Returns: `DeleteDomainUnitOutput` : [no documentation found] + /// + /// - Throws: One of the exceptions listed below __Possible Exceptions__. + /// + /// __Possible Exceptions:__ + /// - `AccessDeniedException` : You do not have sufficient access to perform this action. + /// - `ConflictException` : There is a conflict while performing this action. + /// - `InternalServerException` : The request has failed because of an unknown error, exception or failure. + /// - `ResourceNotFoundException` : The specified resource cannot be found. + /// - `ThrottlingException` : The request was denied due to request throttling. + /// - `UnauthorizedException` : You do not have permission to perform this action. + /// - `ValidationException` : The input fails to satisfy the constraints specified by the Amazon Web Services service. + public func deleteDomainUnit(input: DeleteDomainUnitInput) async throws -> DeleteDomainUnitOutput { + let context = Smithy.ContextBuilder() + .withMethod(value: .delete) + .withServiceName(value: serviceName) + .withOperation(value: "deleteDomainUnit") + .withIdempotencyTokenGenerator(value: config.idempotencyTokenGenerator) + .withLogger(value: config.logger) + .withPartitionID(value: config.partitionID) + .withAuthSchemes(value: config.authSchemes ?? []) + .withAuthSchemeResolver(value: config.authSchemeResolver) + .withUnsignedPayloadTrait(value: false) + .withSocketTimeout(value: config.httpClientConfiguration.socketTimeout) + .withIdentityResolver(value: config.bearerTokenIdentityResolver, schemeID: "smithy.api#httpBearerAuth") + .withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4") + .withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4a") + .withRegion(value: config.region) + .withSigningName(value: "datazone") + .withSigningRegion(value: config.signingRegion) + .build() + let builder = ClientRuntime.OrchestratorBuilder() + config.interceptorProviders.forEach { provider in + builder.interceptors.add(provider.create()) + } + config.httpInterceptorProviders.forEach { (provider: any ClientRuntime.HttpInterceptorProvider) -> Void in + let i: any ClientRuntime.HttpInterceptor = provider.create() + builder.interceptors.add(i) + } + builder.interceptors.add(ClientRuntime.URLPathMiddleware(DeleteDomainUnitInput.urlPathProvider(_:))) + builder.interceptors.add(ClientRuntime.URLHostMiddleware()) + builder.deserialize(ClientRuntime.DeserializeMiddleware(DeleteDomainUnitOutput.httpOutput(from:), DeleteDomainUnitOutputError.httpError(from:))) + builder.interceptors.add(ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) + builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions)) + builder.retryErrorInfoProvider(AWSClientRuntime.AWSRetryErrorInfoProvider.errorInfo(for:)) + builder.applySigner(ClientRuntime.SignerMiddleware()) + let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useFIPS: config.useFIPS ?? false) + builder.applyEndpoint(AWSClientRuntime.EndpointResolverMiddleware(endpointResolverBlock: { [config] in try config.endpointResolver.resolve(params: $0) }, endpointParams: endpointParams)) + builder.interceptors.add(AWSClientRuntime.UserAgentMiddleware(serviceID: serviceName, version: "1.0", config: config)) + builder.selectAuthScheme(ClientRuntime.AuthSchemeMiddleware()) + builder.interceptors.add(AWSClientRuntime.AmzSdkInvocationIdMiddleware()) + builder.interceptors.add(AWSClientRuntime.AmzSdkRequestMiddleware(maxRetries: config.retryStrategyOptions.maxRetriesBase)) + var metricsAttributes = Smithy.Attributes() + metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.service, value: "DataZone") + metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "DeleteDomainUnit") + let op = builder.attributes(context) + .telemetry(ClientRuntime.OrchestratorTelemetry( + telemetryProvider: config.telemetryProvider, + metricsAttributes: metricsAttributes, + meterScope: serviceName, + tracerScope: serviceName + )) + .executeRequest(client) + .build() + return try await op.execute(input: input) + } + /// Performs the `DeleteEnvironment` operation on the `DataZone` service. /// /// Deletes an environment in Amazon DataZone. @@ -4310,13 +4615,13 @@ extension DataZoneClient { return try await op.execute(input: input) } - /// Performs the `GetEnvironment` operation on the `DataZone` service. + /// Performs the `GetDomainUnit` operation on the `DataZone` service. /// - /// Gets an Amazon DataZone environment. + /// Gets the details of the specified domain unit. /// - /// - Parameter GetEnvironmentInput : [no documentation found] + /// - Parameter GetDomainUnitInput : [no documentation found] /// - /// - Returns: `GetEnvironmentOutput` : [no documentation found] + /// - Returns: `GetDomainUnitOutput` : [no documentation found] /// /// - Throws: One of the exceptions listed below __Possible Exceptions__. /// @@ -4327,11 +4632,11 @@ extension DataZoneClient { /// - `ThrottlingException` : The request was denied due to request throttling. /// - `UnauthorizedException` : You do not have permission to perform this action. /// - `ValidationException` : The input fails to satisfy the constraints specified by the Amazon Web Services service. - public func getEnvironment(input: GetEnvironmentInput) async throws -> GetEnvironmentOutput { + public func getDomainUnit(input: GetDomainUnitInput) async throws -> GetDomainUnitOutput { let context = Smithy.ContextBuilder() .withMethod(value: .get) .withServiceName(value: serviceName) - .withOperation(value: "getEnvironment") + .withOperation(value: "getDomainUnit") .withIdempotencyTokenGenerator(value: config.idempotencyTokenGenerator) .withLogger(value: config.logger) .withPartitionID(value: config.partitionID) @@ -4346,30 +4651,30 @@ extension DataZoneClient { .withSigningName(value: "datazone") .withSigningRegion(value: config.signingRegion) .build() - let builder = ClientRuntime.OrchestratorBuilder() + let builder = ClientRuntime.OrchestratorBuilder() config.interceptorProviders.forEach { provider in builder.interceptors.add(provider.create()) } config.httpInterceptorProviders.forEach { (provider: any ClientRuntime.HttpInterceptorProvider) -> Void in - let i: any ClientRuntime.HttpInterceptor = provider.create() + let i: any ClientRuntime.HttpInterceptor = provider.create() builder.interceptors.add(i) } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(GetEnvironmentInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(GetEnvironmentOutput.httpOutput(from:), GetEnvironmentOutputError.httpError(from:))) - builder.interceptors.add(ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) + builder.interceptors.add(ClientRuntime.URLPathMiddleware(GetDomainUnitInput.urlPathProvider(_:))) + builder.interceptors.add(ClientRuntime.URLHostMiddleware()) + builder.deserialize(ClientRuntime.DeserializeMiddleware(GetDomainUnitOutput.httpOutput(from:), GetDomainUnitOutputError.httpError(from:))) + builder.interceptors.add(ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions)) builder.retryErrorInfoProvider(AWSClientRuntime.AWSRetryErrorInfoProvider.errorInfo(for:)) - builder.applySigner(ClientRuntime.SignerMiddleware()) + builder.applySigner(ClientRuntime.SignerMiddleware()) let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useFIPS: config.useFIPS ?? false) - builder.applyEndpoint(AWSClientRuntime.EndpointResolverMiddleware(endpointResolverBlock: { [config] in try config.endpointResolver.resolve(params: $0) }, endpointParams: endpointParams)) - builder.interceptors.add(AWSClientRuntime.UserAgentMiddleware(serviceID: serviceName, version: "1.0", config: config)) - builder.selectAuthScheme(ClientRuntime.AuthSchemeMiddleware()) - builder.interceptors.add(AWSClientRuntime.AmzSdkInvocationIdMiddleware()) - builder.interceptors.add(AWSClientRuntime.AmzSdkRequestMiddleware(maxRetries: config.retryStrategyOptions.maxRetriesBase)) + builder.applyEndpoint(AWSClientRuntime.EndpointResolverMiddleware(endpointResolverBlock: { [config] in try config.endpointResolver.resolve(params: $0) }, endpointParams: endpointParams)) + builder.interceptors.add(AWSClientRuntime.UserAgentMiddleware(serviceID: serviceName, version: "1.0", config: config)) + builder.selectAuthScheme(ClientRuntime.AuthSchemeMiddleware()) + builder.interceptors.add(AWSClientRuntime.AmzSdkInvocationIdMiddleware()) + builder.interceptors.add(AWSClientRuntime.AmzSdkRequestMiddleware(maxRetries: config.retryStrategyOptions.maxRetriesBase)) var metricsAttributes = Smithy.Attributes() metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.service, value: "DataZone") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "GetEnvironment") + metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "GetDomainUnit") let op = builder.attributes(context) .telemetry(ClientRuntime.OrchestratorTelemetry( telemetryProvider: config.telemetryProvider, @@ -4382,13 +4687,13 @@ extension DataZoneClient { return try await op.execute(input: input) } - /// Performs the `GetEnvironmentAction` operation on the `DataZone` service. + /// Performs the `GetEnvironment` operation on the `DataZone` service. /// - /// Gets the specified environment action. + /// Gets an Amazon DataZone environment. /// - /// - Parameter GetEnvironmentActionInput : [no documentation found] + /// - Parameter GetEnvironmentInput : [no documentation found] /// - /// - Returns: `GetEnvironmentActionOutput` : [no documentation found] + /// - Returns: `GetEnvironmentOutput` : [no documentation found] /// /// - Throws: One of the exceptions listed below __Possible Exceptions__. /// @@ -4399,11 +4704,11 @@ extension DataZoneClient { /// - `ThrottlingException` : The request was denied due to request throttling. /// - `UnauthorizedException` : You do not have permission to perform this action. /// - `ValidationException` : The input fails to satisfy the constraints specified by the Amazon Web Services service. - public func getEnvironmentAction(input: GetEnvironmentActionInput) async throws -> GetEnvironmentActionOutput { + public func getEnvironment(input: GetEnvironmentInput) async throws -> GetEnvironmentOutput { let context = Smithy.ContextBuilder() .withMethod(value: .get) .withServiceName(value: serviceName) - .withOperation(value: "getEnvironmentAction") + .withOperation(value: "getEnvironment") .withIdempotencyTokenGenerator(value: config.idempotencyTokenGenerator) .withLogger(value: config.logger) .withPartitionID(value: config.partitionID) @@ -4418,18 +4723,90 @@ extension DataZoneClient { .withSigningName(value: "datazone") .withSigningRegion(value: config.signingRegion) .build() - let builder = ClientRuntime.OrchestratorBuilder() + let builder = ClientRuntime.OrchestratorBuilder() config.interceptorProviders.forEach { provider in builder.interceptors.add(provider.create()) } config.httpInterceptorProviders.forEach { (provider: any ClientRuntime.HttpInterceptorProvider) -> Void in - let i: any ClientRuntime.HttpInterceptor = provider.create() + let i: any ClientRuntime.HttpInterceptor = provider.create() builder.interceptors.add(i) } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(GetEnvironmentActionInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(GetEnvironmentActionOutput.httpOutput(from:), GetEnvironmentActionOutputError.httpError(from:))) - builder.interceptors.add(ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) + builder.interceptors.add(ClientRuntime.URLPathMiddleware(GetEnvironmentInput.urlPathProvider(_:))) + builder.interceptors.add(ClientRuntime.URLHostMiddleware()) + builder.deserialize(ClientRuntime.DeserializeMiddleware(GetEnvironmentOutput.httpOutput(from:), GetEnvironmentOutputError.httpError(from:))) + builder.interceptors.add(ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) + builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions)) + builder.retryErrorInfoProvider(AWSClientRuntime.AWSRetryErrorInfoProvider.errorInfo(for:)) + builder.applySigner(ClientRuntime.SignerMiddleware()) + let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useFIPS: config.useFIPS ?? false) + builder.applyEndpoint(AWSClientRuntime.EndpointResolverMiddleware(endpointResolverBlock: { [config] in try config.endpointResolver.resolve(params: $0) }, endpointParams: endpointParams)) + builder.interceptors.add(AWSClientRuntime.UserAgentMiddleware(serviceID: serviceName, version: "1.0", config: config)) + builder.selectAuthScheme(ClientRuntime.AuthSchemeMiddleware()) + builder.interceptors.add(AWSClientRuntime.AmzSdkInvocationIdMiddleware()) + builder.interceptors.add(AWSClientRuntime.AmzSdkRequestMiddleware(maxRetries: config.retryStrategyOptions.maxRetriesBase)) + var metricsAttributes = Smithy.Attributes() + metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.service, value: "DataZone") + metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "GetEnvironment") + let op = builder.attributes(context) + .telemetry(ClientRuntime.OrchestratorTelemetry( + telemetryProvider: config.telemetryProvider, + metricsAttributes: metricsAttributes, + meterScope: serviceName, + tracerScope: serviceName + )) + .executeRequest(client) + .build() + return try await op.execute(input: input) + } + + /// Performs the `GetEnvironmentAction` operation on the `DataZone` service. + /// + /// Gets the specified environment action. + /// + /// - Parameter GetEnvironmentActionInput : [no documentation found] + /// + /// - Returns: `GetEnvironmentActionOutput` : [no documentation found] + /// + /// - Throws: One of the exceptions listed below __Possible Exceptions__. + /// + /// __Possible Exceptions:__ + /// - `AccessDeniedException` : You do not have sufficient access to perform this action. + /// - `InternalServerException` : The request has failed because of an unknown error, exception or failure. + /// - `ResourceNotFoundException` : The specified resource cannot be found. + /// - `ThrottlingException` : The request was denied due to request throttling. + /// - `UnauthorizedException` : You do not have permission to perform this action. + /// - `ValidationException` : The input fails to satisfy the constraints specified by the Amazon Web Services service. + public func getEnvironmentAction(input: GetEnvironmentActionInput) async throws -> GetEnvironmentActionOutput { + let context = Smithy.ContextBuilder() + .withMethod(value: .get) + .withServiceName(value: serviceName) + .withOperation(value: "getEnvironmentAction") + .withIdempotencyTokenGenerator(value: config.idempotencyTokenGenerator) + .withLogger(value: config.logger) + .withPartitionID(value: config.partitionID) + .withAuthSchemes(value: config.authSchemes ?? []) + .withAuthSchemeResolver(value: config.authSchemeResolver) + .withUnsignedPayloadTrait(value: false) + .withSocketTimeout(value: config.httpClientConfiguration.socketTimeout) + .withIdentityResolver(value: config.bearerTokenIdentityResolver, schemeID: "smithy.api#httpBearerAuth") + .withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4") + .withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4a") + .withRegion(value: config.region) + .withSigningName(value: "datazone") + .withSigningRegion(value: config.signingRegion) + .build() + let builder = ClientRuntime.OrchestratorBuilder() + config.interceptorProviders.forEach { provider in + builder.interceptors.add(provider.create()) + } + config.httpInterceptorProviders.forEach { (provider: any ClientRuntime.HttpInterceptorProvider) -> Void in + let i: any ClientRuntime.HttpInterceptor = provider.create() + builder.interceptors.add(i) + } + builder.interceptors.add(ClientRuntime.URLPathMiddleware(GetEnvironmentActionInput.urlPathProvider(_:))) + builder.interceptors.add(ClientRuntime.URLHostMiddleware()) + builder.deserialize(ClientRuntime.DeserializeMiddleware(GetEnvironmentActionOutput.httpOutput(from:), GetEnvironmentActionOutputError.httpError(from:))) + builder.interceptors.add(ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions)) builder.retryErrorInfoProvider(AWSClientRuntime.AWSRetryErrorInfoProvider.errorInfo(for:)) builder.applySigner(ClientRuntime.SignerMiddleware()) @@ -6272,6 +6649,78 @@ extension DataZoneClient { return try await op.execute(input: input) } + /// Performs the `ListDomainUnitsForParent` operation on the `DataZone` service. + /// + /// Lists child domain units for the specified parent domain unit. + /// + /// - Parameter ListDomainUnitsForParentInput : [no documentation found] + /// + /// - Returns: `ListDomainUnitsForParentOutput` : [no documentation found] + /// + /// - Throws: One of the exceptions listed below __Possible Exceptions__. + /// + /// __Possible Exceptions:__ + /// - `AccessDeniedException` : You do not have sufficient access to perform this action. + /// - `InternalServerException` : The request has failed because of an unknown error, exception or failure. + /// - `ThrottlingException` : The request was denied due to request throttling. + /// - `UnauthorizedException` : You do not have permission to perform this action. + /// - `ValidationException` : The input fails to satisfy the constraints specified by the Amazon Web Services service. + public func listDomainUnitsForParent(input: ListDomainUnitsForParentInput) async throws -> ListDomainUnitsForParentOutput { + let context = Smithy.ContextBuilder() + .withMethod(value: .get) + .withServiceName(value: serviceName) + .withOperation(value: "listDomainUnitsForParent") + .withIdempotencyTokenGenerator(value: config.idempotencyTokenGenerator) + .withLogger(value: config.logger) + .withPartitionID(value: config.partitionID) + .withAuthSchemes(value: config.authSchemes ?? []) + .withAuthSchemeResolver(value: config.authSchemeResolver) + .withUnsignedPayloadTrait(value: false) + .withSocketTimeout(value: config.httpClientConfiguration.socketTimeout) + .withIdentityResolver(value: config.bearerTokenIdentityResolver, schemeID: "smithy.api#httpBearerAuth") + .withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4") + .withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4a") + .withRegion(value: config.region) + .withSigningName(value: "datazone") + .withSigningRegion(value: config.signingRegion) + .build() + let builder = ClientRuntime.OrchestratorBuilder() + config.interceptorProviders.forEach { provider in + builder.interceptors.add(provider.create()) + } + config.httpInterceptorProviders.forEach { (provider: any ClientRuntime.HttpInterceptorProvider) -> Void in + let i: any ClientRuntime.HttpInterceptor = provider.create() + builder.interceptors.add(i) + } + builder.interceptors.add(ClientRuntime.URLPathMiddleware(ListDomainUnitsForParentInput.urlPathProvider(_:))) + builder.interceptors.add(ClientRuntime.URLHostMiddleware()) + builder.serialize(ClientRuntime.QueryItemMiddleware(ListDomainUnitsForParentInput.queryItemProvider(_:))) + builder.deserialize(ClientRuntime.DeserializeMiddleware(ListDomainUnitsForParentOutput.httpOutput(from:), ListDomainUnitsForParentOutputError.httpError(from:))) + builder.interceptors.add(ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) + builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions)) + builder.retryErrorInfoProvider(AWSClientRuntime.AWSRetryErrorInfoProvider.errorInfo(for:)) + builder.applySigner(ClientRuntime.SignerMiddleware()) + let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useFIPS: config.useFIPS ?? false) + builder.applyEndpoint(AWSClientRuntime.EndpointResolverMiddleware(endpointResolverBlock: { [config] in try config.endpointResolver.resolve(params: $0) }, endpointParams: endpointParams)) + builder.interceptors.add(AWSClientRuntime.UserAgentMiddleware(serviceID: serviceName, version: "1.0", config: config)) + builder.selectAuthScheme(ClientRuntime.AuthSchemeMiddleware()) + builder.interceptors.add(AWSClientRuntime.AmzSdkInvocationIdMiddleware()) + builder.interceptors.add(AWSClientRuntime.AmzSdkRequestMiddleware(maxRetries: config.retryStrategyOptions.maxRetriesBase)) + var metricsAttributes = Smithy.Attributes() + metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.service, value: "DataZone") + metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "ListDomainUnitsForParent") + let op = builder.attributes(context) + .telemetry(ClientRuntime.OrchestratorTelemetry( + telemetryProvider: config.telemetryProvider, + metricsAttributes: metricsAttributes, + meterScope: serviceName, + tracerScope: serviceName + )) + .executeRequest(client) + .build() + return try await op.execute(input: input) + } + /// Performs the `ListDomains` operation on the `DataZone` service. /// /// Lists Amazon DataZone domains. @@ -6347,6 +6796,78 @@ extension DataZoneClient { return try await op.execute(input: input) } + /// Performs the `ListEntityOwners` operation on the `DataZone` service. + /// + /// Lists the entity (domain units) owners. + /// + /// - Parameter ListEntityOwnersInput : [no documentation found] + /// + /// - Returns: `ListEntityOwnersOutput` : [no documentation found] + /// + /// - Throws: One of the exceptions listed below __Possible Exceptions__. + /// + /// __Possible Exceptions:__ + /// - `AccessDeniedException` : You do not have sufficient access to perform this action. + /// - `InternalServerException` : The request has failed because of an unknown error, exception or failure. + /// - `ThrottlingException` : The request was denied due to request throttling. + /// - `UnauthorizedException` : You do not have permission to perform this action. + /// - `ValidationException` : The input fails to satisfy the constraints specified by the Amazon Web Services service. + public func listEntityOwners(input: ListEntityOwnersInput) async throws -> ListEntityOwnersOutput { + let context = Smithy.ContextBuilder() + .withMethod(value: .get) + .withServiceName(value: serviceName) + .withOperation(value: "listEntityOwners") + .withIdempotencyTokenGenerator(value: config.idempotencyTokenGenerator) + .withLogger(value: config.logger) + .withPartitionID(value: config.partitionID) + .withAuthSchemes(value: config.authSchemes ?? []) + .withAuthSchemeResolver(value: config.authSchemeResolver) + .withUnsignedPayloadTrait(value: false) + .withSocketTimeout(value: config.httpClientConfiguration.socketTimeout) + .withIdentityResolver(value: config.bearerTokenIdentityResolver, schemeID: "smithy.api#httpBearerAuth") + .withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4") + .withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4a") + .withRegion(value: config.region) + .withSigningName(value: "datazone") + .withSigningRegion(value: config.signingRegion) + .build() + let builder = ClientRuntime.OrchestratorBuilder() + config.interceptorProviders.forEach { provider in + builder.interceptors.add(provider.create()) + } + config.httpInterceptorProviders.forEach { (provider: any ClientRuntime.HttpInterceptorProvider) -> Void in + let i: any ClientRuntime.HttpInterceptor = provider.create() + builder.interceptors.add(i) + } + builder.interceptors.add(ClientRuntime.URLPathMiddleware(ListEntityOwnersInput.urlPathProvider(_:))) + builder.interceptors.add(ClientRuntime.URLHostMiddleware()) + builder.serialize(ClientRuntime.QueryItemMiddleware(ListEntityOwnersInput.queryItemProvider(_:))) + builder.deserialize(ClientRuntime.DeserializeMiddleware(ListEntityOwnersOutput.httpOutput(from:), ListEntityOwnersOutputError.httpError(from:))) + builder.interceptors.add(ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) + builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions)) + builder.retryErrorInfoProvider(AWSClientRuntime.AWSRetryErrorInfoProvider.errorInfo(for:)) + builder.applySigner(ClientRuntime.SignerMiddleware()) + let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useFIPS: config.useFIPS ?? false) + builder.applyEndpoint(AWSClientRuntime.EndpointResolverMiddleware(endpointResolverBlock: { [config] in try config.endpointResolver.resolve(params: $0) }, endpointParams: endpointParams)) + builder.interceptors.add(AWSClientRuntime.UserAgentMiddleware(serviceID: serviceName, version: "1.0", config: config)) + builder.selectAuthScheme(ClientRuntime.AuthSchemeMiddleware()) + builder.interceptors.add(AWSClientRuntime.AmzSdkInvocationIdMiddleware()) + builder.interceptors.add(AWSClientRuntime.AmzSdkRequestMiddleware(maxRetries: config.retryStrategyOptions.maxRetriesBase)) + var metricsAttributes = Smithy.Attributes() + metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.service, value: "DataZone") + metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "ListEntityOwners") + let op = builder.attributes(context) + .telemetry(ClientRuntime.OrchestratorTelemetry( + telemetryProvider: config.telemetryProvider, + metricsAttributes: metricsAttributes, + meterScope: serviceName, + tracerScope: serviceName + )) + .executeRequest(client) + .build() + return try await op.execute(input: input) + } + /// Performs the `ListEnvironmentActions` operation on the `DataZone` service. /// /// Lists existing environment actions. @@ -6928,6 +7449,78 @@ extension DataZoneClient { return try await op.execute(input: input) } + /// Performs the `ListPolicyGrants` operation on the `DataZone` service. + /// + /// Lists policy grants. + /// + /// - Parameter ListPolicyGrantsInput : [no documentation found] + /// + /// - Returns: `ListPolicyGrantsOutput` : [no documentation found] + /// + /// - Throws: One of the exceptions listed below __Possible Exceptions__. + /// + /// __Possible Exceptions:__ + /// - `AccessDeniedException` : You do not have sufficient access to perform this action. + /// - `InternalServerException` : The request has failed because of an unknown error, exception or failure. + /// - `ThrottlingException` : The request was denied due to request throttling. + /// - `UnauthorizedException` : You do not have permission to perform this action. + /// - `ValidationException` : The input fails to satisfy the constraints specified by the Amazon Web Services service. + public func listPolicyGrants(input: ListPolicyGrantsInput) async throws -> ListPolicyGrantsOutput { + let context = Smithy.ContextBuilder() + .withMethod(value: .get) + .withServiceName(value: serviceName) + .withOperation(value: "listPolicyGrants") + .withIdempotencyTokenGenerator(value: config.idempotencyTokenGenerator) + .withLogger(value: config.logger) + .withPartitionID(value: config.partitionID) + .withAuthSchemes(value: config.authSchemes ?? []) + .withAuthSchemeResolver(value: config.authSchemeResolver) + .withUnsignedPayloadTrait(value: false) + .withSocketTimeout(value: config.httpClientConfiguration.socketTimeout) + .withIdentityResolver(value: config.bearerTokenIdentityResolver, schemeID: "smithy.api#httpBearerAuth") + .withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4") + .withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4a") + .withRegion(value: config.region) + .withSigningName(value: "datazone") + .withSigningRegion(value: config.signingRegion) + .build() + let builder = ClientRuntime.OrchestratorBuilder() + config.interceptorProviders.forEach { provider in + builder.interceptors.add(provider.create()) + } + config.httpInterceptorProviders.forEach { (provider: any ClientRuntime.HttpInterceptorProvider) -> Void in + let i: any ClientRuntime.HttpInterceptor = provider.create() + builder.interceptors.add(i) + } + builder.interceptors.add(ClientRuntime.URLPathMiddleware(ListPolicyGrantsInput.urlPathProvider(_:))) + builder.interceptors.add(ClientRuntime.URLHostMiddleware()) + builder.serialize(ClientRuntime.QueryItemMiddleware(ListPolicyGrantsInput.queryItemProvider(_:))) + builder.deserialize(ClientRuntime.DeserializeMiddleware(ListPolicyGrantsOutput.httpOutput(from:), ListPolicyGrantsOutputError.httpError(from:))) + builder.interceptors.add(ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) + builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions)) + builder.retryErrorInfoProvider(AWSClientRuntime.AWSRetryErrorInfoProvider.errorInfo(for:)) + builder.applySigner(ClientRuntime.SignerMiddleware()) + let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useFIPS: config.useFIPS ?? false) + builder.applyEndpoint(AWSClientRuntime.EndpointResolverMiddleware(endpointResolverBlock: { [config] in try config.endpointResolver.resolve(params: $0) }, endpointParams: endpointParams)) + builder.interceptors.add(AWSClientRuntime.UserAgentMiddleware(serviceID: serviceName, version: "1.0", config: config)) + builder.selectAuthScheme(ClientRuntime.AuthSchemeMiddleware()) + builder.interceptors.add(AWSClientRuntime.AmzSdkInvocationIdMiddleware()) + builder.interceptors.add(AWSClientRuntime.AmzSdkRequestMiddleware(maxRetries: config.retryStrategyOptions.maxRetriesBase)) + var metricsAttributes = Smithy.Attributes() + metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.service, value: "DataZone") + metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "ListPolicyGrants") + let op = builder.attributes(context) + .telemetry(ClientRuntime.OrchestratorTelemetry( + telemetryProvider: config.telemetryProvider, + metricsAttributes: metricsAttributes, + meterScope: serviceName, + tracerScope: serviceName + )) + .executeRequest(client) + .build() + return try await op.execute(input: input) + } + /// Performs the `ListProjectMemberships` operation on the `DataZone` service. /// /// Lists all members of the specified project. @@ -7897,6 +8490,157 @@ extension DataZoneClient { return try await op.execute(input: input) } + /// Performs the `RemoveEntityOwner` operation on the `DataZone` service. + /// + /// Removes an owner from an entity. + /// + /// - Parameter RemoveEntityOwnerInput : [no documentation found] + /// + /// - Returns: `RemoveEntityOwnerOutput` : [no documentation found] + /// + /// - Throws: One of the exceptions listed below __Possible Exceptions__. + /// + /// __Possible Exceptions:__ + /// - `AccessDeniedException` : You do not have sufficient access to perform this action. + /// - `InternalServerException` : The request has failed because of an unknown error, exception or failure. + /// - `ResourceNotFoundException` : The specified resource cannot be found. + /// - `ThrottlingException` : The request was denied due to request throttling. + /// - `UnauthorizedException` : You do not have permission to perform this action. + /// - `ValidationException` : The input fails to satisfy the constraints specified by the Amazon Web Services service. + public func removeEntityOwner(input: RemoveEntityOwnerInput) async throws -> RemoveEntityOwnerOutput { + let context = Smithy.ContextBuilder() + .withMethod(value: .post) + .withServiceName(value: serviceName) + .withOperation(value: "removeEntityOwner") + .withIdempotencyTokenGenerator(value: config.idempotencyTokenGenerator) + .withLogger(value: config.logger) + .withPartitionID(value: config.partitionID) + .withAuthSchemes(value: config.authSchemes ?? []) + .withAuthSchemeResolver(value: config.authSchemeResolver) + .withUnsignedPayloadTrait(value: false) + .withSocketTimeout(value: config.httpClientConfiguration.socketTimeout) + .withIdentityResolver(value: config.bearerTokenIdentityResolver, schemeID: "smithy.api#httpBearerAuth") + .withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4") + .withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4a") + .withRegion(value: config.region) + .withSigningName(value: "datazone") + .withSigningRegion(value: config.signingRegion) + .build() + let builder = ClientRuntime.OrchestratorBuilder() + config.interceptorProviders.forEach { provider in + builder.interceptors.add(provider.create()) + } + config.httpInterceptorProviders.forEach { (provider: any ClientRuntime.HttpInterceptorProvider) -> Void in + let i: any ClientRuntime.HttpInterceptor = provider.create() + builder.interceptors.add(i) + } + builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) + builder.interceptors.add(ClientRuntime.URLPathMiddleware(RemoveEntityOwnerInput.urlPathProvider(_:))) + builder.interceptors.add(ClientRuntime.URLHostMiddleware()) + builder.interceptors.add(ClientRuntime.ContentTypeMiddleware(contentType: "application/json")) + builder.serialize(ClientRuntime.BodyMiddleware(rootNodeInfo: "", inputWritingClosure: RemoveEntityOwnerInput.write(value:to:))) + builder.interceptors.add(ClientRuntime.ContentLengthMiddleware()) + builder.deserialize(ClientRuntime.DeserializeMiddleware(RemoveEntityOwnerOutput.httpOutput(from:), RemoveEntityOwnerOutputError.httpError(from:))) + builder.interceptors.add(ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) + builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions)) + builder.retryErrorInfoProvider(AWSClientRuntime.AWSRetryErrorInfoProvider.errorInfo(for:)) + builder.applySigner(ClientRuntime.SignerMiddleware()) + let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useFIPS: config.useFIPS ?? false) + builder.applyEndpoint(AWSClientRuntime.EndpointResolverMiddleware(endpointResolverBlock: { [config] in try config.endpointResolver.resolve(params: $0) }, endpointParams: endpointParams)) + builder.interceptors.add(AWSClientRuntime.UserAgentMiddleware(serviceID: serviceName, version: "1.0", config: config)) + builder.selectAuthScheme(ClientRuntime.AuthSchemeMiddleware()) + builder.interceptors.add(AWSClientRuntime.AmzSdkInvocationIdMiddleware()) + builder.interceptors.add(AWSClientRuntime.AmzSdkRequestMiddleware(maxRetries: config.retryStrategyOptions.maxRetriesBase)) + var metricsAttributes = Smithy.Attributes() + metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.service, value: "DataZone") + metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "RemoveEntityOwner") + let op = builder.attributes(context) + .telemetry(ClientRuntime.OrchestratorTelemetry( + telemetryProvider: config.telemetryProvider, + metricsAttributes: metricsAttributes, + meterScope: serviceName, + tracerScope: serviceName + )) + .executeRequest(client) + .build() + return try await op.execute(input: input) + } + + /// Performs the `RemovePolicyGrant` operation on the `DataZone` service. + /// + /// Removes a policy grant. + /// + /// - Parameter RemovePolicyGrantInput : [no documentation found] + /// + /// - Returns: `RemovePolicyGrantOutput` : [no documentation found] + /// + /// - Throws: One of the exceptions listed below __Possible Exceptions__. + /// + /// __Possible Exceptions:__ + /// - `AccessDeniedException` : You do not have sufficient access to perform this action. + /// - `InternalServerException` : The request has failed because of an unknown error, exception or failure. + /// - `ThrottlingException` : The request was denied due to request throttling. + /// - `UnauthorizedException` : You do not have permission to perform this action. + /// - `ValidationException` : The input fails to satisfy the constraints specified by the Amazon Web Services service. + public func removePolicyGrant(input: RemovePolicyGrantInput) async throws -> RemovePolicyGrantOutput { + let context = Smithy.ContextBuilder() + .withMethod(value: .post) + .withServiceName(value: serviceName) + .withOperation(value: "removePolicyGrant") + .withIdempotencyTokenGenerator(value: config.idempotencyTokenGenerator) + .withLogger(value: config.logger) + .withPartitionID(value: config.partitionID) + .withAuthSchemes(value: config.authSchemes ?? []) + .withAuthSchemeResolver(value: config.authSchemeResolver) + .withUnsignedPayloadTrait(value: false) + .withSocketTimeout(value: config.httpClientConfiguration.socketTimeout) + .withIdentityResolver(value: config.bearerTokenIdentityResolver, schemeID: "smithy.api#httpBearerAuth") + .withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4") + .withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4a") + .withRegion(value: config.region) + .withSigningName(value: "datazone") + .withSigningRegion(value: config.signingRegion) + .build() + let builder = ClientRuntime.OrchestratorBuilder() + config.interceptorProviders.forEach { provider in + builder.interceptors.add(provider.create()) + } + config.httpInterceptorProviders.forEach { (provider: any ClientRuntime.HttpInterceptorProvider) -> Void in + let i: any ClientRuntime.HttpInterceptor = provider.create() + builder.interceptors.add(i) + } + builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) + builder.interceptors.add(ClientRuntime.URLPathMiddleware(RemovePolicyGrantInput.urlPathProvider(_:))) + builder.interceptors.add(ClientRuntime.URLHostMiddleware()) + builder.interceptors.add(ClientRuntime.ContentTypeMiddleware(contentType: "application/json")) + builder.serialize(ClientRuntime.BodyMiddleware(rootNodeInfo: "", inputWritingClosure: RemovePolicyGrantInput.write(value:to:))) + builder.interceptors.add(ClientRuntime.ContentLengthMiddleware()) + builder.deserialize(ClientRuntime.DeserializeMiddleware(RemovePolicyGrantOutput.httpOutput(from:), RemovePolicyGrantOutputError.httpError(from:))) + builder.interceptors.add(ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) + builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions)) + builder.retryErrorInfoProvider(AWSClientRuntime.AWSRetryErrorInfoProvider.errorInfo(for:)) + builder.applySigner(ClientRuntime.SignerMiddleware()) + let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useFIPS: config.useFIPS ?? false) + builder.applyEndpoint(AWSClientRuntime.EndpointResolverMiddleware(endpointResolverBlock: { [config] in try config.endpointResolver.resolve(params: $0) }, endpointParams: endpointParams)) + builder.interceptors.add(AWSClientRuntime.UserAgentMiddleware(serviceID: serviceName, version: "1.0", config: config)) + builder.selectAuthScheme(ClientRuntime.AuthSchemeMiddleware()) + builder.interceptors.add(AWSClientRuntime.AmzSdkInvocationIdMiddleware()) + builder.interceptors.add(AWSClientRuntime.AmzSdkRequestMiddleware(maxRetries: config.retryStrategyOptions.maxRetriesBase)) + var metricsAttributes = Smithy.Attributes() + metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.service, value: "DataZone") + metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "RemovePolicyGrant") + let op = builder.attributes(context) + .telemetry(ClientRuntime.OrchestratorTelemetry( + telemetryProvider: config.telemetryProvider, + metricsAttributes: metricsAttributes, + meterScope: serviceName, + tracerScope: serviceName + )) + .executeRequest(client) + .build() + return try await op.execute(input: input) + } + /// Performs the `RevokeSubscription` operation on the `DataZone` service. /// /// Revokes a specified subscription in Amazon DataZone. @@ -8880,6 +9624,82 @@ extension DataZoneClient { return try await op.execute(input: input) } + /// Performs the `UpdateDomainUnit` operation on the `DataZone` service. + /// + /// Updates the domain unit. + /// + /// - Parameter UpdateDomainUnitInput : [no documentation found] + /// + /// - Returns: `UpdateDomainUnitOutput` : [no documentation found] + /// + /// - Throws: One of the exceptions listed below __Possible Exceptions__. + /// + /// __Possible Exceptions:__ + /// - `AccessDeniedException` : You do not have sufficient access to perform this action. + /// - `ConflictException` : There is a conflict while performing this action. + /// - `InternalServerException` : The request has failed because of an unknown error, exception or failure. + /// - `ResourceNotFoundException` : The specified resource cannot be found. + /// - `ThrottlingException` : The request was denied due to request throttling. + /// - `UnauthorizedException` : You do not have permission to perform this action. + /// - `ValidationException` : The input fails to satisfy the constraints specified by the Amazon Web Services service. + public func updateDomainUnit(input: UpdateDomainUnitInput) async throws -> UpdateDomainUnitOutput { + let context = Smithy.ContextBuilder() + .withMethod(value: .put) + .withServiceName(value: serviceName) + .withOperation(value: "updateDomainUnit") + .withIdempotencyTokenGenerator(value: config.idempotencyTokenGenerator) + .withLogger(value: config.logger) + .withPartitionID(value: config.partitionID) + .withAuthSchemes(value: config.authSchemes ?? []) + .withAuthSchemeResolver(value: config.authSchemeResolver) + .withUnsignedPayloadTrait(value: false) + .withSocketTimeout(value: config.httpClientConfiguration.socketTimeout) + .withIdentityResolver(value: config.bearerTokenIdentityResolver, schemeID: "smithy.api#httpBearerAuth") + .withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4") + .withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4a") + .withRegion(value: config.region) + .withSigningName(value: "datazone") + .withSigningRegion(value: config.signingRegion) + .build() + let builder = ClientRuntime.OrchestratorBuilder() + config.interceptorProviders.forEach { provider in + builder.interceptors.add(provider.create()) + } + config.httpInterceptorProviders.forEach { (provider: any ClientRuntime.HttpInterceptorProvider) -> Void in + let i: any ClientRuntime.HttpInterceptor = provider.create() + builder.interceptors.add(i) + } + builder.interceptors.add(ClientRuntime.URLPathMiddleware(UpdateDomainUnitInput.urlPathProvider(_:))) + builder.interceptors.add(ClientRuntime.URLHostMiddleware()) + builder.interceptors.add(ClientRuntime.ContentTypeMiddleware(contentType: "application/json")) + builder.serialize(ClientRuntime.BodyMiddleware(rootNodeInfo: "", inputWritingClosure: UpdateDomainUnitInput.write(value:to:))) + builder.interceptors.add(ClientRuntime.ContentLengthMiddleware()) + builder.deserialize(ClientRuntime.DeserializeMiddleware(UpdateDomainUnitOutput.httpOutput(from:), UpdateDomainUnitOutputError.httpError(from:))) + builder.interceptors.add(ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) + builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions)) + builder.retryErrorInfoProvider(AWSClientRuntime.AWSRetryErrorInfoProvider.errorInfo(for:)) + builder.applySigner(ClientRuntime.SignerMiddleware()) + let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useFIPS: config.useFIPS ?? false) + builder.applyEndpoint(AWSClientRuntime.EndpointResolverMiddleware(endpointResolverBlock: { [config] in try config.endpointResolver.resolve(params: $0) }, endpointParams: endpointParams)) + builder.interceptors.add(AWSClientRuntime.UserAgentMiddleware(serviceID: serviceName, version: "1.0", config: config)) + builder.selectAuthScheme(ClientRuntime.AuthSchemeMiddleware()) + builder.interceptors.add(AWSClientRuntime.AmzSdkInvocationIdMiddleware()) + builder.interceptors.add(AWSClientRuntime.AmzSdkRequestMiddleware(maxRetries: config.retryStrategyOptions.maxRetriesBase)) + var metricsAttributes = Smithy.Attributes() + metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.service, value: "DataZone") + metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "UpdateDomainUnit") + let op = builder.attributes(context) + .telemetry(ClientRuntime.OrchestratorTelemetry( + telemetryProvider: config.telemetryProvider, + metricsAttributes: metricsAttributes, + meterScope: serviceName, + tracerScope: serviceName + )) + .executeRequest(client) + .build() + return try await op.execute(input: input) + } + /// Performs the `UpdateEnvironment` operation on the `DataZone` service. /// /// Updates the specified environment in Amazon DataZone. diff --git a/Sources/Services/AWSDataZone/Sources/AWSDataZone/Models.swift b/Sources/Services/AWSDataZone/Sources/AWSDataZone/Models.swift index 6c93df0f4d0..f7874b3256e 100644 --- a/Sources/Services/AWSDataZone/Sources/AWSDataZone/Models.swift +++ b/Sources/Services/AWSDataZone/Sources/AWSDataZone/Models.swift @@ -712,19 +712,40 @@ extension DataZoneClientTypes { } +/// The request has exceeded the specified service quota. +public struct ServiceQuotaExceededException: ClientRuntime.ModeledError, AWSClientRuntime.AWSServiceError, ClientRuntime.HTTPError, Swift.Error { + + public struct Properties { + /// This member is required. + public internal(set) var message: Swift.String? = nil + } + + public internal(set) var properties = Properties() + public static var typeName: Swift.String { "ServiceQuotaExceededException" } + public static var fault: ClientRuntime.ErrorFault { .client } + public static var isRetryable: Swift.Bool { false } + public static var isThrottling: Swift.Bool { false } + public internal(set) var httpResponse = SmithyHTTPAPI.HTTPResponse() + public internal(set) var message: Swift.String? + public internal(set) var requestID: Swift.String? + + public init( + message: Swift.String? = nil + ) + { + self.properties.message = message + } +} + extension DataZoneClientTypes { - public enum ListingStatus: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case active - case creating - case inactive + public enum DataZoneEntityType: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { + case domainUnit case sdkUnknown(Swift.String) - public static var allCases: [ListingStatus] { + public static var allCases: [DataZoneEntityType] { return [ - .active, - .creating, - .inactive + .domainUnit ] } @@ -735,9 +756,7 @@ extension DataZoneClientTypes { public var rawValue: Swift.String { switch self { - case .active: return "ACTIVE" - case .creating: return "CREATING" - case .inactive: return "INACTIVE" + case .domainUnit: return "DOMAIN_UNIT" case let .sdkUnknown(s): return s } } @@ -745,260 +764,870 @@ extension DataZoneClientTypes { } extension DataZoneClientTypes { - /// The details of an asset published in an Amazon DataZone catalog. - public struct AssetListingDetails { - /// The identifier of an asset published in an Amazon DataZone catalog. - /// This member is required. - public var listingId: Swift.String? - /// The status of an asset published in an Amazon DataZone catalog. + /// The properties of the domain unit owners group. + public struct OwnerGroupProperties { + /// The ID of the domain unit owners group. /// This member is required. - public var listingStatus: DataZoneClientTypes.ListingStatus? + public var groupIdentifier: Swift.String? public init( - listingId: Swift.String? = nil, - listingStatus: DataZoneClientTypes.ListingStatus? = nil + groupIdentifier: Swift.String? = nil ) { - self.listingId = listingId - self.listingStatus = listingStatus + self.groupIdentifier = groupIdentifier } } } -/// The request has exceeded the specified service quota. -public struct ServiceQuotaExceededException: ClientRuntime.ModeledError, AWSClientRuntime.AWSServiceError, ClientRuntime.HTTPError, Swift.Error { - - public struct Properties { +extension DataZoneClientTypes { + /// The properties of the owner user. + public struct OwnerUserProperties { + /// The ID of the owner user. /// This member is required. - public internal(set) var message: Swift.String? = nil + public var userIdentifier: Swift.String? + + public init( + userIdentifier: Swift.String? = nil + ) + { + self.userIdentifier = userIdentifier + } } - public internal(set) var properties = Properties() - public static var typeName: Swift.String { "ServiceQuotaExceededException" } - public static var fault: ClientRuntime.ErrorFault { .client } - public static var isRetryable: Swift.Bool { false } - public static var isThrottling: Swift.Bool { false } - public internal(set) var httpResponse = SmithyHTTPAPI.HTTPResponse() - public internal(set) var message: Swift.String? - public internal(set) var requestID: Swift.String? +} + +extension DataZoneClientTypes { + /// The properties of a domain unit's owner. + public enum OwnerProperties { + /// Specifies that the domain unit owner is a user. + case user(DataZoneClientTypes.OwnerUserProperties) + /// Specifies that the domain unit owner is a group. + case group(DataZoneClientTypes.OwnerGroupProperties) + case sdkUnknown(Swift.String) + } + +} + +public struct AddEntityOwnerInput { + /// A unique, case-sensitive identifier that is provided to ensure the idempotency of the request. + public var clientToken: Swift.String? + /// The ID of the domain in which you want to add the entity owner. + /// This member is required. + public var domainIdentifier: Swift.String? + /// The ID of the entity to which you want to add an owner. + /// This member is required. + public var entityIdentifier: Swift.String? + /// The type of an entity. + /// This member is required. + public var entityType: DataZoneClientTypes.DataZoneEntityType? + /// The owner that you want to add to the entity. + /// This member is required. + public var owner: DataZoneClientTypes.OwnerProperties? public init( - message: Swift.String? = nil + clientToken: Swift.String? = nil, + domainIdentifier: Swift.String? = nil, + entityIdentifier: Swift.String? = nil, + entityType: DataZoneClientTypes.DataZoneEntityType? = nil, + owner: DataZoneClientTypes.OwnerProperties? = nil ) { - self.properties.message = message + self.clientToken = clientToken + self.domainIdentifier = domainIdentifier + self.entityIdentifier = entityIdentifier + self.entityType = entityType + self.owner = owner } } +public struct AddEntityOwnerOutput { + + public init() { } +} + extension DataZoneClientTypes { - /// The details of a metadata form. - public struct FormInput { - /// The content of the metadata form. - public var content: Swift.String? - /// The name of the metadata form. - /// This member is required. - public var formName: Swift.String? - /// The ID of the metadata form type. - public var typeIdentifier: Swift.String? - /// The revision of the metadata form type. - public var typeRevision: Swift.String? + /// The details of the policy grant. + public struct AddToProjectMemberPoolPolicyGrantDetail { + /// Specifies whether the policy grant is applied to child domain units. + public var includeChildDomainUnits: Swift.Bool? public init( - content: Swift.String? = nil, - formName: Swift.String? = nil, - typeIdentifier: Swift.String? = nil, - typeRevision: Swift.String? = nil + includeChildDomainUnits: Swift.Bool? = nil ) { - self.content = content - self.formName = formName - self.typeIdentifier = typeIdentifier - self.typeRevision = typeRevision + self.includeChildDomainUnits = includeChildDomainUnits } } } -extension DataZoneClientTypes.FormInput: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "CONTENT_REDACTED" - } -} - extension DataZoneClientTypes { - /// The configuration of the business name generation. - public struct BusinessNameGenerationConfiguration { - /// Specifies whether the business name generation is enabled. - public var enabled: Swift.Bool? + /// The details of the policy grant. + public struct CreateAssetTypePolicyGrantDetail { + /// Specifies whether the policy grant is applied to child domain units. + public var includeChildDomainUnits: Swift.Bool? public init( - enabled: Swift.Bool? = nil + includeChildDomainUnits: Swift.Bool? = nil ) { - self.enabled = enabled + self.includeChildDomainUnits = includeChildDomainUnits } } } extension DataZoneClientTypes { - /// The configuration of the prediction. - public struct PredictionConfiguration { - /// The business name generation mechanism. - public var businessNameGeneration: DataZoneClientTypes.BusinessNameGenerationConfiguration? + /// The details of the policy grant. + public struct CreateDomainUnitPolicyGrantDetail { + /// Specifies whether the policy grant is applied to child domain units. + public var includeChildDomainUnits: Swift.Bool? public init( - businessNameGeneration: DataZoneClientTypes.BusinessNameGenerationConfiguration? = nil + includeChildDomainUnits: Swift.Bool? = nil ) { - self.businessNameGeneration = businessNameGeneration + self.includeChildDomainUnits = includeChildDomainUnits } } } -public struct CreateAssetInput { - /// A unique, case-sensitive identifier that is provided to ensure the idempotency of the request. - public var clientToken: Swift.String? - /// Asset description. - public var description: Swift.String? - /// Amazon DataZone domain where the asset is created. - /// This member is required. - public var domainIdentifier: Swift.String? - /// The external identifier of the asset. - public var externalIdentifier: Swift.String? - /// Metadata forms attached to the asset. - public var formsInput: [DataZoneClientTypes.FormInput]? - /// Glossary terms attached to the asset. - public var glossaryTerms: [Swift.String]? - /// Asset name. - /// This member is required. - public var name: Swift.String? - /// The unique identifier of the project that owns this asset. - /// This member is required. - public var owningProjectIdentifier: Swift.String? - /// The configuration of the automatically generated business-friendly metadata for the asset. - public var predictionConfiguration: DataZoneClientTypes.PredictionConfiguration? - /// The unique identifier of this asset's type. - /// This member is required. - public var typeIdentifier: Swift.String? - /// The revision of this asset's type. - public var typeRevision: Swift.String? +extension DataZoneClientTypes { + /// The details of the policy of creating an environment. + public struct Unit { - public init( - clientToken: Swift.String? = nil, - description: Swift.String? = nil, - domainIdentifier: Swift.String? = nil, - externalIdentifier: Swift.String? = nil, - formsInput: [DataZoneClientTypes.FormInput]? = nil, - glossaryTerms: [Swift.String]? = nil, - name: Swift.String? = nil, - owningProjectIdentifier: Swift.String? = nil, - predictionConfiguration: DataZoneClientTypes.PredictionConfiguration? = nil, - typeIdentifier: Swift.String? = nil, - typeRevision: Swift.String? = nil - ) - { - self.clientToken = clientToken - self.description = description - self.domainIdentifier = domainIdentifier - self.externalIdentifier = externalIdentifier - self.formsInput = formsInput - self.glossaryTerms = glossaryTerms - self.name = name - self.owningProjectIdentifier = owningProjectIdentifier - self.predictionConfiguration = predictionConfiguration - self.typeIdentifier = typeIdentifier - self.typeRevision = typeRevision + public init() { } } -} -extension CreateAssetInput: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "CreateAssetInput(clientToken: \(Swift.String(describing: clientToken)), domainIdentifier: \(Swift.String(describing: domainIdentifier)), glossaryTerms: \(Swift.String(describing: glossaryTerms)), owningProjectIdentifier: \(Swift.String(describing: owningProjectIdentifier)), predictionConfiguration: \(Swift.String(describing: predictionConfiguration)), typeIdentifier: \(Swift.String(describing: typeIdentifier)), typeRevision: \(Swift.String(describing: typeRevision)), description: \"CONTENT_REDACTED\", externalIdentifier: \"CONTENT_REDACTED\", formsInput: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} } extension DataZoneClientTypes { - /// The details of a metadata form. - public struct FormOutput { - /// The content of the metadata form. - public var content: Swift.String? - /// The name of the metadata form. - /// This member is required. - public var formName: Swift.String? - /// The name of the metadata form type. - public var typeName: Swift.String? - /// The revision of the metadata form type. - public var typeRevision: Swift.String? + /// The details of the policy grant. + public struct CreateEnvironmentProfilePolicyGrantDetail { + /// The ID of the domain unit. + public var domainUnitId: Swift.String? public init( - content: Swift.String? = nil, - formName: Swift.String? = nil, - typeName: Swift.String? = nil, - typeRevision: Swift.String? = nil + domainUnitId: Swift.String? = nil ) { - self.content = content - self.formName = formName - self.typeName = typeName - self.typeRevision = typeRevision + self.domainUnitId = domainUnitId } } } -extension DataZoneClientTypes.FormOutput: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "FormOutput(content: \(Swift.String(describing: content)), formName: \(Swift.String(describing: formName)), typeRevision: \(Swift.String(describing: typeRevision)), typeName: \"CONTENT_REDACTED\")"} +extension DataZoneClientTypes { + /// The details of the policy grant. + public struct CreateFormTypePolicyGrantDetail { + /// Specifies whether the policy grant is applied to child domain units. + public var includeChildDomainUnits: Swift.Bool? + + public init( + includeChildDomainUnits: Swift.Bool? = nil + ) + { + self.includeChildDomainUnits = includeChildDomainUnits + } + } + } extension DataZoneClientTypes { - /// The summary of the time series data points form. - public struct TimeSeriesDataPointSummaryFormOutput { - /// The content of the summary of the time series data points form. - public var contentSummary: Swift.String? - /// The name of the time series data points summary form. - /// This member is required. - public var formName: Swift.String? - /// The ID of the time series data points summary form. - public var id: Swift.String? - /// The timestamp of the time series data points summary form. - /// This member is required. - public var timestamp: Foundation.Date? - /// The type ID of the time series data points summary form. - /// This member is required. - public var typeIdentifier: Swift.String? - /// The type revision of the time series data points summary form. - public var typeRevision: Swift.String? + /// The details of the policy grant. + public struct CreateGlossaryPolicyGrantDetail { + /// Specifies whether the policy grant is applied to child domain units. + public var includeChildDomainUnits: Swift.Bool? public init( - contentSummary: Swift.String? = nil, - formName: Swift.String? = nil, - id: Swift.String? = nil, - timestamp: Foundation.Date? = nil, - typeIdentifier: Swift.String? = nil, - typeRevision: Swift.String? = nil + includeChildDomainUnits: Swift.Bool? = nil ) { - self.contentSummary = contentSummary - self.formName = formName - self.id = id - self.timestamp = timestamp - self.typeIdentifier = typeIdentifier - self.typeRevision = typeRevision + self.includeChildDomainUnits = includeChildDomainUnits } } } -public struct CreateAssetOutput { - /// The timestamp of when the asset was created. - public var createdAt: Foundation.Date? - /// The Amazon DataZone user that created this asset in the catalog. - public var createdBy: Swift.String? - /// The description of the created asset. - public var description: Swift.String? +extension DataZoneClientTypes { + /// The details of the policy grant. + public struct CreateProjectPolicyGrantDetail { + /// Specifies whether the policy grant is applied to child domain units. + public var includeChildDomainUnits: Swift.Bool? + + public init( + includeChildDomainUnits: Swift.Bool? = nil + ) + { + self.includeChildDomainUnits = includeChildDomainUnits + } + } + +} + +extension DataZoneClientTypes { + /// The grant details of the override domain unit owners policy. + public struct OverrideDomainUnitOwnersPolicyGrantDetail { + /// Specifies whether the policy is inherited by child domain units. + public var includeChildDomainUnits: Swift.Bool? + + public init( + includeChildDomainUnits: Swift.Bool? = nil + ) + { + self.includeChildDomainUnits = includeChildDomainUnits + } + } + +} + +extension DataZoneClientTypes { + /// The details of the override project owners policy grant. + public struct OverrideProjectOwnersPolicyGrantDetail { + /// Specifies whether the policy is inherited by child domain units. + public var includeChildDomainUnits: Swift.Bool? + + public init( + includeChildDomainUnits: Swift.Bool? = nil + ) + { + self.includeChildDomainUnits = includeChildDomainUnits + } + } + +} + +extension DataZoneClientTypes { + /// The details of the policy grant. + public enum PolicyGrantDetail { + /// Specifies that this is a create domain unit policy. + case createdomainunit(DataZoneClientTypes.CreateDomainUnitPolicyGrantDetail) + /// Specifies whether to override domain unit owners. + case overridedomainunitowners(DataZoneClientTypes.OverrideDomainUnitOwnersPolicyGrantDetail) + /// Specifies that the policy grant is to be added to the members of the project. + case addtoprojectmemberpool(DataZoneClientTypes.AddToProjectMemberPoolPolicyGrantDetail) + /// Specifies whether to override project owners. + case overrideprojectowners(DataZoneClientTypes.OverrideProjectOwnersPolicyGrantDetail) + /// Specifies that this is a create glossary policy. + case createglossary(DataZoneClientTypes.CreateGlossaryPolicyGrantDetail) + /// Specifies that this is a create form type policy. + case createformtype(DataZoneClientTypes.CreateFormTypePolicyGrantDetail) + /// Specifies that this is a create asset type policy. + case createassettype(DataZoneClientTypes.CreateAssetTypePolicyGrantDetail) + /// Specifies that this is a create project policy. + case createproject(DataZoneClientTypes.CreateProjectPolicyGrantDetail) + /// Specifies that this is a create environment profile policy. + case createenvironmentprofile(DataZoneClientTypes.CreateEnvironmentProfilePolicyGrantDetail) + /// Specifies that this is the delegation of the create environment profile policy. + case delegatecreateenvironmentprofile(DataZoneClientTypes.Unit) + /// Specifies that this is a create environment policy. + case createenvironment(DataZoneClientTypes.Unit) + case sdkUnknown(Swift.String) + } + +} + +extension DataZoneClientTypes { + + public enum TargetEntityType: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { + case domainUnit + case environmentBlueprintConfiguration + case environmentProfile + case sdkUnknown(Swift.String) + + public static var allCases: [TargetEntityType] { + return [ + .domainUnit, + .environmentBlueprintConfiguration, + .environmentProfile + ] + } + + public init?(rawValue: Swift.String) { + let value = Self.allCases.first(where: { $0.rawValue == rawValue }) + self = value ?? Self.sdkUnknown(rawValue) + } + + public var rawValue: Swift.String { + switch self { + case .domainUnit: return "DOMAIN_UNIT" + case .environmentBlueprintConfiguration: return "ENVIRONMENT_BLUEPRINT_CONFIGURATION" + case .environmentProfile: return "ENVIRONMENT_PROFILE" + case let .sdkUnknown(s): return s + } + } + } +} + +extension DataZoneClientTypes { + + public enum ManagedPolicyType: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { + case addToProjectMemberPool + case createAssetType + case createDomainUnit + case createEnvironment + case createEnvironmentProfile + case createFormType + case createGlossary + case createProject + case delegateCreateEnvironmentProfile + case overrideDomainUnitOwners + case overrideProjectOwners + case sdkUnknown(Swift.String) + + public static var allCases: [ManagedPolicyType] { + return [ + .addToProjectMemberPool, + .createAssetType, + .createDomainUnit, + .createEnvironment, + .createEnvironmentProfile, + .createFormType, + .createGlossary, + .createProject, + .delegateCreateEnvironmentProfile, + .overrideDomainUnitOwners, + .overrideProjectOwners + ] + } + + public init?(rawValue: Swift.String) { + let value = Self.allCases.first(where: { $0.rawValue == rawValue }) + self = value ?? Self.sdkUnknown(rawValue) + } + + public var rawValue: Swift.String { + switch self { + case .addToProjectMemberPool: return "ADD_TO_PROJECT_MEMBER_POOL" + case .createAssetType: return "CREATE_ASSET_TYPE" + case .createDomainUnit: return "CREATE_DOMAIN_UNIT" + case .createEnvironment: return "CREATE_ENVIRONMENT" + case .createEnvironmentProfile: return "CREATE_ENVIRONMENT_PROFILE" + case .createFormType: return "CREATE_FORM_TYPE" + case .createGlossary: return "CREATE_GLOSSARY" + case .createProject: return "CREATE_PROJECT" + case .delegateCreateEnvironmentProfile: return "DELEGATE_CREATE_ENVIRONMENT_PROFILE" + case .overrideDomainUnitOwners: return "OVERRIDE_DOMAIN_UNIT_OWNERS" + case .overrideProjectOwners: return "OVERRIDE_PROJECT_OWNERS" + case let .sdkUnknown(s): return s + } + } + } +} + +extension DataZoneClientTypes { + + public enum DomainUnitDesignation: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { + case owner + case sdkUnknown(Swift.String) + + public static var allCases: [DomainUnitDesignation] { + return [ + .owner + ] + } + + public init?(rawValue: Swift.String) { + let value = Self.allCases.first(where: { $0.rawValue == rawValue }) + self = value ?? Self.sdkUnknown(rawValue) + } + + public var rawValue: Swift.String { + switch self { + case .owner: return "OWNER" + case let .sdkUnknown(s): return s + } + } + } +} + +extension DataZoneClientTypes { + /// The grant filter for all domain units. + public struct AllDomainUnitsGrantFilter { + + public init() { } + } + +} + +extension DataZoneClientTypes { + /// The grant filter for the domain unit. In the current release of Amazon DataZone, the only supported filter is the allDomainUnitsGrantFilter. + public enum DomainUnitGrantFilter { + /// Specifies a grant filter containing all domain units. + case alldomainunitsgrantfilter(DataZoneClientTypes.AllDomainUnitsGrantFilter) + case sdkUnknown(Swift.String) + } + +} + +extension DataZoneClientTypes { + /// The domain unit principal to whom the policy is granted. + public struct DomainUnitPolicyGrantPrincipal { + /// Specifes the designation of the domain unit users. + /// This member is required. + public var domainUnitDesignation: DataZoneClientTypes.DomainUnitDesignation? + /// The grant filter for the domain unit. + public var domainUnitGrantFilter: DataZoneClientTypes.DomainUnitGrantFilter? + /// The ID of the domain unit. + public var domainUnitIdentifier: Swift.String? + + public init( + domainUnitDesignation: DataZoneClientTypes.DomainUnitDesignation? = nil, + domainUnitGrantFilter: DataZoneClientTypes.DomainUnitGrantFilter? = nil, + domainUnitIdentifier: Swift.String? = nil + ) + { + self.domainUnitDesignation = domainUnitDesignation + self.domainUnitGrantFilter = domainUnitGrantFilter + self.domainUnitIdentifier = domainUnitIdentifier + } + } + +} + +extension DataZoneClientTypes { + /// The group principal to whom the policy is granted. + public enum GroupPolicyGrantPrincipal { + /// The ID Of the group of the group principal. + case groupidentifier(Swift.String) + case sdkUnknown(Swift.String) + } + +} + +extension DataZoneClientTypes { + + public enum ProjectDesignation: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { + case contributor + case owner + case sdkUnknown(Swift.String) + + public static var allCases: [ProjectDesignation] { + return [ + .contributor, + .owner + ] + } + + public init?(rawValue: Swift.String) { + let value = Self.allCases.first(where: { $0.rawValue == rawValue }) + self = value ?? Self.sdkUnknown(rawValue) + } + + public var rawValue: Swift.String { + switch self { + case .contributor: return "CONTRIBUTOR" + case .owner: return "OWNER" + case let .sdkUnknown(s): return s + } + } + } +} + +extension DataZoneClientTypes { + /// The domain unit filter of the project grant filter. + public struct DomainUnitFilterForProject { + /// The domain unit ID to use in the filter. + /// This member is required. + public var domainUnit: Swift.String? + /// Specifies whether to include child domain units. + public var includeChildDomainUnits: Swift.Bool? + + public init( + domainUnit: Swift.String? = nil, + includeChildDomainUnits: Swift.Bool? = nil + ) + { + self.domainUnit = domainUnit + self.includeChildDomainUnits = includeChildDomainUnits + } + } + +} + +extension DataZoneClientTypes { + /// The project grant filter. + public enum ProjectGrantFilter { + /// The domain unit filter of the project grant filter. + case domainunitfilter(DataZoneClientTypes.DomainUnitFilterForProject) + case sdkUnknown(Swift.String) + } + +} + +extension DataZoneClientTypes { + /// The project policy grant principal. + public struct ProjectPolicyGrantPrincipal { + /// The project designation of the project policy grant principal. + /// This member is required. + public var projectDesignation: DataZoneClientTypes.ProjectDesignation? + /// The project grant filter of the project policy grant principal. + public var projectGrantFilter: DataZoneClientTypes.ProjectGrantFilter? + /// The project ID of the project policy grant principal. + public var projectIdentifier: Swift.String? + + public init( + projectDesignation: DataZoneClientTypes.ProjectDesignation? = nil, + projectGrantFilter: DataZoneClientTypes.ProjectGrantFilter? = nil, + projectIdentifier: Swift.String? = nil + ) + { + self.projectDesignation = projectDesignation + self.projectGrantFilter = projectGrantFilter + self.projectIdentifier = projectIdentifier + } + } + +} + +extension DataZoneClientTypes { + /// The all users grant filter. + public struct AllUsersGrantFilter { + + public init() { } + } + +} + +extension DataZoneClientTypes { + /// The user policy grant principal. + public enum UserPolicyGrantPrincipal { + /// The user ID of the user policy grant principal. + case useridentifier(Swift.String) + /// The all users grant filter of the user policy grant principal. + case allusersgrantfilter(DataZoneClientTypes.AllUsersGrantFilter) + case sdkUnknown(Swift.String) + } + +} + +extension DataZoneClientTypes { + /// The policy grant principal. + public enum PolicyGrantPrincipal { + /// The user of the policy grant principal. + case user(DataZoneClientTypes.UserPolicyGrantPrincipal) + /// The group of the policy grant principal. + case group(DataZoneClientTypes.GroupPolicyGrantPrincipal) + /// The project of the policy grant principal. + case project(DataZoneClientTypes.ProjectPolicyGrantPrincipal) + /// The domain unit of the policy grant principal. + case domainunit(DataZoneClientTypes.DomainUnitPolicyGrantPrincipal) + case sdkUnknown(Swift.String) + } + +} + +public struct AddPolicyGrantInput { + /// A unique, case-sensitive identifier that is provided to ensure the idempotency of the request. + public var clientToken: Swift.String? + /// The details of the policy grant. + /// This member is required. + public var detail: DataZoneClientTypes.PolicyGrantDetail? + /// The ID of the domain where you want to add a policy grant. + /// This member is required. + public var domainIdentifier: Swift.String? + /// The ID of the entity (resource) to which you want to add a policy grant. + /// This member is required. + public var entityIdentifier: Swift.String? + /// The type of entity (resource) to which the grant is added. + /// This member is required. + public var entityType: DataZoneClientTypes.TargetEntityType? + /// The type of policy that you want to grant. + /// This member is required. + public var policyType: DataZoneClientTypes.ManagedPolicyType? + /// The principal to whom the permissions are granted. + /// This member is required. + public var principal: DataZoneClientTypes.PolicyGrantPrincipal? + + public init( + clientToken: Swift.String? = nil, + detail: DataZoneClientTypes.PolicyGrantDetail? = nil, + domainIdentifier: Swift.String? = nil, + entityIdentifier: Swift.String? = nil, + entityType: DataZoneClientTypes.TargetEntityType? = nil, + policyType: DataZoneClientTypes.ManagedPolicyType? = nil, + principal: DataZoneClientTypes.PolicyGrantPrincipal? = nil + ) + { + self.clientToken = clientToken + self.detail = detail + self.domainIdentifier = domainIdentifier + self.entityIdentifier = entityIdentifier + self.entityType = entityType + self.policyType = policyType + self.principal = principal + } +} + +public struct AddPolicyGrantOutput { + + public init() { } +} + +extension DataZoneClientTypes { + + public enum ListingStatus: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { + case active + case creating + case inactive + case sdkUnknown(Swift.String) + + public static var allCases: [ListingStatus] { + return [ + .active, + .creating, + .inactive + ] + } + + public init?(rawValue: Swift.String) { + let value = Self.allCases.first(where: { $0.rawValue == rawValue }) + self = value ?? Self.sdkUnknown(rawValue) + } + + public var rawValue: Swift.String { + switch self { + case .active: return "ACTIVE" + case .creating: return "CREATING" + case .inactive: return "INACTIVE" + case let .sdkUnknown(s): return s + } + } + } +} + +extension DataZoneClientTypes { + /// The details of an asset published in an Amazon DataZone catalog. + public struct AssetListingDetails { + /// The identifier of an asset published in an Amazon DataZone catalog. + /// This member is required. + public var listingId: Swift.String? + /// The status of an asset published in an Amazon DataZone catalog. + /// This member is required. + public var listingStatus: DataZoneClientTypes.ListingStatus? + + public init( + listingId: Swift.String? = nil, + listingStatus: DataZoneClientTypes.ListingStatus? = nil + ) + { + self.listingId = listingId + self.listingStatus = listingStatus + } + } + +} + +extension DataZoneClientTypes { + /// The details of a metadata form. + public struct FormInput { + /// The content of the metadata form. + public var content: Swift.String? + /// The name of the metadata form. + /// This member is required. + public var formName: Swift.String? + /// The ID of the metadata form type. + public var typeIdentifier: Swift.String? + /// The revision of the metadata form type. + public var typeRevision: Swift.String? + + public init( + content: Swift.String? = nil, + formName: Swift.String? = nil, + typeIdentifier: Swift.String? = nil, + typeRevision: Swift.String? = nil + ) + { + self.content = content + self.formName = formName + self.typeIdentifier = typeIdentifier + self.typeRevision = typeRevision + } + } + +} + +extension DataZoneClientTypes.FormInput: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "CONTENT_REDACTED" + } +} + +extension DataZoneClientTypes { + /// The configuration of the business name generation. + public struct BusinessNameGenerationConfiguration { + /// Specifies whether the business name generation is enabled. + public var enabled: Swift.Bool? + + public init( + enabled: Swift.Bool? = nil + ) + { + self.enabled = enabled + } + } + +} + +extension DataZoneClientTypes { + /// The configuration of the prediction. + public struct PredictionConfiguration { + /// The business name generation mechanism. + public var businessNameGeneration: DataZoneClientTypes.BusinessNameGenerationConfiguration? + + public init( + businessNameGeneration: DataZoneClientTypes.BusinessNameGenerationConfiguration? = nil + ) + { + self.businessNameGeneration = businessNameGeneration + } + } + +} + +public struct CreateAssetInput { + /// A unique, case-sensitive identifier that is provided to ensure the idempotency of the request. + public var clientToken: Swift.String? + /// Asset description. + public var description: Swift.String? + /// Amazon DataZone domain where the asset is created. + /// This member is required. + public var domainIdentifier: Swift.String? + /// The external identifier of the asset. + public var externalIdentifier: Swift.String? + /// Metadata forms attached to the asset. + public var formsInput: [DataZoneClientTypes.FormInput]? + /// Glossary terms attached to the asset. + public var glossaryTerms: [Swift.String]? + /// Asset name. + /// This member is required. + public var name: Swift.String? + /// The unique identifier of the project that owns this asset. + /// This member is required. + public var owningProjectIdentifier: Swift.String? + /// The configuration of the automatically generated business-friendly metadata for the asset. + public var predictionConfiguration: DataZoneClientTypes.PredictionConfiguration? + /// The unique identifier of this asset's type. + /// This member is required. + public var typeIdentifier: Swift.String? + /// The revision of this asset's type. + public var typeRevision: Swift.String? + + public init( + clientToken: Swift.String? = nil, + description: Swift.String? = nil, + domainIdentifier: Swift.String? = nil, + externalIdentifier: Swift.String? = nil, + formsInput: [DataZoneClientTypes.FormInput]? = nil, + glossaryTerms: [Swift.String]? = nil, + name: Swift.String? = nil, + owningProjectIdentifier: Swift.String? = nil, + predictionConfiguration: DataZoneClientTypes.PredictionConfiguration? = nil, + typeIdentifier: Swift.String? = nil, + typeRevision: Swift.String? = nil + ) + { + self.clientToken = clientToken + self.description = description + self.domainIdentifier = domainIdentifier + self.externalIdentifier = externalIdentifier + self.formsInput = formsInput + self.glossaryTerms = glossaryTerms + self.name = name + self.owningProjectIdentifier = owningProjectIdentifier + self.predictionConfiguration = predictionConfiguration + self.typeIdentifier = typeIdentifier + self.typeRevision = typeRevision + } +} + +extension CreateAssetInput: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "CreateAssetInput(clientToken: \(Swift.String(describing: clientToken)), domainIdentifier: \(Swift.String(describing: domainIdentifier)), glossaryTerms: \(Swift.String(describing: glossaryTerms)), owningProjectIdentifier: \(Swift.String(describing: owningProjectIdentifier)), predictionConfiguration: \(Swift.String(describing: predictionConfiguration)), typeIdentifier: \(Swift.String(describing: typeIdentifier)), typeRevision: \(Swift.String(describing: typeRevision)), description: \"CONTENT_REDACTED\", externalIdentifier: \"CONTENT_REDACTED\", formsInput: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} +} + +extension DataZoneClientTypes { + /// The details of a metadata form. + public struct FormOutput { + /// The content of the metadata form. + public var content: Swift.String? + /// The name of the metadata form. + /// This member is required. + public var formName: Swift.String? + /// The name of the metadata form type. + public var typeName: Swift.String? + /// The revision of the metadata form type. + public var typeRevision: Swift.String? + + public init( + content: Swift.String? = nil, + formName: Swift.String? = nil, + typeName: Swift.String? = nil, + typeRevision: Swift.String? = nil + ) + { + self.content = content + self.formName = formName + self.typeName = typeName + self.typeRevision = typeRevision + } + } + +} + +extension DataZoneClientTypes.FormOutput: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "FormOutput(content: \(Swift.String(describing: content)), formName: \(Swift.String(describing: formName)), typeRevision: \(Swift.String(describing: typeRevision)), typeName: \"CONTENT_REDACTED\")"} +} + +extension DataZoneClientTypes { + /// The summary of the time series data points form. + public struct TimeSeriesDataPointSummaryFormOutput { + /// The content of the summary of the time series data points form. + public var contentSummary: Swift.String? + /// The name of the time series data points summary form. + /// This member is required. + public var formName: Swift.String? + /// The ID of the time series data points summary form. + public var id: Swift.String? + /// The timestamp of the time series data points summary form. + /// This member is required. + public var timestamp: Foundation.Date? + /// The type ID of the time series data points summary form. + /// This member is required. + public var typeIdentifier: Swift.String? + /// The type revision of the time series data points summary form. + public var typeRevision: Swift.String? + + public init( + contentSummary: Swift.String? = nil, + formName: Swift.String? = nil, + id: Swift.String? = nil, + timestamp: Foundation.Date? = nil, + typeIdentifier: Swift.String? = nil, + typeRevision: Swift.String? = nil + ) + { + self.contentSummary = contentSummary + self.formName = formName + self.id = id + self.timestamp = timestamp + self.typeIdentifier = typeIdentifier + self.typeRevision = typeRevision + } + } + +} + +public struct CreateAssetOutput { + /// The timestamp of when the asset was created. + public var createdAt: Foundation.Date? + /// The Amazon DataZone user that created this asset in the catalog. + public var createdBy: Swift.String? + /// The description of the created asset. + public var description: Swift.String? /// The ID of the Amazon DataZone domain in which the asset was created. /// This member is required. public var domainId: Swift.String? @@ -4066,55 +4695,193 @@ extension DataZoneClientTypes { } } -public struct CreateDomainOutput { - /// The ARN of the Amazon DataZone domain. - public var arn: Swift.String? - /// The description of the Amazon DataZone domain. +public struct CreateDomainOutput { + /// The ARN of the Amazon DataZone domain. + public var arn: Swift.String? + /// The description of the Amazon DataZone domain. + public var description: Swift.String? + /// The domain execution role that is created when an Amazon DataZone domain is created. The domain execution role is created in the Amazon Web Services account that houses the Amazon DataZone domain. + public var domainExecutionRole: Swift.String? + /// The identifier of the Amazon DataZone domain. + /// This member is required. + public var id: Swift.String? + /// The identifier of the Amazon Web Services Key Management Service (KMS) key that is used to encrypt the Amazon DataZone domain, metadata, and reporting data. + public var kmsKeyIdentifier: Swift.String? + /// The name of the Amazon DataZone domain. + public var name: Swift.String? + /// The URL of the data portal for this Amazon DataZone domain. + public var portalUrl: Swift.String? + /// The ID of the root domain unit. + public var rootDomainUnitId: Swift.String? + /// The single-sign on configuration of the Amazon DataZone domain. + public var singleSignOn: DataZoneClientTypes.SingleSignOn? + /// The status of the Amazon DataZone domain. + public var status: DataZoneClientTypes.DomainStatus? + /// The tags specified for the Amazon DataZone domain. + public var tags: [Swift.String: Swift.String]? + + public init( + arn: Swift.String? = nil, + description: Swift.String? = nil, + domainExecutionRole: Swift.String? = nil, + id: Swift.String? = nil, + kmsKeyIdentifier: Swift.String? = nil, + name: Swift.String? = nil, + portalUrl: Swift.String? = nil, + rootDomainUnitId: Swift.String? = nil, + singleSignOn: DataZoneClientTypes.SingleSignOn? = nil, + status: DataZoneClientTypes.DomainStatus? = nil, + tags: [Swift.String: Swift.String]? = nil + ) + { + self.arn = arn + self.description = description + self.domainExecutionRole = domainExecutionRole + self.id = id + self.kmsKeyIdentifier = kmsKeyIdentifier + self.name = name + self.portalUrl = portalUrl + self.rootDomainUnitId = rootDomainUnitId + self.singleSignOn = singleSignOn + self.status = status + self.tags = tags + } +} + +public struct CreateDomainUnitInput { + /// A unique, case-sensitive identifier that is provided to ensure the idempotency of the request. + public var clientToken: Swift.String? + /// The description of the domain unit. + public var description: Swift.String? + /// The ID of the domain where you want to crate a domain unit. + /// This member is required. + public var domainIdentifier: Swift.String? + /// The name of the domain unit. + /// This member is required. + public var name: Swift.String? + /// The ID of the parent domain unit. + /// This member is required. + public var parentDomainUnitIdentifier: Swift.String? + + public init( + clientToken: Swift.String? = nil, + description: Swift.String? = nil, + domainIdentifier: Swift.String? = nil, + name: Swift.String? = nil, + parentDomainUnitIdentifier: Swift.String? = nil + ) + { + self.clientToken = clientToken + self.description = description + self.domainIdentifier = domainIdentifier + self.name = name + self.parentDomainUnitIdentifier = parentDomainUnitIdentifier + } +} + +extension CreateDomainUnitInput: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "CreateDomainUnitInput(clientToken: \(Swift.String(describing: clientToken)), domainIdentifier: \(Swift.String(describing: domainIdentifier)), parentDomainUnitIdentifier: \(Swift.String(describing: parentDomainUnitIdentifier)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} +} + +extension DataZoneClientTypes { + /// The properties of a domain unit group. + public struct DomainUnitGroupProperties { + /// The ID of the domain unit group. + public var groupId: Swift.String? + + public init( + groupId: Swift.String? = nil + ) + { + self.groupId = groupId + } + } + +} + +extension DataZoneClientTypes { + /// The properties of the domain unit user. + public struct DomainUnitUserProperties { + /// The ID of teh domain unit user. + public var userId: Swift.String? + + public init( + userId: Swift.String? = nil + ) + { + self.userId = userId + } + } + +} + +extension DataZoneClientTypes { + /// The properties of the domain unit owner. + public enum DomainUnitOwnerProperties { + /// Indicates that the domain unit owner is a user. + case user(DataZoneClientTypes.DomainUnitUserProperties) + /// Indicates that the domain unit owner is a group. + case group(DataZoneClientTypes.DomainUnitGroupProperties) + case sdkUnknown(Swift.String) + } + +} + +public struct CreateDomainUnitOutput { + /// The IDs of the ancestor domain units. + /// This member is required. + public var ancestorDomainUnitIds: [Swift.String]? + /// The timestamp at which the domain unit was created. + public var createdAt: Foundation.Date? + /// The user who created the domain unit. + public var createdBy: Swift.String? + /// The description of the domain unit. public var description: Swift.String? - /// The domain execution role that is created when an Amazon DataZone domain is created. The domain execution role is created in the Amazon Web Services account that houses the Amazon DataZone domain. - public var domainExecutionRole: Swift.String? - /// The identifier of the Amazon DataZone domain. + /// The ID of the domain where the domain unit was created. + /// This member is required. + public var domainId: Swift.String? + /// The ID of the domain unit. /// This member is required. public var id: Swift.String? - /// The identifier of the Amazon Web Services Key Management Service (KMS) key that is used to encrypt the Amazon DataZone domain, metadata, and reporting data. - public var kmsKeyIdentifier: Swift.String? - /// The name of the Amazon DataZone domain. + /// The name of the domain unit. + /// This member is required. public var name: Swift.String? - /// The URL of the data portal for this Amazon DataZone domain. - public var portalUrl: Swift.String? - /// The single-sign on configuration of the Amazon DataZone domain. - public var singleSignOn: DataZoneClientTypes.SingleSignOn? - /// The status of the Amazon DataZone domain. - public var status: DataZoneClientTypes.DomainStatus? - /// The tags specified for the Amazon DataZone domain. - public var tags: [Swift.String: Swift.String]? + /// The owners of the domain unit. + /// This member is required. + public var owners: [DataZoneClientTypes.DomainUnitOwnerProperties]? + /// The ID of the parent domain unit. + public var parentDomainUnitId: Swift.String? public init( - arn: Swift.String? = nil, + ancestorDomainUnitIds: [Swift.String]? = nil, + createdAt: Foundation.Date? = nil, + createdBy: Swift.String? = nil, description: Swift.String? = nil, - domainExecutionRole: Swift.String? = nil, + domainId: Swift.String? = nil, id: Swift.String? = nil, - kmsKeyIdentifier: Swift.String? = nil, name: Swift.String? = nil, - portalUrl: Swift.String? = nil, - singleSignOn: DataZoneClientTypes.SingleSignOn? = nil, - status: DataZoneClientTypes.DomainStatus? = nil, - tags: [Swift.String: Swift.String]? = nil + owners: [DataZoneClientTypes.DomainUnitOwnerProperties]? = nil, + parentDomainUnitId: Swift.String? = nil ) { - self.arn = arn + self.ancestorDomainUnitIds = ancestorDomainUnitIds + self.createdAt = createdAt + self.createdBy = createdBy self.description = description - self.domainExecutionRole = domainExecutionRole + self.domainId = domainId self.id = id - self.kmsKeyIdentifier = kmsKeyIdentifier self.name = name - self.portalUrl = portalUrl - self.singleSignOn = singleSignOn - self.status = status - self.tags = tags + self.owners = owners + self.parentDomainUnitId = parentDomainUnitId } } +extension CreateDomainUnitOutput: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "CreateDomainUnitOutput(ancestorDomainUnitIds: \(Swift.String(describing: ancestorDomainUnitIds)), createdAt: \(Swift.String(describing: createdAt)), createdBy: \(Swift.String(describing: createdBy)), domainId: \(Swift.String(describing: domainId)), id: \(Swift.String(describing: id)), owners: \(Swift.String(describing: owners)), parentDomainUnitId: \(Swift.String(describing: parentDomainUnitId)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} +} + extension DataZoneClientTypes { /// The parameter details of an evironment profile. public struct EnvironmentParameter { @@ -5317,6 +6084,8 @@ public struct CreateProjectInput { /// The ID of the Amazon DataZone domain in which this project is created. /// This member is required. public var domainIdentifier: Swift.String? + /// The ID of the domain unit. This parameter is not required and if it is not specified, then the project is created at the root domain unit level. + public var domainUnitId: Swift.String? /// The glossary terms that can be used in this Amazon DataZone project. public var glossaryTerms: [Swift.String]? /// The name of the Amazon DataZone project. @@ -5326,12 +6095,14 @@ public struct CreateProjectInput { public init( description: Swift.String? = nil, domainIdentifier: Swift.String? = nil, + domainUnitId: Swift.String? = nil, glossaryTerms: [Swift.String]? = nil, name: Swift.String? = nil ) { self.description = description self.domainIdentifier = domainIdentifier + self.domainUnitId = domainUnitId self.glossaryTerms = glossaryTerms self.name = name } @@ -5339,7 +6110,7 @@ public struct CreateProjectInput { extension CreateProjectInput: Swift.CustomDebugStringConvertible { public var debugDescription: Swift.String { - "CreateProjectInput(domainIdentifier: \(Swift.String(describing: domainIdentifier)), glossaryTerms: \(Swift.String(describing: glossaryTerms)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} + "CreateProjectInput(domainIdentifier: \(Swift.String(describing: domainIdentifier)), domainUnitId: \(Swift.String(describing: domainUnitId)), glossaryTerms: \(Swift.String(describing: glossaryTerms)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} } extension DataZoneClientTypes { @@ -5405,6 +6176,8 @@ public struct CreateProjectOutput { /// The identifier of the Amazon DataZone domain in which the project was created. /// This member is required. public var domainId: Swift.String? + /// The ID of the domain unit. + public var domainUnitId: Swift.String? /// Specifies the error message that is returned if the operation cannot be successfully completed. public var failureReasons: [DataZoneClientTypes.ProjectDeletionError]? /// The glossary terms that can be used in the project. @@ -5425,6 +6198,7 @@ public struct CreateProjectOutput { createdBy: Swift.String? = nil, description: Swift.String? = nil, domainId: Swift.String? = nil, + domainUnitId: Swift.String? = nil, failureReasons: [DataZoneClientTypes.ProjectDeletionError]? = nil, glossaryTerms: [Swift.String]? = nil, id: Swift.String? = nil, @@ -5437,6 +6211,7 @@ public struct CreateProjectOutput { self.createdBy = createdBy self.description = description self.domainId = domainId + self.domainUnitId = domainUnitId self.failureReasons = failureReasons self.glossaryTerms = glossaryTerms self.id = id @@ -5448,7 +6223,7 @@ public struct CreateProjectOutput { extension CreateProjectOutput: Swift.CustomDebugStringConvertible { public var debugDescription: Swift.String { - "CreateProjectOutput(createdAt: \(Swift.String(describing: createdAt)), createdBy: \(Swift.String(describing: createdBy)), domainId: \(Swift.String(describing: domainId)), failureReasons: \(Swift.String(describing: failureReasons)), glossaryTerms: \(Swift.String(describing: glossaryTerms)), id: \(Swift.String(describing: id)), lastUpdatedAt: \(Swift.String(describing: lastUpdatedAt)), projectStatus: \(Swift.String(describing: projectStatus)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} + "CreateProjectOutput(createdAt: \(Swift.String(describing: createdAt)), createdBy: \(Swift.String(describing: createdBy)), domainId: \(Swift.String(describing: domainId)), domainUnitId: \(Swift.String(describing: domainUnitId)), failureReasons: \(Swift.String(describing: failureReasons)), glossaryTerms: \(Swift.String(describing: glossaryTerms)), id: \(Swift.String(describing: id)), lastUpdatedAt: \(Swift.String(describing: lastUpdatedAt)), projectStatus: \(Swift.String(describing: projectStatus)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} } extension DataZoneClientTypes { @@ -8305,6 +9080,8 @@ public struct GetDomainOutput { public var name: Swift.String? /// The URL of the data portal for this Amazon DataZone domain. public var portalUrl: Swift.String? + /// The ID of the root domain in Amazon Datazone. + public var rootDomainUnitId: Swift.String? /// The single sing-on option of the specified Amazon DataZone domain. public var singleSignOn: DataZoneClientTypes.SingleSignOn? /// The status of the specified Amazon DataZone domain. @@ -8323,6 +9100,7 @@ public struct GetDomainOutput { lastUpdatedAt: Foundation.Date? = nil, name: Swift.String? = nil, portalUrl: Swift.String? = nil, + rootDomainUnitId: Swift.String? = nil, singleSignOn: DataZoneClientTypes.SingleSignOn? = nil, status: DataZoneClientTypes.DomainStatus? = nil, tags: [Swift.String: Swift.String]? = nil @@ -8337,6 +9115,7 @@ public struct GetDomainOutput { self.lastUpdatedAt = lastUpdatedAt self.name = name self.portalUrl = portalUrl + self.rootDomainUnitId = rootDomainUnitId self.singleSignOn = singleSignOn self.status = status self.tags = tags @@ -8417,20 +9196,253 @@ extension DataZoneClientTypes { } -extension DataZoneClientTypes.DomainSummary: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "DomainSummary(arn: \(Swift.String(describing: arn)), createdAt: \(Swift.String(describing: createdAt)), id: \(Swift.String(describing: id)), lastUpdatedAt: \(Swift.String(describing: lastUpdatedAt)), managedAccountId: \(Swift.String(describing: managedAccountId)), portalUrl: \(Swift.String(describing: portalUrl)), status: \(Swift.String(describing: status)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} -} - -public struct ListDomainsOutput { - /// The results of the ListDomains action. +extension DataZoneClientTypes.DomainSummary: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "DomainSummary(arn: \(Swift.String(describing: arn)), createdAt: \(Swift.String(describing: createdAt)), id: \(Swift.String(describing: id)), lastUpdatedAt: \(Swift.String(describing: lastUpdatedAt)), managedAccountId: \(Swift.String(describing: managedAccountId)), portalUrl: \(Swift.String(describing: portalUrl)), status: \(Swift.String(describing: status)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} +} + +public struct ListDomainsOutput { + /// The results of the ListDomains action. + /// This member is required. + public var items: [DataZoneClientTypes.DomainSummary]? + /// When the number of domains is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of domains, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListDomains to list the next set of domains. + public var nextToken: Swift.String? + + public init( + items: [DataZoneClientTypes.DomainSummary]? = nil, + nextToken: Swift.String? = nil + ) + { + self.items = items + self.nextToken = nextToken + } +} + +public struct UpdateDomainInput { + /// A unique, case-sensitive identifier that is provided to ensure the idempotency of the request. + public var clientToken: Swift.String? + /// The description to be updated as part of the UpdateDomain action. + public var description: Swift.String? + /// The domain execution role to be updated as part of the UpdateDomain action. + public var domainExecutionRole: Swift.String? + /// The ID of the Amazon Web Services domain that is to be updated. + /// This member is required. + public var identifier: Swift.String? + /// The name to be updated as part of the UpdateDomain action. + public var name: Swift.String? + /// The single sign-on option to be updated as part of the UpdateDomain action. + public var singleSignOn: DataZoneClientTypes.SingleSignOn? + + public init( + clientToken: Swift.String? = nil, + description: Swift.String? = nil, + domainExecutionRole: Swift.String? = nil, + identifier: Swift.String? = nil, + name: Swift.String? = nil, + singleSignOn: DataZoneClientTypes.SingleSignOn? = nil + ) + { + self.clientToken = clientToken + self.description = description + self.domainExecutionRole = domainExecutionRole + self.identifier = identifier + self.name = name + self.singleSignOn = singleSignOn + } +} + +public struct UpdateDomainOutput { + /// The description to be updated as part of the UpdateDomain action. + public var description: Swift.String? + /// The domain execution role to be updated as part of the UpdateDomain action. + public var domainExecutionRole: Swift.String? + /// The identifier of the Amazon DataZone domain. + /// This member is required. + public var id: Swift.String? + /// Specifies the timestamp of when the domain was last updated. + public var lastUpdatedAt: Foundation.Date? + /// The name to be updated as part of the UpdateDomain action. + public var name: Swift.String? + /// The ID of the root domain unit. + public var rootDomainUnitId: Swift.String? + /// The single sign-on option of the Amazon DataZone domain. + public var singleSignOn: DataZoneClientTypes.SingleSignOn? + + public init( + description: Swift.String? = nil, + domainExecutionRole: Swift.String? = nil, + id: Swift.String? = nil, + lastUpdatedAt: Foundation.Date? = nil, + name: Swift.String? = nil, + rootDomainUnitId: Swift.String? = nil, + singleSignOn: DataZoneClientTypes.SingleSignOn? = nil + ) + { + self.description = description + self.domainExecutionRole = domainExecutionRole + self.id = id + self.lastUpdatedAt = lastUpdatedAt + self.name = name + self.rootDomainUnitId = rootDomainUnitId + self.singleSignOn = singleSignOn + } +} + +public struct DeleteDomainUnitInput { + /// The ID of the domain where you want to delete a domain unit. + /// This member is required. + public var domainIdentifier: Swift.String? + /// The ID of the domain unit that you want to delete. + /// This member is required. + public var identifier: Swift.String? + + public init( + domainIdentifier: Swift.String? = nil, + identifier: Swift.String? = nil + ) + { + self.domainIdentifier = domainIdentifier + self.identifier = identifier + } +} + +public struct DeleteDomainUnitOutput { + + public init() { } +} + +public struct GetDomainUnitInput { + /// The ID of the domain where you want to get a domain unit. + /// This member is required. + public var domainIdentifier: Swift.String? + /// The identifier of the domain unit that you want to get. + /// This member is required. + public var identifier: Swift.String? + + public init( + domainIdentifier: Swift.String? = nil, + identifier: Swift.String? = nil + ) + { + self.domainIdentifier = domainIdentifier + self.identifier = identifier + } +} + +public struct GetDomainUnitOutput { + /// The time stamp at which the domain unit was created. + public var createdAt: Foundation.Date? + /// The user who created the domain unit. + public var createdBy: Swift.String? + /// The description of the domain unit. + public var description: Swift.String? + /// The ID of the domain in which the domain unit lives. + /// This member is required. + public var domainId: Swift.String? + /// The ID of the domain unit. + /// This member is required. + public var id: Swift.String? + /// The timestamp at which the domain unit was last updated. + public var lastUpdatedAt: Foundation.Date? + /// The user who last updated the domain unit. + public var lastUpdatedBy: Swift.String? + /// The name of the domain unit. + /// This member is required. + public var name: Swift.String? + /// The owners of the domain unit. + /// This member is required. + public var owners: [DataZoneClientTypes.DomainUnitOwnerProperties]? + /// The ID of the parent domain unit. + public var parentDomainUnitId: Swift.String? + + public init( + createdAt: Foundation.Date? = nil, + createdBy: Swift.String? = nil, + description: Swift.String? = nil, + domainId: Swift.String? = nil, + id: Swift.String? = nil, + lastUpdatedAt: Foundation.Date? = nil, + lastUpdatedBy: Swift.String? = nil, + name: Swift.String? = nil, + owners: [DataZoneClientTypes.DomainUnitOwnerProperties]? = nil, + parentDomainUnitId: Swift.String? = nil + ) + { + self.createdAt = createdAt + self.createdBy = createdBy + self.description = description + self.domainId = domainId + self.id = id + self.lastUpdatedAt = lastUpdatedAt + self.lastUpdatedBy = lastUpdatedBy + self.name = name + self.owners = owners + self.parentDomainUnitId = parentDomainUnitId + } +} + +extension GetDomainUnitOutput: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "GetDomainUnitOutput(createdAt: \(Swift.String(describing: createdAt)), createdBy: \(Swift.String(describing: createdBy)), domainId: \(Swift.String(describing: domainId)), id: \(Swift.String(describing: id)), lastUpdatedAt: \(Swift.String(describing: lastUpdatedAt)), lastUpdatedBy: \(Swift.String(describing: lastUpdatedBy)), owners: \(Swift.String(describing: owners)), parentDomainUnitId: \(Swift.String(describing: parentDomainUnitId)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} +} + +public struct ListDomainUnitsForParentInput { + /// The ID of the domain in which you want to list domain units for a parent domain unit. + /// This member is required. + public var domainIdentifier: Swift.String? + /// The maximum number of domain units to return in a single call to ListDomainUnitsForParent. When the number of domain units to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to ListDomainUnitsForParent to list the next set of domain units. + public var maxResults: Swift.Int? + /// When the number of domain units is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of domain units, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListDomainUnitsForParent to list the next set of domain units. + public var nextToken: Swift.String? + /// The ID of the parent domain unit. + /// This member is required. + public var parentDomainUnitIdentifier: Swift.String? + + public init( + domainIdentifier: Swift.String? = nil, + maxResults: Swift.Int? = nil, + nextToken: Swift.String? = nil, + parentDomainUnitIdentifier: Swift.String? = nil + ) + { + self.domainIdentifier = domainIdentifier + self.maxResults = maxResults + self.nextToken = nextToken + self.parentDomainUnitIdentifier = parentDomainUnitIdentifier + } +} + +extension DataZoneClientTypes { + /// The summary of the domain unit. + public struct DomainUnitSummary { + /// The ID of the domain unit summary. + /// This member is required. + public var id: Swift.String? + /// The name of the domain unit summary. + /// This member is required. + public var name: Swift.String? + + public init( + id: Swift.String? = nil, + name: Swift.String? = nil + ) + { + self.id = id + self.name = name + } + } + +} + +public struct ListDomainUnitsForParentOutput { + /// The results returned by this action. /// This member is required. - public var items: [DataZoneClientTypes.DomainSummary]? - /// When the number of domains is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of domains, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListDomains to list the next set of domains. + public var items: [DataZoneClientTypes.DomainUnitSummary]? + /// When the number of domain units is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of domain units, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListDomainUnitsForParent to list the next set of domain units. public var nextToken: Swift.String? public init( - items: [DataZoneClientTypes.DomainSummary]? = nil, + items: [DataZoneClientTypes.DomainUnitSummary]? = nil, nextToken: Swift.String? = nil ) { @@ -8439,72 +9451,94 @@ public struct ListDomainsOutput { } } -public struct UpdateDomainInput { - /// A unique, case-sensitive identifier that is provided to ensure the idempotency of the request. - public var clientToken: Swift.String? - /// The description to be updated as part of the UpdateDomain action. +public struct UpdateDomainUnitInput { + /// The description of the domain unit that you want to update. public var description: Swift.String? - /// The domain execution role to be updated as part of the UpdateDomain action. - public var domainExecutionRole: Swift.String? - /// The ID of the Amazon Web Services domain that is to be updated. + /// The ID of the domain where you want to update a domain unit. + /// This member is required. + public var domainIdentifier: Swift.String? + /// The ID of the domain unit that you want to update. /// This member is required. public var identifier: Swift.String? - /// The name to be updated as part of the UpdateDomain action. + /// The name of the domain unit that you want to update. public var name: Swift.String? - /// The single sign-on option to be updated as part of the UpdateDomain action. - public var singleSignOn: DataZoneClientTypes.SingleSignOn? public init( - clientToken: Swift.String? = nil, description: Swift.String? = nil, - domainExecutionRole: Swift.String? = nil, + domainIdentifier: Swift.String? = nil, identifier: Swift.String? = nil, - name: Swift.String? = nil, - singleSignOn: DataZoneClientTypes.SingleSignOn? = nil + name: Swift.String? = nil ) { - self.clientToken = clientToken self.description = description - self.domainExecutionRole = domainExecutionRole + self.domainIdentifier = domainIdentifier self.identifier = identifier self.name = name - self.singleSignOn = singleSignOn } } -public struct UpdateDomainOutput { - /// The description to be updated as part of the UpdateDomain action. +extension UpdateDomainUnitInput: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "UpdateDomainUnitInput(domainIdentifier: \(Swift.String(describing: domainIdentifier)), identifier: \(Swift.String(describing: identifier)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} +} + +public struct UpdateDomainUnitOutput { + /// The time stamp at which the domain unit that you want to update was created. + public var createdAt: Foundation.Date? + /// The user who created the domain unit that you want to update. + public var createdBy: Swift.String? + /// The description of the domain unit that you want to update. public var description: Swift.String? - /// The domain execution role to be updated as part of the UpdateDomain action. - public var domainExecutionRole: Swift.String? - /// The identifier of the Amazon DataZone domain. + /// The ID of the domain where you want to update the domain unit. + /// This member is required. + public var domainId: Swift.String? + /// The ID of the domain unit that you want to update. /// This member is required. public var id: Swift.String? - /// Specifies the timestamp of when the domain was last updated. + /// The timestamp at which the domain unit was last updated. public var lastUpdatedAt: Foundation.Date? - /// The name to be updated as part of the UpdateDomain action. + /// The user who last updated the domain unit. + public var lastUpdatedBy: Swift.String? + /// The name of the domain unit that you want to update. + /// This member is required. public var name: Swift.String? - /// The single sign-on option of the Amazon DataZone domain. - public var singleSignOn: DataZoneClientTypes.SingleSignOn? + /// The owners of the domain unit that you want to update. + /// This member is required. + public var owners: [DataZoneClientTypes.DomainUnitOwnerProperties]? + /// The ID of the parent domain unit. + public var parentDomainUnitId: Swift.String? public init( + createdAt: Foundation.Date? = nil, + createdBy: Swift.String? = nil, description: Swift.String? = nil, - domainExecutionRole: Swift.String? = nil, + domainId: Swift.String? = nil, id: Swift.String? = nil, lastUpdatedAt: Foundation.Date? = nil, + lastUpdatedBy: Swift.String? = nil, name: Swift.String? = nil, - singleSignOn: DataZoneClientTypes.SingleSignOn? = nil + owners: [DataZoneClientTypes.DomainUnitOwnerProperties]? = nil, + parentDomainUnitId: Swift.String? = nil ) { + self.createdAt = createdAt + self.createdBy = createdBy self.description = description - self.domainExecutionRole = domainExecutionRole + self.domainId = domainId self.id = id self.lastUpdatedAt = lastUpdatedAt + self.lastUpdatedBy = lastUpdatedBy self.name = name - self.singleSignOn = singleSignOn + self.owners = owners + self.parentDomainUnitId = parentDomainUnitId } } +extension UpdateDomainUnitOutput: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "UpdateDomainUnitOutput(createdAt: \(Swift.String(describing: createdAt)), createdBy: \(Swift.String(describing: createdBy)), domainId: \(Swift.String(describing: domainId)), id: \(Swift.String(describing: id)), lastUpdatedAt: \(Swift.String(describing: lastUpdatedAt)), lastUpdatedBy: \(Swift.String(describing: lastUpdatedBy)), owners: \(Swift.String(describing: owners)), parentDomainUnitId: \(Swift.String(describing: parentDomainUnitId)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} +} + public struct DeleteEnvironmentBlueprintConfigurationInput { /// The ID of the Amazon DataZone domain in which the blueprint configuration is deleted. /// This member is required. @@ -9560,6 +10594,8 @@ public struct GetProjectOutput { /// The ID of the Amazon DataZone domain in which the project exists. /// This member is required. public var domainId: Swift.String? + /// The ID of the domain unit. + public var domainUnitId: Swift.String? /// Specifies the error message that is returned if the operation cannot be successfully completed. public var failureReasons: [DataZoneClientTypes.ProjectDeletionError]? /// The business glossary terms that can be used in the project. @@ -9580,6 +10616,7 @@ public struct GetProjectOutput { createdBy: Swift.String? = nil, description: Swift.String? = nil, domainId: Swift.String? = nil, + domainUnitId: Swift.String? = nil, failureReasons: [DataZoneClientTypes.ProjectDeletionError]? = nil, glossaryTerms: [Swift.String]? = nil, id: Swift.String? = nil, @@ -9592,6 +10629,7 @@ public struct GetProjectOutput { self.createdBy = createdBy self.description = description self.domainId = domainId + self.domainUnitId = domainUnitId self.failureReasons = failureReasons self.glossaryTerms = glossaryTerms self.id = id @@ -9603,7 +10641,7 @@ public struct GetProjectOutput { extension GetProjectOutput: Swift.CustomDebugStringConvertible { public var debugDescription: Swift.String { - "GetProjectOutput(createdAt: \(Swift.String(describing: createdAt)), createdBy: \(Swift.String(describing: createdBy)), domainId: \(Swift.String(describing: domainId)), failureReasons: \(Swift.String(describing: failureReasons)), glossaryTerms: \(Swift.String(describing: glossaryTerms)), id: \(Swift.String(describing: id)), lastUpdatedAt: \(Swift.String(describing: lastUpdatedAt)), projectStatus: \(Swift.String(describing: projectStatus)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} + "GetProjectOutput(createdAt: \(Swift.String(describing: createdAt)), createdBy: \(Swift.String(describing: createdBy)), domainId: \(Swift.String(describing: domainId)), domainUnitId: \(Swift.String(describing: domainUnitId)), failureReasons: \(Swift.String(describing: failureReasons)), glossaryTerms: \(Swift.String(describing: glossaryTerms)), id: \(Swift.String(describing: id)), lastUpdatedAt: \(Swift.String(describing: lastUpdatedAt)), projectStatus: \(Swift.String(describing: projectStatus)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} } public struct GetSubscriptionInput { @@ -10672,6 +11710,98 @@ public struct ListDataSourceRunActivitiesOutput { } } +public struct ListEntityOwnersInput { + /// The ID of the domain where you want to list entity owners. + /// This member is required. + public var domainIdentifier: Swift.String? + /// The ID of the entity that you want to list. + /// This member is required. + public var entityIdentifier: Swift.String? + /// The type of the entity that you want to list. + /// This member is required. + public var entityType: DataZoneClientTypes.DataZoneEntityType? + /// The maximum number of entities to return in a single call to ListEntityOwners. When the number of entities to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to ListEntityOwners to list the next set of entities. + public var maxResults: Swift.Int? + /// When the number of entities is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of entities, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListEntityOwners to list the next set of entities. + public var nextToken: Swift.String? + + public init( + domainIdentifier: Swift.String? = nil, + entityIdentifier: Swift.String? = nil, + entityType: DataZoneClientTypes.DataZoneEntityType? = nil, + maxResults: Swift.Int? = nil, + nextToken: Swift.String? = nil + ) + { + self.domainIdentifier = domainIdentifier + self.entityIdentifier = entityIdentifier + self.entityType = entityType + self.maxResults = maxResults + self.nextToken = nextToken + } +} + +extension DataZoneClientTypes { + /// The properties of the domain unit owners group. + public struct OwnerGroupPropertiesOutput { + /// The ID of the domain unit owners group. + public var groupId: Swift.String? + + public init( + groupId: Swift.String? = nil + ) + { + self.groupId = groupId + } + } + +} + +extension DataZoneClientTypes { + /// The properties of the owner user. + public struct OwnerUserPropertiesOutput { + /// The ID of the owner user. + public var userId: Swift.String? + + public init( + userId: Swift.String? = nil + ) + { + self.userId = userId + } + } + +} + +extension DataZoneClientTypes { + /// The ID of the domain unit owners group. + public enum OwnerPropertiesOutput { + /// Specifies that the domain unit owner is a user. + case user(DataZoneClientTypes.OwnerUserPropertiesOutput) + /// Specifies that the domain unit owner is a group. + case group(DataZoneClientTypes.OwnerGroupPropertiesOutput) + case sdkUnknown(Swift.String) + } + +} + +public struct ListEntityOwnersOutput { + /// When the number of entities is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of entities, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListEntityOwners to list the next set of entities. + public var nextToken: Swift.String? + /// The owners of the entity. + /// This member is required. + public var owners: [DataZoneClientTypes.OwnerPropertiesOutput]? + + public init( + nextToken: Swift.String? = nil, + owners: [DataZoneClientTypes.OwnerPropertiesOutput]? = nil + ) + { + self.nextToken = nextToken + self.owners = owners + } +} + public struct ListEnvironmentActionsInput { /// The ID of the Amazon DataZone domain in which the environment actions are listed. /// This member is required. @@ -11723,6 +12853,87 @@ public struct ListNotificationsOutput { } } +public struct ListPolicyGrantsInput { + /// The ID of the domain where you want to list policy grants. + /// This member is required. + public var domainIdentifier: Swift.String? + /// The ID of the entity for which you want to list policy grants. + /// This member is required. + public var entityIdentifier: Swift.String? + /// The type of entity for which you want to list policy grants. + /// This member is required. + public var entityType: DataZoneClientTypes.TargetEntityType? + /// The maximum number of grants to return in a single call to ListPolicyGrants. When the number of grants to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to ListPolicyGrants to list the next set of grants. + public var maxResults: Swift.Int? + /// When the number of grants is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of grants, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListPolicyGrants to list the next set of grants. + public var nextToken: Swift.String? + /// The type of policy that you want to list. + /// This member is required. + public var policyType: DataZoneClientTypes.ManagedPolicyType? + + public init( + domainIdentifier: Swift.String? = nil, + entityIdentifier: Swift.String? = nil, + entityType: DataZoneClientTypes.TargetEntityType? = nil, + maxResults: Swift.Int? = nil, + nextToken: Swift.String? = nil, + policyType: DataZoneClientTypes.ManagedPolicyType? = nil + ) + { + self.domainIdentifier = domainIdentifier + self.entityIdentifier = entityIdentifier + self.entityType = entityType + self.maxResults = maxResults + self.nextToken = nextToken + self.policyType = policyType + } +} + +extension DataZoneClientTypes { + /// A member of the policy grant list. + public struct PolicyGrantMember { + /// Specifies the timestamp at which policy grant member was created. + public var createdAt: Foundation.Date? + /// Specifies the user who created the policy grant member. + public var createdBy: Swift.String? + /// The details of the policy grant member. + public var detail: DataZoneClientTypes.PolicyGrantDetail? + /// The principal of the policy grant member. + public var principal: DataZoneClientTypes.PolicyGrantPrincipal? + + public init( + createdAt: Foundation.Date? = nil, + createdBy: Swift.String? = nil, + detail: DataZoneClientTypes.PolicyGrantDetail? = nil, + principal: DataZoneClientTypes.PolicyGrantPrincipal? = nil + ) + { + self.createdAt = createdAt + self.createdBy = createdBy + self.detail = detail + self.principal = principal + } + } + +} + +public struct ListPolicyGrantsOutput { + /// The results of this action - the listed grants. + /// This member is required. + public var grantList: [DataZoneClientTypes.PolicyGrantMember]? + /// When the number of grants is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of grants, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListPolicyGrants to list the next set of grants. + public var nextToken: Swift.String? + + public init( + grantList: [DataZoneClientTypes.PolicyGrantMember]? = nil, + nextToken: Swift.String? = nil + ) + { + self.grantList = grantList + self.nextToken = nextToken + } +} + extension DataZoneClientTypes { public enum SortFieldProject: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { @@ -11919,6 +13130,8 @@ extension DataZoneClientTypes { /// The identifier of a Amazon DataZone domain where the project exists. /// This member is required. public var domainId: Swift.String? + /// The ID of the domain unit. + public var domainUnitId: Swift.String? /// Specifies the error message that is returned if the operation cannot be successfully completed. public var failureReasons: [DataZoneClientTypes.ProjectDeletionError]? /// The identifier of a project. @@ -11937,6 +13150,7 @@ extension DataZoneClientTypes { createdBy: Swift.String? = nil, description: Swift.String? = nil, domainId: Swift.String? = nil, + domainUnitId: Swift.String? = nil, failureReasons: [DataZoneClientTypes.ProjectDeletionError]? = nil, id: Swift.String? = nil, name: Swift.String? = nil, @@ -11948,6 +13162,7 @@ extension DataZoneClientTypes { self.createdBy = createdBy self.description = description self.domainId = domainId + self.domainUnitId = domainUnitId self.failureReasons = failureReasons self.id = id self.name = name @@ -11960,7 +13175,7 @@ extension DataZoneClientTypes { extension DataZoneClientTypes.ProjectSummary: Swift.CustomDebugStringConvertible { public var debugDescription: Swift.String { - "ProjectSummary(createdAt: \(Swift.String(describing: createdAt)), createdBy: \(Swift.String(describing: createdBy)), domainId: \(Swift.String(describing: domainId)), failureReasons: \(Swift.String(describing: failureReasons)), id: \(Swift.String(describing: id)), projectStatus: \(Swift.String(describing: projectStatus)), updatedAt: \(Swift.String(describing: updatedAt)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} + "ProjectSummary(createdAt: \(Swift.String(describing: createdAt)), createdBy: \(Swift.String(describing: createdBy)), domainId: \(Swift.String(describing: domainId)), domainUnitId: \(Swift.String(describing: domainUnitId)), failureReasons: \(Swift.String(describing: failureReasons)), id: \(Swift.String(describing: id)), projectStatus: \(Swift.String(describing: projectStatus)), updatedAt: \(Swift.String(describing: updatedAt)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} } public struct ListProjectsOutput { @@ -13275,46 +14490,125 @@ public struct RejectSubscriptionRequestOutput { public var subscribedListings: [DataZoneClientTypes.SubscribedListing]? /// The subscribed principals of the subscription request. /// This member is required. - public var subscribedPrincipals: [DataZoneClientTypes.SubscribedPrincipal]? - /// The timestamp of when the subscription request was updated. + public var subscribedPrincipals: [DataZoneClientTypes.SubscribedPrincipal]? + /// The timestamp of when the subscription request was updated. + /// This member is required. + public var updatedAt: Foundation.Date? + /// The Amazon DataZone user who updated the subscription request. + public var updatedBy: Swift.String? + + public init( + createdAt: Foundation.Date? = nil, + createdBy: Swift.String? = nil, + decisionComment: Swift.String? = nil, + domainId: Swift.String? = nil, + id: Swift.String? = nil, + requestReason: Swift.String? = nil, + reviewerId: Swift.String? = nil, + status: DataZoneClientTypes.SubscriptionRequestStatus? = nil, + subscribedListings: [DataZoneClientTypes.SubscribedListing]? = nil, + subscribedPrincipals: [DataZoneClientTypes.SubscribedPrincipal]? = nil, + updatedAt: Foundation.Date? = nil, + updatedBy: Swift.String? = nil + ) + { + self.createdAt = createdAt + self.createdBy = createdBy + self.decisionComment = decisionComment + self.domainId = domainId + self.id = id + self.requestReason = requestReason + self.reviewerId = reviewerId + self.status = status + self.subscribedListings = subscribedListings + self.subscribedPrincipals = subscribedPrincipals + self.updatedAt = updatedAt + self.updatedBy = updatedBy + } +} + +extension RejectSubscriptionRequestOutput: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "RejectSubscriptionRequestOutput(createdAt: \(Swift.String(describing: createdAt)), createdBy: \(Swift.String(describing: createdBy)), domainId: \(Swift.String(describing: domainId)), id: \(Swift.String(describing: id)), reviewerId: \(Swift.String(describing: reviewerId)), status: \(Swift.String(describing: status)), subscribedListings: \(Swift.String(describing: subscribedListings)), subscribedPrincipals: \(Swift.String(describing: subscribedPrincipals)), updatedAt: \(Swift.String(describing: updatedAt)), updatedBy: \(Swift.String(describing: updatedBy)), decisionComment: \"CONTENT_REDACTED\", requestReason: \"CONTENT_REDACTED\")"} +} + +public struct RemoveEntityOwnerInput { + /// A unique, case-sensitive identifier that is provided to ensure the idempotency of the request. + public var clientToken: Swift.String? + /// The ID of the domain where you want to remove an owner from an entity. + /// This member is required. + public var domainIdentifier: Swift.String? + /// The ID of the entity from which you want to remove an owner. + /// This member is required. + public var entityIdentifier: Swift.String? + /// The type of the entity from which you want to remove an owner. + /// This member is required. + public var entityType: DataZoneClientTypes.DataZoneEntityType? + /// The owner that you want to remove from an entity. + /// This member is required. + public var owner: DataZoneClientTypes.OwnerProperties? + + public init( + clientToken: Swift.String? = nil, + domainIdentifier: Swift.String? = nil, + entityIdentifier: Swift.String? = nil, + entityType: DataZoneClientTypes.DataZoneEntityType? = nil, + owner: DataZoneClientTypes.OwnerProperties? = nil + ) + { + self.clientToken = clientToken + self.domainIdentifier = domainIdentifier + self.entityIdentifier = entityIdentifier + self.entityType = entityType + self.owner = owner + } +} + +public struct RemoveEntityOwnerOutput { + + public init() { } +} + +public struct RemovePolicyGrantInput { + /// A unique, case-sensitive identifier that is provided to ensure the idempotency of the request. + public var clientToken: Swift.String? + /// The ID of the domain where you want to remove a policy grant. + /// This member is required. + public var domainIdentifier: Swift.String? + /// The ID of the entity from which you want to remove a policy grant. + /// This member is required. + public var entityIdentifier: Swift.String? + /// The type of the entity from which you want to remove a policy grant. + /// This member is required. + public var entityType: DataZoneClientTypes.TargetEntityType? + /// The type of the policy that you want to remove. + /// This member is required. + public var policyType: DataZoneClientTypes.ManagedPolicyType? + /// The principal from which you want to remove a policy grant. /// This member is required. - public var updatedAt: Foundation.Date? - /// The Amazon DataZone user who updated the subscription request. - public var updatedBy: Swift.String? + public var principal: DataZoneClientTypes.PolicyGrantPrincipal? public init( - createdAt: Foundation.Date? = nil, - createdBy: Swift.String? = nil, - decisionComment: Swift.String? = nil, - domainId: Swift.String? = nil, - id: Swift.String? = nil, - requestReason: Swift.String? = nil, - reviewerId: Swift.String? = nil, - status: DataZoneClientTypes.SubscriptionRequestStatus? = nil, - subscribedListings: [DataZoneClientTypes.SubscribedListing]? = nil, - subscribedPrincipals: [DataZoneClientTypes.SubscribedPrincipal]? = nil, - updatedAt: Foundation.Date? = nil, - updatedBy: Swift.String? = nil + clientToken: Swift.String? = nil, + domainIdentifier: Swift.String? = nil, + entityIdentifier: Swift.String? = nil, + entityType: DataZoneClientTypes.TargetEntityType? = nil, + policyType: DataZoneClientTypes.ManagedPolicyType? = nil, + principal: DataZoneClientTypes.PolicyGrantPrincipal? = nil ) { - self.createdAt = createdAt - self.createdBy = createdBy - self.decisionComment = decisionComment - self.domainId = domainId - self.id = id - self.requestReason = requestReason - self.reviewerId = reviewerId - self.status = status - self.subscribedListings = subscribedListings - self.subscribedPrincipals = subscribedPrincipals - self.updatedAt = updatedAt - self.updatedBy = updatedBy + self.clientToken = clientToken + self.domainIdentifier = domainIdentifier + self.entityIdentifier = entityIdentifier + self.entityType = entityType + self.policyType = policyType + self.principal = principal } } -extension RejectSubscriptionRequestOutput: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "RejectSubscriptionRequestOutput(createdAt: \(Swift.String(describing: createdAt)), createdBy: \(Swift.String(describing: createdBy)), domainId: \(Swift.String(describing: domainId)), id: \(Swift.String(describing: id)), reviewerId: \(Swift.String(describing: reviewerId)), status: \(Swift.String(describing: status)), subscribedListings: \(Swift.String(describing: subscribedListings)), subscribedPrincipals: \(Swift.String(describing: subscribedPrincipals)), updatedAt: \(Swift.String(describing: updatedAt)), updatedBy: \(Swift.String(describing: updatedBy)), decisionComment: \"CONTENT_REDACTED\", requestReason: \"CONTENT_REDACTED\")"} +public struct RemovePolicyGrantOutput { + + public init() { } } public struct RevokeSubscriptionInput { @@ -13987,2075 +15281,2622 @@ extension DataZoneClientTypes { } -extension DataZoneClientTypes { - /// The details of the results of the SearchTypes action. - public enum SearchTypesResultItem { - /// The asset type included in the results of the SearchTypes action. - case assettypeitem(DataZoneClientTypes.AssetTypeItem) - /// The form type included in the results of the SearchTypes action. - case formtypeitem(DataZoneClientTypes.FormTypeData) - /// The details of a data lineage node type. - case lineagenodetypeitem(DataZoneClientTypes.LineageNodeTypeItem) - case sdkUnknown(Swift.String) - } +extension DataZoneClientTypes { + /// The details of the results of the SearchTypes action. + public enum SearchTypesResultItem { + /// The asset type included in the results of the SearchTypes action. + case assettypeitem(DataZoneClientTypes.AssetTypeItem) + /// The form type included in the results of the SearchTypes action. + case formtypeitem(DataZoneClientTypes.FormTypeData) + /// The details of a data lineage node type. + case lineagenodetypeitem(DataZoneClientTypes.LineageNodeTypeItem) + case sdkUnknown(Swift.String) + } + +} + +public struct SearchTypesOutput { + /// The results of the SearchTypes action. + public var items: [DataZoneClientTypes.SearchTypesResultItem]? + /// When the number of results is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of results, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to SearchTypes to list the next set of results. + public var nextToken: Swift.String? + /// Total number of search results. + public var totalMatchCount: Swift.Int? + + public init( + items: [DataZoneClientTypes.SearchTypesResultItem]? = nil, + nextToken: Swift.String? = nil, + totalMatchCount: Swift.Int? = nil + ) + { + self.items = items + self.nextToken = nextToken + self.totalMatchCount = totalMatchCount + } +} + +extension DataZoneClientTypes { + + public enum UserSearchType: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { + case datazoneIamUser + case datazoneSsoUser + case datazoneUser + case ssoUser + case sdkUnknown(Swift.String) + + public static var allCases: [UserSearchType] { + return [ + .datazoneIamUser, + .datazoneSsoUser, + .datazoneUser, + .ssoUser + ] + } + + public init?(rawValue: Swift.String) { + let value = Self.allCases.first(where: { $0.rawValue == rawValue }) + self = value ?? Self.sdkUnknown(rawValue) + } + + public var rawValue: Swift.String { + switch self { + case .datazoneIamUser: return "DATAZONE_IAM_USER" + case .datazoneSsoUser: return "DATAZONE_SSO_USER" + case .datazoneUser: return "DATAZONE_USER" + case .ssoUser: return "SSO_USER" + case let .sdkUnknown(s): return s + } + } + } +} + +public struct SearchUserProfilesInput { + /// The identifier of the Amazon DataZone domain in which you want to search user profiles. + /// This member is required. + public var domainIdentifier: Swift.String? + /// The maximum number of results to return in a single call to SearchUserProfiles. When the number of results to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to SearchUserProfiles to list the next set of results. + public var maxResults: Swift.Int? + /// When the number of results is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of results, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to SearchUserProfiles to list the next set of results. + public var nextToken: Swift.String? + /// Specifies the text for which to search. + public var searchText: Swift.String? + /// Specifies the user type for the SearchUserProfiles action. + /// This member is required. + public var userType: DataZoneClientTypes.UserSearchType? + + public init( + domainIdentifier: Swift.String? = nil, + maxResults: Swift.Int? = nil, + nextToken: Swift.String? = nil, + searchText: Swift.String? = nil, + userType: DataZoneClientTypes.UserSearchType? = nil + ) + { + self.domainIdentifier = domainIdentifier + self.maxResults = maxResults + self.nextToken = nextToken + self.searchText = searchText + self.userType = userType + } +} + +extension SearchUserProfilesInput: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "SearchUserProfilesInput(domainIdentifier: \(Swift.String(describing: domainIdentifier)), maxResults: \(Swift.String(describing: maxResults)), nextToken: \(Swift.String(describing: nextToken)), userType: \(Swift.String(describing: userType)), searchText: \"CONTENT_REDACTED\")"} +} + +extension DataZoneClientTypes { + /// The details of the user profile. + public struct UserProfileSummary { + /// The details of the user profile. + public var details: DataZoneClientTypes.UserProfileDetails? + /// The ID of the Amazon DataZone domain of the user profile. + public var domainId: Swift.String? + /// The ID of the user profile. + public var id: Swift.String? + /// The status of the user profile. + public var status: DataZoneClientTypes.UserProfileStatus? + /// The type of the user profile. + public var type: DataZoneClientTypes.UserProfileType? + + public init( + details: DataZoneClientTypes.UserProfileDetails? = nil, + domainId: Swift.String? = nil, + id: Swift.String? = nil, + status: DataZoneClientTypes.UserProfileStatus? = nil, + type: DataZoneClientTypes.UserProfileType? = nil + ) + { + self.details = details + self.domainId = domainId + self.id = id + self.status = status + self.type = type + } + } + +} + +public struct SearchUserProfilesOutput { + /// The results of the SearchUserProfiles action. + public var items: [DataZoneClientTypes.UserProfileSummary]? + /// When the number of results is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of results, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to SearchUserProfiles to list the next set of results. + public var nextToken: Swift.String? + + public init( + items: [DataZoneClientTypes.UserProfileSummary]? = nil, + nextToken: Swift.String? = nil + ) + { + self.items = items + self.nextToken = nextToken + } +} + +public struct TagResourceInput { + /// The ARN of the resource to be tagged in Amazon DataZone. + /// This member is required. + public var resourceArn: Swift.String? + /// Specifies the tags for the TagResource action. + /// This member is required. + public var tags: [Swift.String: Swift.String]? + + public init( + resourceArn: Swift.String? = nil, + tags: [Swift.String: Swift.String]? = nil + ) + { + self.resourceArn = resourceArn + self.tags = tags + } +} + +public struct TagResourceOutput { + + public init() { } +} + +/// You do not have permission to perform this action. +public struct UnauthorizedException: ClientRuntime.ModeledError, AWSClientRuntime.AWSServiceError, ClientRuntime.HTTPError, Swift.Error { + + public struct Properties { + /// This member is required. + public internal(set) var message: Swift.String? = nil + } + + public internal(set) var properties = Properties() + public static var typeName: Swift.String { "UnauthorizedException" } + public static var fault: ClientRuntime.ErrorFault { .client } + public static var isRetryable: Swift.Bool { false } + public static var isThrottling: Swift.Bool { false } + public internal(set) var httpResponse = SmithyHTTPAPI.HTTPResponse() + public internal(set) var message: Swift.String? + public internal(set) var requestID: Swift.String? + + public init( + message: Swift.String? = nil + ) + { + self.properties.message = message + } +} + +public struct UntagResourceInput { + /// The ARN of the resource to be untagged in Amazon DataZone. + /// This member is required. + public var resourceArn: Swift.String? + /// Specifies the tag keys for the UntagResource action. + /// This member is required. + public var tagKeys: [Swift.String]? + + public init( + resourceArn: Swift.String? = nil, + tagKeys: [Swift.String]? = nil + ) + { + self.resourceArn = resourceArn + self.tagKeys = tagKeys + } +} + +public struct UntagResourceOutput { + + public init() { } +} + +public struct UpdateEnvironmentInput { + /// The description to be updated as part of the UpdateEnvironment action. + public var description: Swift.String? + /// The identifier of the domain in which the environment is to be updated. + /// This member is required. + public var domainIdentifier: Swift.String? + /// The glossary terms to be updated as part of the UpdateEnvironment action. + public var glossaryTerms: [Swift.String]? + /// The identifier of the environment that is to be updated. + /// This member is required. + public var identifier: Swift.String? + /// The name to be updated as part of the UpdateEnvironment action. + public var name: Swift.String? + public init( + description: Swift.String? = nil, + domainIdentifier: Swift.String? = nil, + glossaryTerms: [Swift.String]? = nil, + identifier: Swift.String? = nil, + name: Swift.String? = nil + ) + { + self.description = description + self.domainIdentifier = domainIdentifier + self.glossaryTerms = glossaryTerms + self.identifier = identifier + self.name = name + } } -public struct SearchTypesOutput { - /// The results of the SearchTypes action. - public var items: [DataZoneClientTypes.SearchTypesResultItem]? - /// When the number of results is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of results, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to SearchTypes to list the next set of results. - public var nextToken: Swift.String? - /// Total number of search results. - public var totalMatchCount: Swift.Int? +public struct UpdateEnvironmentOutput { + /// The identifier of the Amazon Web Services account in which the environment is to be updated. + public var awsAccountId: Swift.String? + /// The Amazon Web Services Region in which the environment is updated. + public var awsAccountRegion: Swift.String? + /// The timestamp of when the environment was created. + public var createdAt: Foundation.Date? + /// The Amazon DataZone user who created the environment. + /// This member is required. + public var createdBy: Swift.String? + /// The deployment properties to be updated as part of the UpdateEnvironment action. + public var deploymentProperties: DataZoneClientTypes.DeploymentProperties? + /// The description to be updated as part of the UpdateEnvironment action. + public var description: Swift.String? + /// The identifier of the domain in which the environment is to be updated. + /// This member is required. + public var domainId: Swift.String? + /// The environment actions to be updated as part of the UpdateEnvironment action. + public var environmentActions: [DataZoneClientTypes.ConfigurableEnvironmentAction]? + /// The blueprint identifier of the environment. + public var environmentBlueprintId: Swift.String? + /// The profile identifier of the environment. + public var environmentProfileId: Swift.String? + /// The glossary terms to be updated as part of the UpdateEnvironment action. + public var glossaryTerms: [Swift.String]? + /// The identifier of the environment that is to be updated. + public var id: Swift.String? + /// The last deployment of the environment. + public var lastDeployment: DataZoneClientTypes.Deployment? + /// The name to be updated as part of the UpdateEnvironment action. + /// This member is required. + public var name: Swift.String? + /// The project identifier of the environment. + /// This member is required. + public var projectId: Swift.String? + /// The provider identifier of the environment. + /// This member is required. + public var provider: Swift.String? + /// The provisioned resources to be updated as part of the UpdateEnvironment action. + public var provisionedResources: [DataZoneClientTypes.Resource]? + /// The provisioning properties to be updated as part of the UpdateEnvironment action. + public var provisioningProperties: DataZoneClientTypes.ProvisioningProperties? + /// The status to be updated as part of the UpdateEnvironment action. + public var status: DataZoneClientTypes.EnvironmentStatus? + /// The timestamp of when the environment was updated. + public var updatedAt: Foundation.Date? + /// The user parameters to be updated as part of the UpdateEnvironment action. + public var userParameters: [DataZoneClientTypes.CustomParameter]? public init( - items: [DataZoneClientTypes.SearchTypesResultItem]? = nil, - nextToken: Swift.String? = nil, - totalMatchCount: Swift.Int? = nil + awsAccountId: Swift.String? = nil, + awsAccountRegion: Swift.String? = nil, + createdAt: Foundation.Date? = nil, + createdBy: Swift.String? = nil, + deploymentProperties: DataZoneClientTypes.DeploymentProperties? = nil, + description: Swift.String? = nil, + domainId: Swift.String? = nil, + environmentActions: [DataZoneClientTypes.ConfigurableEnvironmentAction]? = nil, + environmentBlueprintId: Swift.String? = nil, + environmentProfileId: Swift.String? = nil, + glossaryTerms: [Swift.String]? = nil, + id: Swift.String? = nil, + lastDeployment: DataZoneClientTypes.Deployment? = nil, + name: Swift.String? = nil, + projectId: Swift.String? = nil, + provider: Swift.String? = nil, + provisionedResources: [DataZoneClientTypes.Resource]? = nil, + provisioningProperties: DataZoneClientTypes.ProvisioningProperties? = nil, + status: DataZoneClientTypes.EnvironmentStatus? = nil, + updatedAt: Foundation.Date? = nil, + userParameters: [DataZoneClientTypes.CustomParameter]? = nil ) { - self.items = items - self.nextToken = nextToken - self.totalMatchCount = totalMatchCount + self.awsAccountId = awsAccountId + self.awsAccountRegion = awsAccountRegion + self.createdAt = createdAt + self.createdBy = createdBy + self.deploymentProperties = deploymentProperties + self.description = description + self.domainId = domainId + self.environmentActions = environmentActions + self.environmentBlueprintId = environmentBlueprintId + self.environmentProfileId = environmentProfileId + self.glossaryTerms = glossaryTerms + self.id = id + self.lastDeployment = lastDeployment + self.name = name + self.projectId = projectId + self.provider = provider + self.provisionedResources = provisionedResources + self.provisioningProperties = provisioningProperties + self.status = status + self.updatedAt = updatedAt + self.userParameters = userParameters } } -extension DataZoneClientTypes { +extension UpdateEnvironmentOutput: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "UpdateEnvironmentOutput(awsAccountId: \(Swift.String(describing: awsAccountId)), awsAccountRegion: \(Swift.String(describing: awsAccountRegion)), createdAt: \(Swift.String(describing: createdAt)), createdBy: \(Swift.String(describing: createdBy)), deploymentProperties: \(Swift.String(describing: deploymentProperties)), domainId: \(Swift.String(describing: domainId)), environmentActions: \(Swift.String(describing: environmentActions)), environmentBlueprintId: \(Swift.String(describing: environmentBlueprintId)), environmentProfileId: \(Swift.String(describing: environmentProfileId)), glossaryTerms: \(Swift.String(describing: glossaryTerms)), id: \(Swift.String(describing: id)), lastDeployment: \(Swift.String(describing: lastDeployment)), projectId: \(Swift.String(describing: projectId)), provider: \(Swift.String(describing: provider)), provisionedResources: \(Swift.String(describing: provisionedResources)), provisioningProperties: \(Swift.String(describing: provisioningProperties)), status: \(Swift.String(describing: status)), updatedAt: \(Swift.String(describing: updatedAt)), userParameters: \(Swift.String(describing: userParameters)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} +} - public enum UserSearchType: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case datazoneIamUser - case datazoneSsoUser - case datazoneUser - case ssoUser - case sdkUnknown(Swift.String) +public struct UpdateEnvironmentActionInput { + /// The description of the environment action. + public var description: Swift.String? + /// The domain ID of the environment action. + /// This member is required. + public var domainIdentifier: Swift.String? + /// The environment ID of the environment action. + /// This member is required. + public var environmentIdentifier: Swift.String? + /// The ID of the environment action. + /// This member is required. + public var identifier: Swift.String? + /// The name of the environment action. + public var name: Swift.String? + /// The parameters of the environment action. + public var parameters: DataZoneClientTypes.ActionParameters? - public static var allCases: [UserSearchType] { - return [ - .datazoneIamUser, - .datazoneSsoUser, - .datazoneUser, - .ssoUser - ] - } + public init( + description: Swift.String? = nil, + domainIdentifier: Swift.String? = nil, + environmentIdentifier: Swift.String? = nil, + identifier: Swift.String? = nil, + name: Swift.String? = nil, + parameters: DataZoneClientTypes.ActionParameters? = nil + ) + { + self.description = description + self.domainIdentifier = domainIdentifier + self.environmentIdentifier = environmentIdentifier + self.identifier = identifier + self.name = name + self.parameters = parameters + } +} - public init?(rawValue: Swift.String) { - let value = Self.allCases.first(where: { $0.rawValue == rawValue }) - self = value ?? Self.sdkUnknown(rawValue) - } +public struct UpdateEnvironmentActionOutput { + /// The description of the environment action. + public var description: Swift.String? + /// The domain ID of the environment action. + /// This member is required. + public var domainId: Swift.String? + /// The environment ID of the environment action. + /// This member is required. + public var environmentId: Swift.String? + /// The ID of the environment action. + /// This member is required. + public var id: Swift.String? + /// The name of the environment action. + /// This member is required. + public var name: Swift.String? + /// The parameters of the environment action. + /// This member is required. + public var parameters: DataZoneClientTypes.ActionParameters? - public var rawValue: Swift.String { - switch self { - case .datazoneIamUser: return "DATAZONE_IAM_USER" - case .datazoneSsoUser: return "DATAZONE_SSO_USER" - case .datazoneUser: return "DATAZONE_USER" - case .ssoUser: return "SSO_USER" - case let .sdkUnknown(s): return s - } - } + public init( + description: Swift.String? = nil, + domainId: Swift.String? = nil, + environmentId: Swift.String? = nil, + id: Swift.String? = nil, + name: Swift.String? = nil, + parameters: DataZoneClientTypes.ActionParameters? = nil + ) + { + self.description = description + self.domainId = domainId + self.environmentId = environmentId + self.id = id + self.name = name + self.parameters = parameters } } -public struct SearchUserProfilesInput { - /// The identifier of the Amazon DataZone domain in which you want to search user profiles. +public struct UpdateEnvironmentProfileInput { + /// The Amazon Web Services account in which a specified environment profile is to be udpated. + public var awsAccountId: Swift.String? + /// The Amazon Web Services Region in which a specified environment profile is to be updated. + public var awsAccountRegion: Swift.String? + /// The description to be updated as part of the UpdateEnvironmentProfile action. + public var description: Swift.String? + /// The identifier of the Amazon DataZone domain in which an environment profile is to be updated. /// This member is required. public var domainIdentifier: Swift.String? - /// The maximum number of results to return in a single call to SearchUserProfiles. When the number of results to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to SearchUserProfiles to list the next set of results. - public var maxResults: Swift.Int? - /// When the number of results is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of results, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to SearchUserProfiles to list the next set of results. - public var nextToken: Swift.String? - /// Specifies the text for which to search. - public var searchText: Swift.String? - /// Specifies the user type for the SearchUserProfiles action. + /// The identifier of the environment profile that is to be updated. /// This member is required. - public var userType: DataZoneClientTypes.UserSearchType? + public var identifier: Swift.String? + /// The name to be updated as part of the UpdateEnvironmentProfile action. + public var name: Swift.String? + /// The user parameters to be updated as part of the UpdateEnvironmentProfile action. + public var userParameters: [DataZoneClientTypes.EnvironmentParameter]? public init( + awsAccountId: Swift.String? = nil, + awsAccountRegion: Swift.String? = nil, + description: Swift.String? = nil, domainIdentifier: Swift.String? = nil, - maxResults: Swift.Int? = nil, - nextToken: Swift.String? = nil, - searchText: Swift.String? = nil, - userType: DataZoneClientTypes.UserSearchType? = nil + identifier: Swift.String? = nil, + name: Swift.String? = nil, + userParameters: [DataZoneClientTypes.EnvironmentParameter]? = nil ) { + self.awsAccountId = awsAccountId + self.awsAccountRegion = awsAccountRegion + self.description = description self.domainIdentifier = domainIdentifier - self.maxResults = maxResults - self.nextToken = nextToken - self.searchText = searchText - self.userType = userType + self.identifier = identifier + self.name = name + self.userParameters = userParameters } } -extension SearchUserProfilesInput: Swift.CustomDebugStringConvertible { +extension UpdateEnvironmentProfileInput: Swift.CustomDebugStringConvertible { public var debugDescription: Swift.String { - "SearchUserProfilesInput(domainIdentifier: \(Swift.String(describing: domainIdentifier)), maxResults: \(Swift.String(describing: maxResults)), nextToken: \(Swift.String(describing: nextToken)), userType: \(Swift.String(describing: userType)), searchText: \"CONTENT_REDACTED\")"} + "UpdateEnvironmentProfileInput(awsAccountId: \(Swift.String(describing: awsAccountId)), awsAccountRegion: \(Swift.String(describing: awsAccountRegion)), description: \(Swift.String(describing: description)), domainIdentifier: \(Swift.String(describing: domainIdentifier)), identifier: \(Swift.String(describing: identifier)), userParameters: \(Swift.String(describing: userParameters)), name: \"CONTENT_REDACTED\")"} } -extension DataZoneClientTypes { - /// The details of the user profile. - public struct UserProfileSummary { - /// The details of the user profile. - public var details: DataZoneClientTypes.UserProfileDetails? - /// The ID of the Amazon DataZone domain of the user profile. - public var domainId: Swift.String? - /// The ID of the user profile. - public var id: Swift.String? - /// The status of the user profile. - public var status: DataZoneClientTypes.UserProfileStatus? - /// The type of the user profile. - public var type: DataZoneClientTypes.UserProfileType? +public struct UpdateEnvironmentProfileOutput { + /// The Amazon Web Services account in which a specified environment profile is to be udpated. + public var awsAccountId: Swift.String? + /// The Amazon Web Services Region in which a specified environment profile is to be updated. + public var awsAccountRegion: Swift.String? + /// The timestamp of when the environment profile was created. + public var createdAt: Foundation.Date? + /// The Amazon DataZone user who created the environment profile. + /// This member is required. + public var createdBy: Swift.String? + /// The description to be updated as part of the UpdateEnvironmentProfile action. + public var description: Swift.String? + /// The identifier of the Amazon DataZone domain in which the environment profile is to be updated. + /// This member is required. + public var domainId: Swift.String? + /// The identifier of the blueprint of the environment profile that is to be updated. + /// This member is required. + public var environmentBlueprintId: Swift.String? + /// The identifier of the environment profile that is to be udpated. + /// This member is required. + public var id: Swift.String? + /// The name to be updated as part of the UpdateEnvironmentProfile action. + /// This member is required. + public var name: Swift.String? + /// The identifier of the project of the environment profile that is to be updated. + public var projectId: Swift.String? + /// The timestamp of when the environment profile was updated. + public var updatedAt: Foundation.Date? + /// The user parameters to be updated as part of the UpdateEnvironmentProfile action. + public var userParameters: [DataZoneClientTypes.CustomParameter]? - public init( - details: DataZoneClientTypes.UserProfileDetails? = nil, - domainId: Swift.String? = nil, - id: Swift.String? = nil, - status: DataZoneClientTypes.UserProfileStatus? = nil, - type: DataZoneClientTypes.UserProfileType? = nil - ) - { - self.details = details - self.domainId = domainId - self.id = id - self.status = status - self.type = type - } + public init( + awsAccountId: Swift.String? = nil, + awsAccountRegion: Swift.String? = nil, + createdAt: Foundation.Date? = nil, + createdBy: Swift.String? = nil, + description: Swift.String? = nil, + domainId: Swift.String? = nil, + environmentBlueprintId: Swift.String? = nil, + id: Swift.String? = nil, + name: Swift.String? = nil, + projectId: Swift.String? = nil, + updatedAt: Foundation.Date? = nil, + userParameters: [DataZoneClientTypes.CustomParameter]? = nil + ) + { + self.awsAccountId = awsAccountId + self.awsAccountRegion = awsAccountRegion + self.createdAt = createdAt + self.createdBy = createdBy + self.description = description + self.domainId = domainId + self.environmentBlueprintId = environmentBlueprintId + self.id = id + self.name = name + self.projectId = projectId + self.updatedAt = updatedAt + self.userParameters = userParameters } +} +extension UpdateEnvironmentProfileOutput: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "UpdateEnvironmentProfileOutput(awsAccountId: \(Swift.String(describing: awsAccountId)), awsAccountRegion: \(Swift.String(describing: awsAccountRegion)), createdAt: \(Swift.String(describing: createdAt)), createdBy: \(Swift.String(describing: createdBy)), domainId: \(Swift.String(describing: domainId)), environmentBlueprintId: \(Swift.String(describing: environmentBlueprintId)), id: \(Swift.String(describing: id)), projectId: \(Swift.String(describing: projectId)), updatedAt: \(Swift.String(describing: updatedAt)), userParameters: \(Swift.String(describing: userParameters)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} } -public struct SearchUserProfilesOutput { - /// The results of the SearchUserProfiles action. - public var items: [DataZoneClientTypes.UserProfileSummary]? - /// When the number of results is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of results, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to SearchUserProfiles to list the next set of results. - public var nextToken: Swift.String? +public struct UpdateGroupProfileInput { + /// The identifier of the Amazon DataZone domain in which a group profile is updated. + /// This member is required. + public var domainIdentifier: Swift.String? + /// The identifier of the group profile that is updated. + /// This member is required. + public var groupIdentifier: Swift.String? + /// The status of the group profile that is updated. + /// This member is required. + public var status: DataZoneClientTypes.GroupProfileStatus? public init( - items: [DataZoneClientTypes.UserProfileSummary]? = nil, - nextToken: Swift.String? = nil + domainIdentifier: Swift.String? = nil, + groupIdentifier: Swift.String? = nil, + status: DataZoneClientTypes.GroupProfileStatus? = nil ) { - self.items = items - self.nextToken = nextToken + self.domainIdentifier = domainIdentifier + self.groupIdentifier = groupIdentifier + self.status = status } } -public struct TagResourceInput { - /// The ARN of the resource to be tagged in Amazon DataZone. - /// This member is required. - public var resourceArn: Swift.String? - /// Specifies the tags for the TagResource action. - /// This member is required. - public var tags: [Swift.String: Swift.String]? +public struct UpdateGroupProfileOutput { + /// The identifier of the Amazon DataZone domain in which a group profile is updated. + public var domainId: Swift.String? + /// The name of the group profile that is updated. + public var groupName: Swift.String? + /// The identifier of the group profile that is updated. + public var id: Swift.String? + /// The status of the group profile that is updated. + public var status: DataZoneClientTypes.GroupProfileStatus? public init( - resourceArn: Swift.String? = nil, - tags: [Swift.String: Swift.String]? = nil + domainId: Swift.String? = nil, + groupName: Swift.String? = nil, + id: Swift.String? = nil, + status: DataZoneClientTypes.GroupProfileStatus? = nil ) { - self.resourceArn = resourceArn - self.tags = tags + self.domainId = domainId + self.groupName = groupName + self.id = id + self.status = status } } -public struct TagResourceOutput { - - public init() { } +extension UpdateGroupProfileOutput: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "UpdateGroupProfileOutput(domainId: \(Swift.String(describing: domainId)), id: \(Swift.String(describing: id)), status: \(Swift.String(describing: status)), groupName: \"CONTENT_REDACTED\")"} } -/// You do not have permission to perform this action. -public struct UnauthorizedException: ClientRuntime.ModeledError, AWSClientRuntime.AWSServiceError, ClientRuntime.HTTPError, Swift.Error { - - public struct Properties { - /// This member is required. - public internal(set) var message: Swift.String? = nil - } - - public internal(set) var properties = Properties() - public static var typeName: Swift.String { "UnauthorizedException" } - public static var fault: ClientRuntime.ErrorFault { .client } - public static var isRetryable: Swift.Bool { false } - public static var isThrottling: Swift.Bool { false } - public internal(set) var httpResponse = SmithyHTTPAPI.HTTPResponse() - public internal(set) var message: Swift.String? - public internal(set) var requestID: Swift.String? +public struct UpdateProjectInput { + /// The description to be updated as part of the UpdateProject action. + public var description: Swift.String? + /// The ID of the Amazon DataZone domain where a project is being updated. + /// This member is required. + public var domainIdentifier: Swift.String? + /// The glossary terms to be updated as part of the UpdateProject action. + public var glossaryTerms: [Swift.String]? + /// The identifier of the project that is to be updated. + /// This member is required. + public var identifier: Swift.String? + /// The name to be updated as part of the UpdateProject action. + public var name: Swift.String? public init( - message: Swift.String? = nil + description: Swift.String? = nil, + domainIdentifier: Swift.String? = nil, + glossaryTerms: [Swift.String]? = nil, + identifier: Swift.String? = nil, + name: Swift.String? = nil ) { - self.properties.message = message + self.description = description + self.domainIdentifier = domainIdentifier + self.glossaryTerms = glossaryTerms + self.identifier = identifier + self.name = name } } -public struct UntagResourceInput { - /// The ARN of the resource to be untagged in Amazon DataZone. +extension UpdateProjectInput: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "UpdateProjectInput(domainIdentifier: \(Swift.String(describing: domainIdentifier)), glossaryTerms: \(Swift.String(describing: glossaryTerms)), identifier: \(Swift.String(describing: identifier)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} +} + +public struct UpdateProjectOutput { + /// The timestamp of when the project was created. + public var createdAt: Foundation.Date? + /// The Amazon DataZone user who created the project. /// This member is required. - public var resourceArn: Swift.String? - /// Specifies the tag keys for the UntagResource action. + public var createdBy: Swift.String? + /// The description of the project that is to be updated. + public var description: Swift.String? + /// The identifier of the Amazon DataZone domain in which a project is updated. /// This member is required. - public var tagKeys: [Swift.String]? + public var domainId: Swift.String? + /// The ID of the domain unit. + public var domainUnitId: Swift.String? + /// Specifies the error message that is returned if the operation cannot be successfully completed. + public var failureReasons: [DataZoneClientTypes.ProjectDeletionError]? + /// The glossary terms of the project that are to be updated. + public var glossaryTerms: [Swift.String]? + /// The identifier of the project that is to be updated. + /// This member is required. + public var id: Swift.String? + /// The timestamp of when the project was last updated. + public var lastUpdatedAt: Foundation.Date? + /// The name of the project that is to be updated. + /// This member is required. + public var name: Swift.String? + /// The status of the project. + public var projectStatus: DataZoneClientTypes.ProjectStatus? public init( - resourceArn: Swift.String? = nil, - tagKeys: [Swift.String]? = nil + createdAt: Foundation.Date? = nil, + createdBy: Swift.String? = nil, + description: Swift.String? = nil, + domainId: Swift.String? = nil, + domainUnitId: Swift.String? = nil, + failureReasons: [DataZoneClientTypes.ProjectDeletionError]? = nil, + glossaryTerms: [Swift.String]? = nil, + id: Swift.String? = nil, + lastUpdatedAt: Foundation.Date? = nil, + name: Swift.String? = nil, + projectStatus: DataZoneClientTypes.ProjectStatus? = nil ) { - self.resourceArn = resourceArn - self.tagKeys = tagKeys + self.createdAt = createdAt + self.createdBy = createdBy + self.description = description + self.domainId = domainId + self.domainUnitId = domainUnitId + self.failureReasons = failureReasons + self.glossaryTerms = glossaryTerms + self.id = id + self.lastUpdatedAt = lastUpdatedAt + self.name = name + self.projectStatus = projectStatus } } -public struct UntagResourceOutput { - - public init() { } +extension UpdateProjectOutput: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "UpdateProjectOutput(createdAt: \(Swift.String(describing: createdAt)), createdBy: \(Swift.String(describing: createdBy)), domainId: \(Swift.String(describing: domainId)), domainUnitId: \(Swift.String(describing: domainUnitId)), failureReasons: \(Swift.String(describing: failureReasons)), glossaryTerms: \(Swift.String(describing: glossaryTerms)), id: \(Swift.String(describing: id)), lastUpdatedAt: \(Swift.String(describing: lastUpdatedAt)), projectStatus: \(Swift.String(describing: projectStatus)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} } -public struct UpdateEnvironmentInput { - /// The description to be updated as part of the UpdateEnvironment action. - public var description: Swift.String? - /// The identifier of the domain in which the environment is to be updated. +public struct UpdateSubscriptionGrantStatusInput { + /// The identifier of the asset the subscription grant status of which is to be updated. + /// This member is required. + public var assetIdentifier: Swift.String? + /// The identifier of the Amazon DataZone domain in which a subscription grant status is to be updated. /// This member is required. public var domainIdentifier: Swift.String? - /// The glossary terms to be updated as part of the UpdateEnvironment action. - public var glossaryTerms: [Swift.String]? - /// The identifier of the environment that is to be updated. + /// Specifies the error message that is returned if the operation cannot be successfully completed. + public var failureCause: DataZoneClientTypes.FailureCause? + /// The identifier of the subscription grant the status of which is to be updated. /// This member is required. public var identifier: Swift.String? - /// The name to be updated as part of the UpdateEnvironment action. - public var name: Swift.String? + /// The status to be updated as part of the UpdateSubscriptionGrantStatus action. + /// This member is required. + public var status: DataZoneClientTypes.SubscriptionGrantStatus? + /// The target name to be updated as part of the UpdateSubscriptionGrantStatus action. + public var targetName: Swift.String? public init( - description: Swift.String? = nil, + assetIdentifier: Swift.String? = nil, domainIdentifier: Swift.String? = nil, - glossaryTerms: [Swift.String]? = nil, + failureCause: DataZoneClientTypes.FailureCause? = nil, identifier: Swift.String? = nil, - name: Swift.String? = nil + status: DataZoneClientTypes.SubscriptionGrantStatus? = nil, + targetName: Swift.String? = nil ) { - self.description = description + self.assetIdentifier = assetIdentifier self.domainIdentifier = domainIdentifier - self.glossaryTerms = glossaryTerms + self.failureCause = failureCause self.identifier = identifier - self.name = name + self.status = status + self.targetName = targetName } } -public struct UpdateEnvironmentOutput { - /// The identifier of the Amazon Web Services account in which the environment is to be updated. - public var awsAccountId: Swift.String? - /// The Amazon Web Services Region in which the environment is updated. - public var awsAccountRegion: Swift.String? - /// The timestamp of when the environment was created. +public struct UpdateSubscriptionGrantStatusOutput { + /// The details of the asset for which the subscription grant is created. + public var assets: [DataZoneClientTypes.SubscribedAsset]? + /// The timestamp of when the subscription grant status was created. + /// This member is required. public var createdAt: Foundation.Date? - /// The Amazon DataZone user who created the environment. + /// The Amazon DataZone domain user who created the subscription grant status. /// This member is required. public var createdBy: Swift.String? - /// The deployment properties to be updated as part of the UpdateEnvironment action. - public var deploymentProperties: DataZoneClientTypes.DeploymentProperties? - /// The description to be updated as part of the UpdateEnvironment action. - public var description: Swift.String? - /// The identifier of the domain in which the environment is to be updated. + /// The identifier of the Amazon DataZone domain in which a subscription grant status is to be updated. /// This member is required. public var domainId: Swift.String? - /// The environment actions to be updated as part of the UpdateEnvironment action. - public var environmentActions: [DataZoneClientTypes.ConfigurableEnvironmentAction]? - /// The blueprint identifier of the environment. - public var environmentBlueprintId: Swift.String? - /// The profile identifier of the environment. - public var environmentProfileId: Swift.String? - /// The glossary terms to be updated as part of the UpdateEnvironment action. - public var glossaryTerms: [Swift.String]? - /// The identifier of the environment that is to be updated. + /// The granted entity to be updated as part of the UpdateSubscriptionGrantStatus action. + /// This member is required. + public var grantedEntity: DataZoneClientTypes.GrantedEntity? + /// The identifier of the subscription grant. + /// This member is required. public var id: Swift.String? - /// The last deployment of the environment. - public var lastDeployment: DataZoneClientTypes.Deployment? - /// The name to be updated as part of the UpdateEnvironment action. + /// The status to be updated as part of the UpdateSubscriptionGrantStatus action. /// This member is required. - public var name: Swift.String? - /// The project identifier of the environment. + public var status: DataZoneClientTypes.SubscriptionGrantOverallStatus? + /// The identifier of the subscription. + @available(*, deprecated, message: "Multiple subscriptions can exist for a single grant") + public var subscriptionId: Swift.String? + /// The identifier of the subscription target whose subscription grant status is to be updated. /// This member is required. - public var projectId: Swift.String? - /// The provider identifier of the environment. + public var subscriptionTargetId: Swift.String? + /// The timestamp of when the subscription grant status is to be updated. /// This member is required. - public var provider: Swift.String? - /// The provisioned resources to be updated as part of the UpdateEnvironment action. - public var provisionedResources: [DataZoneClientTypes.Resource]? - /// The provisioning properties to be updated as part of the UpdateEnvironment action. - public var provisioningProperties: DataZoneClientTypes.ProvisioningProperties? - /// The status to be updated as part of the UpdateEnvironment action. - public var status: DataZoneClientTypes.EnvironmentStatus? - /// The timestamp of when the environment was updated. public var updatedAt: Foundation.Date? - /// The user parameters to be updated as part of the UpdateEnvironment action. - public var userParameters: [DataZoneClientTypes.CustomParameter]? + /// The Amazon DataZone user who updated the subscription grant status. + public var updatedBy: Swift.String? public init( - awsAccountId: Swift.String? = nil, - awsAccountRegion: Swift.String? = nil, + assets: [DataZoneClientTypes.SubscribedAsset]? = nil, createdAt: Foundation.Date? = nil, createdBy: Swift.String? = nil, - deploymentProperties: DataZoneClientTypes.DeploymentProperties? = nil, - description: Swift.String? = nil, domainId: Swift.String? = nil, - environmentActions: [DataZoneClientTypes.ConfigurableEnvironmentAction]? = nil, - environmentBlueprintId: Swift.String? = nil, - environmentProfileId: Swift.String? = nil, - glossaryTerms: [Swift.String]? = nil, + grantedEntity: DataZoneClientTypes.GrantedEntity? = nil, id: Swift.String? = nil, - lastDeployment: DataZoneClientTypes.Deployment? = nil, - name: Swift.String? = nil, - projectId: Swift.String? = nil, - provider: Swift.String? = nil, - provisionedResources: [DataZoneClientTypes.Resource]? = nil, - provisioningProperties: DataZoneClientTypes.ProvisioningProperties? = nil, - status: DataZoneClientTypes.EnvironmentStatus? = nil, + status: DataZoneClientTypes.SubscriptionGrantOverallStatus? = nil, + subscriptionId: Swift.String? = nil, + subscriptionTargetId: Swift.String? = nil, updatedAt: Foundation.Date? = nil, - userParameters: [DataZoneClientTypes.CustomParameter]? = nil + updatedBy: Swift.String? = nil ) { - self.awsAccountId = awsAccountId - self.awsAccountRegion = awsAccountRegion + self.assets = assets self.createdAt = createdAt self.createdBy = createdBy - self.deploymentProperties = deploymentProperties - self.description = description self.domainId = domainId - self.environmentActions = environmentActions - self.environmentBlueprintId = environmentBlueprintId - self.environmentProfileId = environmentProfileId - self.glossaryTerms = glossaryTerms + self.grantedEntity = grantedEntity self.id = id - self.lastDeployment = lastDeployment - self.name = name - self.projectId = projectId - self.provider = provider - self.provisionedResources = provisionedResources - self.provisioningProperties = provisioningProperties self.status = status + self.subscriptionId = subscriptionId + self.subscriptionTargetId = subscriptionTargetId self.updatedAt = updatedAt - self.userParameters = userParameters + self.updatedBy = updatedBy } } -extension UpdateEnvironmentOutput: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "UpdateEnvironmentOutput(awsAccountId: \(Swift.String(describing: awsAccountId)), awsAccountRegion: \(Swift.String(describing: awsAccountRegion)), createdAt: \(Swift.String(describing: createdAt)), createdBy: \(Swift.String(describing: createdBy)), deploymentProperties: \(Swift.String(describing: deploymentProperties)), domainId: \(Swift.String(describing: domainId)), environmentActions: \(Swift.String(describing: environmentActions)), environmentBlueprintId: \(Swift.String(describing: environmentBlueprintId)), environmentProfileId: \(Swift.String(describing: environmentProfileId)), glossaryTerms: \(Swift.String(describing: glossaryTerms)), id: \(Swift.String(describing: id)), lastDeployment: \(Swift.String(describing: lastDeployment)), projectId: \(Swift.String(describing: projectId)), provider: \(Swift.String(describing: provider)), provisionedResources: \(Swift.String(describing: provisionedResources)), provisioningProperties: \(Swift.String(describing: provisioningProperties)), status: \(Swift.String(describing: status)), updatedAt: \(Swift.String(describing: updatedAt)), userParameters: \(Swift.String(describing: userParameters)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} -} - -public struct UpdateEnvironmentActionInput { - /// The description of the environment action. - public var description: Swift.String? - /// The domain ID of the environment action. +public struct UpdateSubscriptionRequestInput { + /// The identifier of the Amazon DataZone domain in which a subscription request is to be updated. /// This member is required. public var domainIdentifier: Swift.String? - /// The environment ID of the environment action. - /// This member is required. - public var environmentIdentifier: Swift.String? - /// The ID of the environment action. + /// The identifier of the subscription request that is to be updated. /// This member is required. public var identifier: Swift.String? - /// The name of the environment action. - public var name: Swift.String? - /// The parameters of the environment action. - public var parameters: DataZoneClientTypes.ActionParameters? + /// The reason for the UpdateSubscriptionRequest action. + /// This member is required. + public var requestReason: Swift.String? public init( - description: Swift.String? = nil, domainIdentifier: Swift.String? = nil, - environmentIdentifier: Swift.String? = nil, identifier: Swift.String? = nil, - name: Swift.String? = nil, - parameters: DataZoneClientTypes.ActionParameters? = nil + requestReason: Swift.String? = nil ) { - self.description = description self.domainIdentifier = domainIdentifier - self.environmentIdentifier = environmentIdentifier self.identifier = identifier - self.name = name - self.parameters = parameters + self.requestReason = requestReason } } -public struct UpdateEnvironmentActionOutput { - /// The description of the environment action. - public var description: Swift.String? - /// The domain ID of the environment action. +extension UpdateSubscriptionRequestInput: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "UpdateSubscriptionRequestInput(domainIdentifier: \(Swift.String(describing: domainIdentifier)), identifier: \(Swift.String(describing: identifier)), requestReason: \"CONTENT_REDACTED\")"} +} + +public struct UpdateSubscriptionRequestOutput { + /// The timestamp of when the subscription request was created. /// This member is required. - public var domainId: Swift.String? - /// The environment ID of the environment action. + public var createdAt: Foundation.Date? + /// The Amazon DataZone user who created the subscription request. /// This member is required. - public var environmentId: Swift.String? - /// The ID of the environment action. + public var createdBy: Swift.String? + /// The decision comment of the UpdateSubscriptionRequest action. + public var decisionComment: Swift.String? + /// The identifier of the Amazon DataZone domain in which a subscription request is to be updated. + /// This member is required. + public var domainId: Swift.String? + /// The identifier of the subscription request that is to be updated. /// This member is required. public var id: Swift.String? - /// The name of the environment action. + /// The reason for the UpdateSubscriptionRequest action. /// This member is required. - public var name: Swift.String? - /// The parameters of the environment action. + public var requestReason: Swift.String? + /// The identifier of the Amazon DataZone user who reviews the subscription request. + public var reviewerId: Swift.String? + /// The status of the subscription request. /// This member is required. - public var parameters: DataZoneClientTypes.ActionParameters? + public var status: DataZoneClientTypes.SubscriptionRequestStatus? + /// The subscribed listings of the subscription request. + /// This member is required. + public var subscribedListings: [DataZoneClientTypes.SubscribedListing]? + /// The subscribed principals of the subscription request. + /// This member is required. + public var subscribedPrincipals: [DataZoneClientTypes.SubscribedPrincipal]? + /// The timestamp of when the subscription request was updated. + /// This member is required. + public var updatedAt: Foundation.Date? + /// The Amazon DataZone user who updated the subscription request. + public var updatedBy: Swift.String? public init( - description: Swift.String? = nil, + createdAt: Foundation.Date? = nil, + createdBy: Swift.String? = nil, + decisionComment: Swift.String? = nil, domainId: Swift.String? = nil, - environmentId: Swift.String? = nil, - id: Swift.String? = nil, - name: Swift.String? = nil, - parameters: DataZoneClientTypes.ActionParameters? = nil + id: Swift.String? = nil, + requestReason: Swift.String? = nil, + reviewerId: Swift.String? = nil, + status: DataZoneClientTypes.SubscriptionRequestStatus? = nil, + subscribedListings: [DataZoneClientTypes.SubscribedListing]? = nil, + subscribedPrincipals: [DataZoneClientTypes.SubscribedPrincipal]? = nil, + updatedAt: Foundation.Date? = nil, + updatedBy: Swift.String? = nil ) { - self.description = description + self.createdAt = createdAt + self.createdBy = createdBy + self.decisionComment = decisionComment self.domainId = domainId - self.environmentId = environmentId self.id = id - self.name = name - self.parameters = parameters + self.requestReason = requestReason + self.reviewerId = reviewerId + self.status = status + self.subscribedListings = subscribedListings + self.subscribedPrincipals = subscribedPrincipals + self.updatedAt = updatedAt + self.updatedBy = updatedBy } } -public struct UpdateEnvironmentProfileInput { - /// The Amazon Web Services account in which a specified environment profile is to be udpated. - public var awsAccountId: Swift.String? - /// The Amazon Web Services Region in which a specified environment profile is to be updated. - public var awsAccountRegion: Swift.String? - /// The description to be updated as part of the UpdateEnvironmentProfile action. - public var description: Swift.String? - /// The identifier of the Amazon DataZone domain in which an environment profile is to be updated. +extension UpdateSubscriptionRequestOutput: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "UpdateSubscriptionRequestOutput(createdAt: \(Swift.String(describing: createdAt)), createdBy: \(Swift.String(describing: createdBy)), domainId: \(Swift.String(describing: domainId)), id: \(Swift.String(describing: id)), reviewerId: \(Swift.String(describing: reviewerId)), status: \(Swift.String(describing: status)), subscribedListings: \(Swift.String(describing: subscribedListings)), subscribedPrincipals: \(Swift.String(describing: subscribedPrincipals)), updatedAt: \(Swift.String(describing: updatedAt)), updatedBy: \(Swift.String(describing: updatedBy)), decisionComment: \"CONTENT_REDACTED\", requestReason: \"CONTENT_REDACTED\")"} +} + +public struct UpdateSubscriptionTargetInput { + /// The applicable asset types to be updated as part of the UpdateSubscriptionTarget action. + public var applicableAssetTypes: [Swift.String]? + /// The authorized principals to be updated as part of the UpdateSubscriptionTarget action. + public var authorizedPrincipals: [Swift.String]? + /// The identifier of the Amazon DataZone domain in which a subscription target is to be updated. /// This member is required. public var domainIdentifier: Swift.String? - /// The identifier of the environment profile that is to be updated. + /// The identifier of the environment in which a subscription target is to be updated. + /// This member is required. + public var environmentIdentifier: Swift.String? + /// Identifier of the subscription target that is to be updated. /// This member is required. public var identifier: Swift.String? - /// The name to be updated as part of the UpdateEnvironmentProfile action. + /// The manage access role to be updated as part of the UpdateSubscriptionTarget action. + public var manageAccessRole: Swift.String? + /// The name to be updated as part of the UpdateSubscriptionTarget action. public var name: Swift.String? - /// The user parameters to be updated as part of the UpdateEnvironmentProfile action. - public var userParameters: [DataZoneClientTypes.EnvironmentParameter]? + /// The provider to be updated as part of the UpdateSubscriptionTarget action. + public var provider: Swift.String? + /// The configuration to be updated as part of the UpdateSubscriptionTarget action. + public var subscriptionTargetConfig: [DataZoneClientTypes.SubscriptionTargetForm]? public init( - awsAccountId: Swift.String? = nil, - awsAccountRegion: Swift.String? = nil, - description: Swift.String? = nil, + applicableAssetTypes: [Swift.String]? = nil, + authorizedPrincipals: [Swift.String]? = nil, domainIdentifier: Swift.String? = nil, + environmentIdentifier: Swift.String? = nil, identifier: Swift.String? = nil, + manageAccessRole: Swift.String? = nil, name: Swift.String? = nil, - userParameters: [DataZoneClientTypes.EnvironmentParameter]? = nil + provider: Swift.String? = nil, + subscriptionTargetConfig: [DataZoneClientTypes.SubscriptionTargetForm]? = nil ) { - self.awsAccountId = awsAccountId - self.awsAccountRegion = awsAccountRegion - self.description = description + self.applicableAssetTypes = applicableAssetTypes + self.authorizedPrincipals = authorizedPrincipals self.domainIdentifier = domainIdentifier + self.environmentIdentifier = environmentIdentifier self.identifier = identifier + self.manageAccessRole = manageAccessRole self.name = name - self.userParameters = userParameters + self.provider = provider + self.subscriptionTargetConfig = subscriptionTargetConfig } } -extension UpdateEnvironmentProfileInput: Swift.CustomDebugStringConvertible { +extension UpdateSubscriptionTargetInput: Swift.CustomDebugStringConvertible { public var debugDescription: Swift.String { - "UpdateEnvironmentProfileInput(awsAccountId: \(Swift.String(describing: awsAccountId)), awsAccountRegion: \(Swift.String(describing: awsAccountRegion)), description: \(Swift.String(describing: description)), domainIdentifier: \(Swift.String(describing: domainIdentifier)), identifier: \(Swift.String(describing: identifier)), userParameters: \(Swift.String(describing: userParameters)), name: \"CONTENT_REDACTED\")"} + "UpdateSubscriptionTargetInput(applicableAssetTypes: \(Swift.String(describing: applicableAssetTypes)), authorizedPrincipals: \(Swift.String(describing: authorizedPrincipals)), domainIdentifier: \(Swift.String(describing: domainIdentifier)), environmentIdentifier: \(Swift.String(describing: environmentIdentifier)), identifier: \(Swift.String(describing: identifier)), manageAccessRole: \(Swift.String(describing: manageAccessRole)), provider: \(Swift.String(describing: provider)), subscriptionTargetConfig: \(Swift.String(describing: subscriptionTargetConfig)), name: \"CONTENT_REDACTED\")"} } -public struct UpdateEnvironmentProfileOutput { - /// The Amazon Web Services account in which a specified environment profile is to be udpated. - public var awsAccountId: Swift.String? - /// The Amazon Web Services Region in which a specified environment profile is to be updated. - public var awsAccountRegion: Swift.String? - /// The timestamp of when the environment profile was created. +public struct UpdateSubscriptionTargetOutput { + /// The applicable asset types to be updated as part of the UpdateSubscriptionTarget action. + /// This member is required. + public var applicableAssetTypes: [Swift.String]? + /// The authorized principals to be updated as part of the UpdateSubscriptionTarget action. + /// This member is required. + public var authorizedPrincipals: [Swift.String]? + /// The timestamp of when a subscription target was created. + /// This member is required. public var createdAt: Foundation.Date? - /// The Amazon DataZone user who created the environment profile. + /// The Amazon DataZone user who created the subscription target. /// This member is required. public var createdBy: Swift.String? - /// The description to be updated as part of the UpdateEnvironmentProfile action. - public var description: Swift.String? - /// The identifier of the Amazon DataZone domain in which the environment profile is to be updated. + /// The identifier of the Amazon DataZone domain in which a subscription target is to be updated. /// This member is required. public var domainId: Swift.String? - /// The identifier of the blueprint of the environment profile that is to be updated. + /// The identifier of the environment in which a subscription target is to be updated. /// This member is required. - public var environmentBlueprintId: Swift.String? - /// The identifier of the environment profile that is to be udpated. + public var environmentId: Swift.String? + /// Identifier of the subscription target that is to be updated. /// This member is required. public var id: Swift.String? - /// The name to be updated as part of the UpdateEnvironmentProfile action. + /// The manage access role to be updated as part of the UpdateSubscriptionTarget action. + /// This member is required. + public var manageAccessRole: Swift.String? + /// The name to be updated as part of the UpdateSubscriptionTarget action. /// This member is required. public var name: Swift.String? - /// The identifier of the project of the environment profile that is to be updated. + /// The identifier of the project in which a subscription target is to be updated. + /// This member is required. public var projectId: Swift.String? - /// The timestamp of when the environment profile was updated. + /// The provider to be updated as part of the UpdateSubscriptionTarget action. + /// This member is required. + public var provider: Swift.String? + /// The configuration to be updated as part of the UpdateSubscriptionTarget action. + /// This member is required. + public var subscriptionTargetConfig: [DataZoneClientTypes.SubscriptionTargetForm]? + /// The type to be updated as part of the UpdateSubscriptionTarget action. + /// This member is required. + public var type: Swift.String? + /// The timestamp of when the subscription target was updated. public var updatedAt: Foundation.Date? - /// The user parameters to be updated as part of the UpdateEnvironmentProfile action. - public var userParameters: [DataZoneClientTypes.CustomParameter]? + /// The Amazon DataZone user who updated the subscription target. + public var updatedBy: Swift.String? public init( - awsAccountId: Swift.String? = nil, - awsAccountRegion: Swift.String? = nil, + applicableAssetTypes: [Swift.String]? = nil, + authorizedPrincipals: [Swift.String]? = nil, createdAt: Foundation.Date? = nil, createdBy: Swift.String? = nil, - description: Swift.String? = nil, domainId: Swift.String? = nil, - environmentBlueprintId: Swift.String? = nil, + environmentId: Swift.String? = nil, id: Swift.String? = nil, + manageAccessRole: Swift.String? = nil, name: Swift.String? = nil, projectId: Swift.String? = nil, + provider: Swift.String? = nil, + subscriptionTargetConfig: [DataZoneClientTypes.SubscriptionTargetForm]? = nil, + type: Swift.String? = nil, updatedAt: Foundation.Date? = nil, - userParameters: [DataZoneClientTypes.CustomParameter]? = nil + updatedBy: Swift.String? = nil ) { - self.awsAccountId = awsAccountId - self.awsAccountRegion = awsAccountRegion + self.applicableAssetTypes = applicableAssetTypes + self.authorizedPrincipals = authorizedPrincipals self.createdAt = createdAt self.createdBy = createdBy - self.description = description self.domainId = domainId - self.environmentBlueprintId = environmentBlueprintId + self.environmentId = environmentId self.id = id + self.manageAccessRole = manageAccessRole self.name = name self.projectId = projectId + self.provider = provider + self.subscriptionTargetConfig = subscriptionTargetConfig + self.type = type self.updatedAt = updatedAt - self.userParameters = userParameters + self.updatedBy = updatedBy } } -extension UpdateEnvironmentProfileOutput: Swift.CustomDebugStringConvertible { +extension UpdateSubscriptionTargetOutput: Swift.CustomDebugStringConvertible { public var debugDescription: Swift.String { - "UpdateEnvironmentProfileOutput(awsAccountId: \(Swift.String(describing: awsAccountId)), awsAccountRegion: \(Swift.String(describing: awsAccountRegion)), createdAt: \(Swift.String(describing: createdAt)), createdBy: \(Swift.String(describing: createdBy)), domainId: \(Swift.String(describing: domainId)), environmentBlueprintId: \(Swift.String(describing: environmentBlueprintId)), id: \(Swift.String(describing: id)), projectId: \(Swift.String(describing: projectId)), updatedAt: \(Swift.String(describing: updatedAt)), userParameters: \(Swift.String(describing: userParameters)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} + "UpdateSubscriptionTargetOutput(applicableAssetTypes: \(Swift.String(describing: applicableAssetTypes)), authorizedPrincipals: \(Swift.String(describing: authorizedPrincipals)), createdAt: \(Swift.String(describing: createdAt)), createdBy: \(Swift.String(describing: createdBy)), domainId: \(Swift.String(describing: domainId)), environmentId: \(Swift.String(describing: environmentId)), id: \(Swift.String(describing: id)), manageAccessRole: \(Swift.String(describing: manageAccessRole)), projectId: \(Swift.String(describing: projectId)), provider: \(Swift.String(describing: provider)), subscriptionTargetConfig: \(Swift.String(describing: subscriptionTargetConfig)), type: \(Swift.String(describing: type)), updatedAt: \(Swift.String(describing: updatedAt)), updatedBy: \(Swift.String(describing: updatedBy)), name: \"CONTENT_REDACTED\")"} } -public struct UpdateGroupProfileInput { - /// The identifier of the Amazon DataZone domain in which a group profile is updated. +public struct UpdateUserProfileInput { + /// The identifier of the Amazon DataZone domain in which a user profile is updated. /// This member is required. public var domainIdentifier: Swift.String? - /// The identifier of the group profile that is updated. + /// The status of the user profile that are to be updated. /// This member is required. - public var groupIdentifier: Swift.String? - /// The status of the group profile that is updated. + public var status: DataZoneClientTypes.UserProfileStatus? + /// The type of the user profile that are to be updated. + public var type: DataZoneClientTypes.UserProfileType? + /// The identifier of the user whose user profile is to be updated. /// This member is required. - public var status: DataZoneClientTypes.GroupProfileStatus? + public var userIdentifier: Swift.String? public init( domainIdentifier: Swift.String? = nil, - groupIdentifier: Swift.String? = nil, - status: DataZoneClientTypes.GroupProfileStatus? = nil + status: DataZoneClientTypes.UserProfileStatus? = nil, + type: DataZoneClientTypes.UserProfileType? = nil, + userIdentifier: Swift.String? = nil ) { self.domainIdentifier = domainIdentifier - self.groupIdentifier = groupIdentifier self.status = status + self.type = type + self.userIdentifier = userIdentifier + } +} + +public struct UpdateUserProfileOutput { + /// The details of the user profile in Amazon DataZone. + public var details: DataZoneClientTypes.UserProfileDetails? + /// The identifier of the Amazon DataZone domain in which a user profile is updated. + public var domainId: Swift.String? + /// The identifier of the user profile. + public var id: Swift.String? + /// The status of the user profile. + public var status: DataZoneClientTypes.UserProfileStatus? + /// The type of the user profile. + public var type: DataZoneClientTypes.UserProfileType? + + public init( + details: DataZoneClientTypes.UserProfileDetails? = nil, + domainId: Swift.String? = nil, + id: Swift.String? = nil, + status: DataZoneClientTypes.UserProfileStatus? = nil, + type: DataZoneClientTypes.UserProfileType? = nil + ) + { + self.details = details + self.domainId = domainId + self.id = id + self.status = status + self.type = type + } +} + +extension DataZoneClientTypes { + /// A search filter clause in Amazon DataZone. + public indirect enum FilterClause { + /// A search filter in Amazon DataZone. + case filter(DataZoneClientTypes.Filter) + /// The 'and' search filter clause in Amazon DataZone. + case and([DataZoneClientTypes.FilterClause]) + /// The 'or' search filter clause in Amazon DataZone. + case or([DataZoneClientTypes.FilterClause]) + case sdkUnknown(Swift.String) + } + +} + +extension DataZoneClientTypes { + /// The row filter. + public indirect enum RowFilter { + /// The expression of the row filter. + case expression(DataZoneClientTypes.RowFilterExpression) + /// The 'and' clause of the row filter. + case and([DataZoneClientTypes.RowFilter]) + /// The 'or' clause of the row filter. + case or([DataZoneClientTypes.RowFilter]) + case sdkUnknown(Swift.String) + } + +} + +extension DataZoneClientTypes { + /// The row filter configuration details. + public struct RowFilterConfiguration { + /// The row filter. + /// This member is required. + public var rowFilter: DataZoneClientTypes.RowFilter? + /// Specifies whether the row filter is sensitive. + public var sensitive: Swift.Bool? + + public init( + rowFilter: DataZoneClientTypes.RowFilter? = nil, + sensitive: Swift.Bool? = nil + ) + { + self.rowFilter = rowFilter + self.sensitive = sensitive + } } + } -public struct UpdateGroupProfileOutput { - /// The identifier of the Amazon DataZone domain in which a group profile is updated. - public var domainId: Swift.String? - /// The name of the group profile that is updated. - public var groupName: Swift.String? - /// The identifier of the group profile that is updated. - public var id: Swift.String? - /// The status of the group profile that is updated. - public var status: DataZoneClientTypes.GroupProfileStatus? +public struct SearchInput { + /// Specifies additional attributes for the Search action. + public var additionalAttributes: [DataZoneClientTypes.SearchOutputAdditionalAttribute]? + /// The identifier of the Amazon DataZone domain. + /// This member is required. + public var domainIdentifier: Swift.String? + /// Specifies the search filters. + public var filters: DataZoneClientTypes.FilterClause? + /// The maximum number of results to return in a single call to Search. When the number of results to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to Search to list the next set of results. + public var maxResults: Swift.Int? + /// When the number of results is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of results, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to Search to list the next set of results. + public var nextToken: Swift.String? + /// The identifier of the owning project specified for the search. + public var owningProjectIdentifier: Swift.String? + /// The details of the search. + public var searchIn: [DataZoneClientTypes.SearchInItem]? + /// The scope of the search. + /// This member is required. + public var searchScope: DataZoneClientTypes.InventorySearchScope? + /// Specifies the text for which to search. + public var searchText: Swift.String? + /// Specifies the way in which the search results are to be sorted. + public var sort: DataZoneClientTypes.SearchSort? public init( - domainId: Swift.String? = nil, - groupName: Swift.String? = nil, - id: Swift.String? = nil, - status: DataZoneClientTypes.GroupProfileStatus? = nil + additionalAttributes: [DataZoneClientTypes.SearchOutputAdditionalAttribute]? = nil, + domainIdentifier: Swift.String? = nil, + filters: DataZoneClientTypes.FilterClause? = nil, + maxResults: Swift.Int? = nil, + nextToken: Swift.String? = nil, + owningProjectIdentifier: Swift.String? = nil, + searchIn: [DataZoneClientTypes.SearchInItem]? = nil, + searchScope: DataZoneClientTypes.InventorySearchScope? = nil, + searchText: Swift.String? = nil, + sort: DataZoneClientTypes.SearchSort? = nil ) { - self.domainId = domainId - self.groupName = groupName - self.id = id - self.status = status + self.additionalAttributes = additionalAttributes + self.domainIdentifier = domainIdentifier + self.filters = filters + self.maxResults = maxResults + self.nextToken = nextToken + self.owningProjectIdentifier = owningProjectIdentifier + self.searchIn = searchIn + self.searchScope = searchScope + self.searchText = searchText + self.sort = sort } } -extension UpdateGroupProfileOutput: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "UpdateGroupProfileOutput(domainId: \(Swift.String(describing: domainId)), id: \(Swift.String(describing: id)), status: \(Swift.String(describing: status)), groupName: \"CONTENT_REDACTED\")"} -} - -public struct UpdateProjectInput { - /// The description to be updated as part of the UpdateProject action. - public var description: Swift.String? - /// The identifier of the Amazon DataZone domain in which a project is to be updated. +public struct SearchListingsInput { + /// Specifies additional attributes for the search. + public var additionalAttributes: [DataZoneClientTypes.SearchOutputAdditionalAttribute]? + /// The identifier of the domain in which to search listings. /// This member is required. public var domainIdentifier: Swift.String? - /// The glossary terms to be updated as part of the UpdateProject action. - public var glossaryTerms: [Swift.String]? - /// The identifier of the project that is to be updated. - /// This member is required. - public var identifier: Swift.String? - /// The name to be updated as part of the UpdateProject action. - public var name: Swift.String? + /// Specifies the filters for the search of listings. + public var filters: DataZoneClientTypes.FilterClause? + /// The maximum number of results to return in a single call to SearchListings. When the number of results to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to SearchListings to list the next set of results. + public var maxResults: Swift.Int? + /// When the number of results is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of results, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to SearchListings to list the next set of results. + public var nextToken: Swift.String? + /// The details of the search. + public var searchIn: [DataZoneClientTypes.SearchInItem]? + /// Specifies the text for which to search. + public var searchText: Swift.String? + /// Specifies the way for sorting the search results. + public var sort: DataZoneClientTypes.SearchSort? public init( - description: Swift.String? = nil, + additionalAttributes: [DataZoneClientTypes.SearchOutputAdditionalAttribute]? = nil, domainIdentifier: Swift.String? = nil, - glossaryTerms: [Swift.String]? = nil, - identifier: Swift.String? = nil, - name: Swift.String? = nil + filters: DataZoneClientTypes.FilterClause? = nil, + maxResults: Swift.Int? = nil, + nextToken: Swift.String? = nil, + searchIn: [DataZoneClientTypes.SearchInItem]? = nil, + searchText: Swift.String? = nil, + sort: DataZoneClientTypes.SearchSort? = nil ) { - self.description = description + self.additionalAttributes = additionalAttributes self.domainIdentifier = domainIdentifier - self.glossaryTerms = glossaryTerms - self.identifier = identifier - self.name = name + self.filters = filters + self.maxResults = maxResults + self.nextToken = nextToken + self.searchIn = searchIn + self.searchText = searchText + self.sort = sort } } -extension UpdateProjectInput: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "UpdateProjectInput(domainIdentifier: \(Swift.String(describing: domainIdentifier)), glossaryTerms: \(Swift.String(describing: glossaryTerms)), identifier: \(Swift.String(describing: identifier)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} -} - -public struct UpdateProjectOutput { - /// The timestamp of when the project was created. - public var createdAt: Foundation.Date? - /// The Amazon DataZone user who created the project. - /// This member is required. - public var createdBy: Swift.String? - /// The description of the project that is to be updated. - public var description: Swift.String? - /// The identifier of the Amazon DataZone domain in which a project is updated. +public struct SearchTypesInput { + /// The identifier of the Amazon DataZone domain in which to invoke the SearchTypes action. /// This member is required. - public var domainId: Swift.String? - /// Specifies the error message that is returned if the operation cannot be successfully completed. - public var failureReasons: [DataZoneClientTypes.ProjectDeletionError]? - /// The glossary terms of the project that are to be updated. - public var glossaryTerms: [Swift.String]? - /// The identifier of the project that is to be updated. + public var domainIdentifier: Swift.String? + /// The filters for the SearchTypes action. + public var filters: DataZoneClientTypes.FilterClause? + /// Specifies whether the search is managed. /// This member is required. - public var id: Swift.String? - /// The timestamp of when the project was last updated. - public var lastUpdatedAt: Foundation.Date? - /// The name of the project that is to be updated. + public var managed: Swift.Bool? + /// The maximum number of results to return in a single call to SearchTypes. When the number of results to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to SearchTypes to list the next set of results. + public var maxResults: Swift.Int? + /// When the number of results is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of results, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to SearchTypes to list the next set of results. + public var nextToken: Swift.String? + /// The details of the search. + public var searchIn: [DataZoneClientTypes.SearchInItem]? + /// Specifies the scope of the search for types. /// This member is required. - public var name: Swift.String? - /// The status of the project. - public var projectStatus: DataZoneClientTypes.ProjectStatus? + public var searchScope: DataZoneClientTypes.TypesSearchScope? + /// Specifies the text for which to search. + public var searchText: Swift.String? + /// The specifies the way to sort the SearchTypes results. + public var sort: DataZoneClientTypes.SearchSort? public init( - createdAt: Foundation.Date? = nil, - createdBy: Swift.String? = nil, - description: Swift.String? = nil, - domainId: Swift.String? = nil, - failureReasons: [DataZoneClientTypes.ProjectDeletionError]? = nil, - glossaryTerms: [Swift.String]? = nil, - id: Swift.String? = nil, - lastUpdatedAt: Foundation.Date? = nil, - name: Swift.String? = nil, - projectStatus: DataZoneClientTypes.ProjectStatus? = nil + domainIdentifier: Swift.String? = nil, + filters: DataZoneClientTypes.FilterClause? = nil, + managed: Swift.Bool? = nil, + maxResults: Swift.Int? = nil, + nextToken: Swift.String? = nil, + searchIn: [DataZoneClientTypes.SearchInItem]? = nil, + searchScope: DataZoneClientTypes.TypesSearchScope? = nil, + searchText: Swift.String? = nil, + sort: DataZoneClientTypes.SearchSort? = nil ) { - self.createdAt = createdAt - self.createdBy = createdBy - self.description = description - self.domainId = domainId - self.failureReasons = failureReasons - self.glossaryTerms = glossaryTerms - self.id = id - self.lastUpdatedAt = lastUpdatedAt - self.name = name - self.projectStatus = projectStatus + self.domainIdentifier = domainIdentifier + self.filters = filters + self.managed = managed + self.maxResults = maxResults + self.nextToken = nextToken + self.searchIn = searchIn + self.searchScope = searchScope + self.searchText = searchText + self.sort = sort } } -extension UpdateProjectOutput: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "UpdateProjectOutput(createdAt: \(Swift.String(describing: createdAt)), createdBy: \(Swift.String(describing: createdBy)), domainId: \(Swift.String(describing: domainId)), failureReasons: \(Swift.String(describing: failureReasons)), glossaryTerms: \(Swift.String(describing: glossaryTerms)), id: \(Swift.String(describing: id)), lastUpdatedAt: \(Swift.String(describing: lastUpdatedAt)), projectStatus: \(Swift.String(describing: projectStatus)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} +extension DataZoneClientTypes { + /// The configuration details of the asset filter. + public indirect enum AssetFilterConfiguration { + /// The column configuration of the asset filter. + case columnconfiguration(DataZoneClientTypes.ColumnFilterConfiguration) + /// The row configuration of the asset filter. + case rowconfiguration(DataZoneClientTypes.RowFilterConfiguration) + case sdkUnknown(Swift.String) + } + } -public struct UpdateSubscriptionGrantStatusInput { - /// The identifier of the asset the subscription grant status of which is to be updated. +public struct CreateAssetFilterInput { + /// The ID of the data asset. /// This member is required. public var assetIdentifier: Swift.String? - /// The identifier of the Amazon DataZone domain in which a subscription grant status is to be updated. + /// A unique, case-sensitive identifier that is provided to ensure the idempotency of the request. + public var clientToken: Swift.String? + /// The configuration of the asset filter. /// This member is required. - public var domainIdentifier: Swift.String? - /// Specifies the error message that is returned if the operation cannot be successfully completed. - public var failureCause: DataZoneClientTypes.FailureCause? - /// The identifier of the subscription grant the status of which is to be updated. + public var configuration: DataZoneClientTypes.AssetFilterConfiguration? + /// The description of the asset filter. + public var description: Swift.String? + /// The ID of the domain in which you want to create an asset filter. /// This member is required. - public var identifier: Swift.String? - /// The status to be updated as part of the UpdateSubscriptionGrantStatus action. + public var domainIdentifier: Swift.String? + /// The name of the asset filter. /// This member is required. - public var status: DataZoneClientTypes.SubscriptionGrantStatus? - /// The target name to be updated as part of the UpdateSubscriptionGrantStatus action. - public var targetName: Swift.String? + public var name: Swift.String? public init( assetIdentifier: Swift.String? = nil, + clientToken: Swift.String? = nil, + configuration: DataZoneClientTypes.AssetFilterConfiguration? = nil, + description: Swift.String? = nil, domainIdentifier: Swift.String? = nil, - failureCause: DataZoneClientTypes.FailureCause? = nil, - identifier: Swift.String? = nil, - status: DataZoneClientTypes.SubscriptionGrantStatus? = nil, - targetName: Swift.String? = nil + name: Swift.String? = nil ) { self.assetIdentifier = assetIdentifier + self.clientToken = clientToken + self.configuration = configuration + self.description = description self.domainIdentifier = domainIdentifier - self.failureCause = failureCause - self.identifier = identifier - self.status = status - self.targetName = targetName + self.name = name } } -public struct UpdateSubscriptionGrantStatusOutput { - /// The details of the asset for which the subscription grant is created. - public var assets: [DataZoneClientTypes.SubscribedAsset]? - /// The timestamp of when the subscription grant status was created. +extension CreateAssetFilterInput: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "CreateAssetFilterInput(assetIdentifier: \(Swift.String(describing: assetIdentifier)), clientToken: \(Swift.String(describing: clientToken)), configuration: \(Swift.String(describing: configuration)), domainIdentifier: \(Swift.String(describing: domainIdentifier)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} +} + +public struct CreateAssetFilterOutput { + /// The ID of the asset. /// This member is required. - public var createdAt: Foundation.Date? - /// The Amazon DataZone domain user who created the subscription grant status. + public var assetId: Swift.String? + /// The configuration of the asset filter. /// This member is required. - public var createdBy: Swift.String? - /// The identifier of the Amazon DataZone domain in which a subscription grant status is to be updated. + public var configuration: DataZoneClientTypes.AssetFilterConfiguration? + /// The timestamp at which the asset filter was created. + public var createdAt: Foundation.Date? + /// The description of the asset filter. + public var description: Swift.String? + /// The ID of the domain where the asset filter is created. /// This member is required. public var domainId: Swift.String? - /// The granted entity to be updated as part of the UpdateSubscriptionGrantStatus action. - /// This member is required. - public var grantedEntity: DataZoneClientTypes.GrantedEntity? - /// The identifier of the subscription grant. + /// The column names in the asset filter. + public var effectiveColumnNames: [Swift.String]? + /// The row filter in the asset filter. + public var effectiveRowFilter: Swift.String? + /// The error message that is displayed if the asset filter is not created successfully. + public var errorMessage: Swift.String? + /// The ID of the asset filter. /// This member is required. public var id: Swift.String? - /// The status to be updated as part of the UpdateSubscriptionGrantStatus action. - /// This member is required. - public var status: DataZoneClientTypes.SubscriptionGrantOverallStatus? - /// The identifier of the subscription. - @available(*, deprecated, message: "Multiple subscriptions can exist for a single grant") - public var subscriptionId: Swift.String? - /// The identifier of the subscription target whose subscription grant status is to be updated. - /// This member is required. - public var subscriptionTargetId: Swift.String? - /// The timestamp of when the subscription grant status is to be updated. + /// The name of the asset filter. /// This member is required. - public var updatedAt: Foundation.Date? - /// The Amazon DataZone user who updated the subscription grant status. - public var updatedBy: Swift.String? + public var name: Swift.String? + /// The status of the asset filter. + public var status: DataZoneClientTypes.FilterStatus? public init( - assets: [DataZoneClientTypes.SubscribedAsset]? = nil, + assetId: Swift.String? = nil, + configuration: DataZoneClientTypes.AssetFilterConfiguration? = nil, createdAt: Foundation.Date? = nil, - createdBy: Swift.String? = nil, + description: Swift.String? = nil, domainId: Swift.String? = nil, - grantedEntity: DataZoneClientTypes.GrantedEntity? = nil, + effectiveColumnNames: [Swift.String]? = nil, + effectiveRowFilter: Swift.String? = nil, + errorMessage: Swift.String? = nil, id: Swift.String? = nil, - status: DataZoneClientTypes.SubscriptionGrantOverallStatus? = nil, - subscriptionId: Swift.String? = nil, - subscriptionTargetId: Swift.String? = nil, - updatedAt: Foundation.Date? = nil, - updatedBy: Swift.String? = nil + name: Swift.String? = nil, + status: DataZoneClientTypes.FilterStatus? = nil ) { - self.assets = assets + self.assetId = assetId + self.configuration = configuration self.createdAt = createdAt - self.createdBy = createdBy + self.description = description self.domainId = domainId - self.grantedEntity = grantedEntity + self.effectiveColumnNames = effectiveColumnNames + self.effectiveRowFilter = effectiveRowFilter + self.errorMessage = errorMessage self.id = id + self.name = name self.status = status - self.subscriptionId = subscriptionId - self.subscriptionTargetId = subscriptionTargetId - self.updatedAt = updatedAt - self.updatedBy = updatedBy - } -} - -public struct UpdateSubscriptionRequestInput { - /// The identifier of the Amazon DataZone domain in which a subscription request is to be updated. - /// This member is required. - public var domainIdentifier: Swift.String? - /// The identifier of the subscription request that is to be updated. - /// This member is required. - public var identifier: Swift.String? - /// The reason for the UpdateSubscriptionRequest action. - /// This member is required. - public var requestReason: Swift.String? - - public init( - domainIdentifier: Swift.String? = nil, - identifier: Swift.String? = nil, - requestReason: Swift.String? = nil - ) - { - self.domainIdentifier = domainIdentifier - self.identifier = identifier - self.requestReason = requestReason } } -extension UpdateSubscriptionRequestInput: Swift.CustomDebugStringConvertible { +extension CreateAssetFilterOutput: Swift.CustomDebugStringConvertible { public var debugDescription: Swift.String { - "UpdateSubscriptionRequestInput(domainIdentifier: \(Swift.String(describing: domainIdentifier)), identifier: \(Swift.String(describing: identifier)), requestReason: \"CONTENT_REDACTED\")"} + "CreateAssetFilterOutput(assetId: \(Swift.String(describing: assetId)), configuration: \(Swift.String(describing: configuration)), createdAt: \(Swift.String(describing: createdAt)), domainId: \(Swift.String(describing: domainId)), effectiveColumnNames: \(Swift.String(describing: effectiveColumnNames)), effectiveRowFilter: \(Swift.String(describing: effectiveRowFilter)), errorMessage: \(Swift.String(describing: errorMessage)), id: \(Swift.String(describing: id)), status: \(Swift.String(describing: status)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} } -public struct UpdateSubscriptionRequestOutput { - /// The timestamp of when the subscription request was created. +public struct GetAssetFilterOutput { + /// The ID of the data asset. /// This member is required. - public var createdAt: Foundation.Date? - /// The Amazon DataZone user who created the subscription request. + public var assetId: Swift.String? + /// The configuration of the asset filter. /// This member is required. - public var createdBy: Swift.String? - /// The decision comment of the UpdateSubscriptionRequest action. - public var decisionComment: Swift.String? - /// The identifier of the Amazon DataZone domain in which a subscription request is to be updated. + public var configuration: DataZoneClientTypes.AssetFilterConfiguration? + /// The timestamp at which the asset filter was created. + public var createdAt: Foundation.Date? + /// The description of the asset filter. + public var description: Swift.String? + /// The ID of the domain where you want to get an asset filter. /// This member is required. public var domainId: Swift.String? - /// The identifier of the subscription request that is to be updated. + /// The column names of the asset filter. + public var effectiveColumnNames: [Swift.String]? + /// The row filter of the asset filter. + public var effectiveRowFilter: Swift.String? + /// The error message that is displayed if the action does not complete successfully. + public var errorMessage: Swift.String? + /// The ID of the asset filter. /// This member is required. public var id: Swift.String? - /// The reason for the UpdateSubscriptionRequest action. - /// This member is required. - public var requestReason: Swift.String? - /// The identifier of the Amazon DataZone user who reviews the subscription request. - public var reviewerId: Swift.String? - /// The status of the subscription request. - /// This member is required. - public var status: DataZoneClientTypes.SubscriptionRequestStatus? - /// The subscribed listings of the subscription request. - /// This member is required. - public var subscribedListings: [DataZoneClientTypes.SubscribedListing]? - /// The subscribed principals of the subscription request. - /// This member is required. - public var subscribedPrincipals: [DataZoneClientTypes.SubscribedPrincipal]? - /// The timestamp of when the subscription request was updated. + /// The name of the asset filter. /// This member is required. - public var updatedAt: Foundation.Date? - /// The Amazon DataZone user who updated the subscription request. - public var updatedBy: Swift.String? + public var name: Swift.String? + /// The status of the asset filter. + public var status: DataZoneClientTypes.FilterStatus? public init( + assetId: Swift.String? = nil, + configuration: DataZoneClientTypes.AssetFilterConfiguration? = nil, createdAt: Foundation.Date? = nil, - createdBy: Swift.String? = nil, - decisionComment: Swift.String? = nil, + description: Swift.String? = nil, domainId: Swift.String? = nil, + effectiveColumnNames: [Swift.String]? = nil, + effectiveRowFilter: Swift.String? = nil, + errorMessage: Swift.String? = nil, id: Swift.String? = nil, - requestReason: Swift.String? = nil, - reviewerId: Swift.String? = nil, - status: DataZoneClientTypes.SubscriptionRequestStatus? = nil, - subscribedListings: [DataZoneClientTypes.SubscribedListing]? = nil, - subscribedPrincipals: [DataZoneClientTypes.SubscribedPrincipal]? = nil, - updatedAt: Foundation.Date? = nil, - updatedBy: Swift.String? = nil + name: Swift.String? = nil, + status: DataZoneClientTypes.FilterStatus? = nil ) { + self.assetId = assetId + self.configuration = configuration self.createdAt = createdAt - self.createdBy = createdBy - self.decisionComment = decisionComment + self.description = description self.domainId = domainId + self.effectiveColumnNames = effectiveColumnNames + self.effectiveRowFilter = effectiveRowFilter + self.errorMessage = errorMessage self.id = id - self.requestReason = requestReason - self.reviewerId = reviewerId + self.name = name self.status = status - self.subscribedListings = subscribedListings - self.subscribedPrincipals = subscribedPrincipals - self.updatedAt = updatedAt - self.updatedBy = updatedBy } } -extension UpdateSubscriptionRequestOutput: Swift.CustomDebugStringConvertible { +extension GetAssetFilterOutput: Swift.CustomDebugStringConvertible { public var debugDescription: Swift.String { - "UpdateSubscriptionRequestOutput(createdAt: \(Swift.String(describing: createdAt)), createdBy: \(Swift.String(describing: createdBy)), domainId: \(Swift.String(describing: domainId)), id: \(Swift.String(describing: id)), reviewerId: \(Swift.String(describing: reviewerId)), status: \(Swift.String(describing: status)), subscribedListings: \(Swift.String(describing: subscribedListings)), subscribedPrincipals: \(Swift.String(describing: subscribedPrincipals)), updatedAt: \(Swift.String(describing: updatedAt)), updatedBy: \(Swift.String(describing: updatedBy)), decisionComment: \"CONTENT_REDACTED\", requestReason: \"CONTENT_REDACTED\")"} + "GetAssetFilterOutput(assetId: \(Swift.String(describing: assetId)), configuration: \(Swift.String(describing: configuration)), createdAt: \(Swift.String(describing: createdAt)), domainId: \(Swift.String(describing: domainId)), effectiveColumnNames: \(Swift.String(describing: effectiveColumnNames)), effectiveRowFilter: \(Swift.String(describing: effectiveRowFilter)), errorMessage: \(Swift.String(describing: errorMessage)), id: \(Swift.String(describing: id)), status: \(Swift.String(describing: status)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} } -public struct UpdateSubscriptionTargetInput { - /// The applicable asset types to be updated as part of the UpdateSubscriptionTarget action. - public var applicableAssetTypes: [Swift.String]? - /// The authorized principals to be updated as part of the UpdateSubscriptionTarget action. - public var authorizedPrincipals: [Swift.String]? - /// The identifier of the Amazon DataZone domain in which a subscription target is to be updated. +public struct UpdateAssetFilterInput { + /// The ID of the data asset. /// This member is required. - public var domainIdentifier: Swift.String? - /// The identifier of the environment in which a subscription target is to be updated. + public var assetIdentifier: Swift.String? + /// The configuration of the asset filter. + public var configuration: DataZoneClientTypes.AssetFilterConfiguration? + /// The description of the asset filter. + public var description: Swift.String? + /// The ID of the domain where you want to update an asset filter. /// This member is required. - public var environmentIdentifier: Swift.String? - /// Identifier of the subscription target that is to be updated. + public var domainIdentifier: Swift.String? + /// The ID of the asset filter. /// This member is required. public var identifier: Swift.String? - /// The manage access role to be updated as part of the UpdateSubscriptionTarget action. - public var manageAccessRole: Swift.String? - /// The name to be updated as part of the UpdateSubscriptionTarget action. + /// The name of the asset filter. public var name: Swift.String? - /// The provider to be updated as part of the UpdateSubscriptionTarget action. - public var provider: Swift.String? - /// The configuration to be updated as part of the UpdateSubscriptionTarget action. - public var subscriptionTargetConfig: [DataZoneClientTypes.SubscriptionTargetForm]? public init( - applicableAssetTypes: [Swift.String]? = nil, - authorizedPrincipals: [Swift.String]? = nil, + assetIdentifier: Swift.String? = nil, + configuration: DataZoneClientTypes.AssetFilterConfiguration? = nil, + description: Swift.String? = nil, domainIdentifier: Swift.String? = nil, - environmentIdentifier: Swift.String? = nil, identifier: Swift.String? = nil, - manageAccessRole: Swift.String? = nil, - name: Swift.String? = nil, - provider: Swift.String? = nil, - subscriptionTargetConfig: [DataZoneClientTypes.SubscriptionTargetForm]? = nil + name: Swift.String? = nil ) { - self.applicableAssetTypes = applicableAssetTypes - self.authorizedPrincipals = authorizedPrincipals + self.assetIdentifier = assetIdentifier + self.configuration = configuration + self.description = description self.domainIdentifier = domainIdentifier - self.environmentIdentifier = environmentIdentifier self.identifier = identifier - self.manageAccessRole = manageAccessRole self.name = name - self.provider = provider - self.subscriptionTargetConfig = subscriptionTargetConfig } } -extension UpdateSubscriptionTargetInput: Swift.CustomDebugStringConvertible { +extension UpdateAssetFilterInput: Swift.CustomDebugStringConvertible { public var debugDescription: Swift.String { - "UpdateSubscriptionTargetInput(applicableAssetTypes: \(Swift.String(describing: applicableAssetTypes)), authorizedPrincipals: \(Swift.String(describing: authorizedPrincipals)), domainIdentifier: \(Swift.String(describing: domainIdentifier)), environmentIdentifier: \(Swift.String(describing: environmentIdentifier)), identifier: \(Swift.String(describing: identifier)), manageAccessRole: \(Swift.String(describing: manageAccessRole)), provider: \(Swift.String(describing: provider)), subscriptionTargetConfig: \(Swift.String(describing: subscriptionTargetConfig)), name: \"CONTENT_REDACTED\")"} + "UpdateAssetFilterInput(assetIdentifier: \(Swift.String(describing: assetIdentifier)), configuration: \(Swift.String(describing: configuration)), domainIdentifier: \(Swift.String(describing: domainIdentifier)), identifier: \(Swift.String(describing: identifier)), name: \(Swift.String(describing: name)), description: \"CONTENT_REDACTED\")"} } -public struct UpdateSubscriptionTargetOutput { - /// The applicable asset types to be updated as part of the UpdateSubscriptionTarget action. - /// This member is required. - public var applicableAssetTypes: [Swift.String]? - /// The authorized principals to be updated as part of the UpdateSubscriptionTarget action. - /// This member is required. - public var authorizedPrincipals: [Swift.String]? - /// The timestamp of when a subscription target was created. +public struct UpdateAssetFilterOutput { + /// The ID of the data asset. /// This member is required. - public var createdAt: Foundation.Date? - /// The Amazon DataZone user who created the subscription target. + public var assetId: Swift.String? + /// The configuration of the asset filter. /// This member is required. - public var createdBy: Swift.String? - /// The identifier of the Amazon DataZone domain in which a subscription target is to be updated. + public var configuration: DataZoneClientTypes.AssetFilterConfiguration? + /// The timestamp at which the asset filter was created. + public var createdAt: Foundation.Date? + /// The description of the asset filter. + public var description: Swift.String? + /// The ID of the domain where the asset filter was created. /// This member is required. public var domainId: Swift.String? - /// The identifier of the environment in which a subscription target is to be updated. - /// This member is required. - public var environmentId: Swift.String? - /// Identifier of the subscription target that is to be updated. + /// The column names of the asset filter. + public var effectiveColumnNames: [Swift.String]? + /// The row filter of the asset filter. + public var effectiveRowFilter: Swift.String? + /// The error message that is displayed if the action is not completed successfully. + public var errorMessage: Swift.String? + /// The ID of the asset filter. /// This member is required. public var id: Swift.String? - /// The manage access role to be updated as part of the UpdateSubscriptionTarget action. - /// This member is required. - public var manageAccessRole: Swift.String? - /// The name to be updated as part of the UpdateSubscriptionTarget action. + /// The name of the asset filter. /// This member is required. public var name: Swift.String? - /// The identifier of the project in which a subscription target is to be updated. - /// This member is required. - public var projectId: Swift.String? - /// The provider to be updated as part of the UpdateSubscriptionTarget action. - /// This member is required. - public var provider: Swift.String? - /// The configuration to be updated as part of the UpdateSubscriptionTarget action. - /// This member is required. - public var subscriptionTargetConfig: [DataZoneClientTypes.SubscriptionTargetForm]? - /// The type to be updated as part of the UpdateSubscriptionTarget action. - /// This member is required. - public var type: Swift.String? - /// The timestamp of when the subscription target was updated. - public var updatedAt: Foundation.Date? - /// The Amazon DataZone user who updated the subscription target. - public var updatedBy: Swift.String? + /// The status of the asset filter. + public var status: DataZoneClientTypes.FilterStatus? public init( - applicableAssetTypes: [Swift.String]? = nil, - authorizedPrincipals: [Swift.String]? = nil, + assetId: Swift.String? = nil, + configuration: DataZoneClientTypes.AssetFilterConfiguration? = nil, createdAt: Foundation.Date? = nil, - createdBy: Swift.String? = nil, + description: Swift.String? = nil, domainId: Swift.String? = nil, - environmentId: Swift.String? = nil, + effectiveColumnNames: [Swift.String]? = nil, + effectiveRowFilter: Swift.String? = nil, + errorMessage: Swift.String? = nil, id: Swift.String? = nil, - manageAccessRole: Swift.String? = nil, name: Swift.String? = nil, - projectId: Swift.String? = nil, - provider: Swift.String? = nil, - subscriptionTargetConfig: [DataZoneClientTypes.SubscriptionTargetForm]? = nil, - type: Swift.String? = nil, - updatedAt: Foundation.Date? = nil, - updatedBy: Swift.String? = nil + status: DataZoneClientTypes.FilterStatus? = nil ) { - self.applicableAssetTypes = applicableAssetTypes - self.authorizedPrincipals = authorizedPrincipals + self.assetId = assetId + self.configuration = configuration self.createdAt = createdAt - self.createdBy = createdBy + self.description = description self.domainId = domainId - self.environmentId = environmentId + self.effectiveColumnNames = effectiveColumnNames + self.effectiveRowFilter = effectiveRowFilter + self.errorMessage = errorMessage self.id = id - self.manageAccessRole = manageAccessRole self.name = name - self.projectId = projectId - self.provider = provider - self.subscriptionTargetConfig = subscriptionTargetConfig - self.type = type - self.updatedAt = updatedAt - self.updatedBy = updatedBy + self.status = status + } +} + +extension UpdateAssetFilterOutput: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "UpdateAssetFilterOutput(assetId: \(Swift.String(describing: assetId)), configuration: \(Swift.String(describing: configuration)), createdAt: \(Swift.String(describing: createdAt)), domainId: \(Swift.String(describing: domainId)), effectiveColumnNames: \(Swift.String(describing: effectiveColumnNames)), effectiveRowFilter: \(Swift.String(describing: effectiveRowFilter)), errorMessage: \(Swift.String(describing: errorMessage)), id: \(Swift.String(describing: id)), status: \(Swift.String(describing: status)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} +} + +extension AcceptPredictionsInput { + + static func urlPathProvider(_ value: AcceptPredictionsInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/assets/\(identifier.urlPercentEncoding())/accept-predictions" + } +} + +extension AcceptPredictionsInput { + + static func queryItemProvider(_ value: AcceptPredictionsInput) throws -> [Smithy.URIQueryItem] { + var items = [Smithy.URIQueryItem]() + if let revision = value.revision { + let revisionQueryItem = Smithy.URIQueryItem(name: "revision".urlPercentEncoding(), value: Swift.String(revision).urlPercentEncoding()) + items.append(revisionQueryItem) + } + return items + } +} + +extension AcceptSubscriptionRequestInput { + + static func urlPathProvider(_ value: AcceptSubscriptionRequestInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscription-requests/\(identifier.urlPercentEncoding())/accept" + } +} + +extension AddEntityOwnerInput { + + static func urlPathProvider(_ value: AddEntityOwnerInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + guard let entityType = value.entityType else { + return nil + } + guard let entityIdentifier = value.entityIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/entities/\(entityType.rawValue.urlPercentEncoding())/\(entityIdentifier.urlPercentEncoding())/addOwner" + } +} + +extension AddPolicyGrantInput { + + static func urlPathProvider(_ value: AddPolicyGrantInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + guard let entityType = value.entityType else { + return nil + } + guard let entityIdentifier = value.entityIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/policies/managed/\(entityType.rawValue.urlPercentEncoding())/\(entityIdentifier.urlPercentEncoding())/addGrant" + } +} + +extension AssociateEnvironmentRoleInput { + + static func urlPathProvider(_ value: AssociateEnvironmentRoleInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + guard let environmentIdentifier = value.environmentIdentifier else { + return nil + } + guard let environmentRoleArn = value.environmentRoleArn else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(environmentIdentifier.urlPercentEncoding())/roles/\(environmentRoleArn.urlPercentEncoding())" + } +} + +extension CancelMetadataGenerationRunInput { + + static func urlPathProvider(_ value: CancelMetadataGenerationRunInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/metadata-generation-runs/\(identifier.urlPercentEncoding())/cancel" + } +} + +extension CancelSubscriptionInput { + + static func urlPathProvider(_ value: CancelSubscriptionInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscriptions/\(identifier.urlPercentEncoding())/cancel" + } +} + +extension CreateAssetInput { + + static func urlPathProvider(_ value: CreateAssetInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/assets" + } +} + +extension CreateAssetFilterInput { + + static func urlPathProvider(_ value: CreateAssetFilterInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + guard let assetIdentifier = value.assetIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/assets/\(assetIdentifier.urlPercentEncoding())/filters" + } +} + +extension CreateAssetRevisionInput { + + static func urlPathProvider(_ value: CreateAssetRevisionInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/assets/\(identifier.urlPercentEncoding())/revisions" + } +} + +extension CreateAssetTypeInput { + + static func urlPathProvider(_ value: CreateAssetTypeInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/asset-types" + } +} + +extension CreateDataProductInput { + + static func urlPathProvider(_ value: CreateDataProductInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-products" + } +} + +extension CreateDataProductRevisionInput { + + static func urlPathProvider(_ value: CreateDataProductRevisionInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-products/\(identifier.urlPercentEncoding())/revisions" } } -extension UpdateSubscriptionTargetOutput: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "UpdateSubscriptionTargetOutput(applicableAssetTypes: \(Swift.String(describing: applicableAssetTypes)), authorizedPrincipals: \(Swift.String(describing: authorizedPrincipals)), createdAt: \(Swift.String(describing: createdAt)), createdBy: \(Swift.String(describing: createdBy)), domainId: \(Swift.String(describing: domainId)), environmentId: \(Swift.String(describing: environmentId)), id: \(Swift.String(describing: id)), manageAccessRole: \(Swift.String(describing: manageAccessRole)), projectId: \(Swift.String(describing: projectId)), provider: \(Swift.String(describing: provider)), subscriptionTargetConfig: \(Swift.String(describing: subscriptionTargetConfig)), type: \(Swift.String(describing: type)), updatedAt: \(Swift.String(describing: updatedAt)), updatedBy: \(Swift.String(describing: updatedBy)), name: \"CONTENT_REDACTED\")"} +extension CreateDataSourceInput { + + static func urlPathProvider(_ value: CreateDataSourceInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-sources" + } } -public struct UpdateUserProfileInput { - /// The identifier of the Amazon DataZone domain in which a user profile is updated. - /// This member is required. - public var domainIdentifier: Swift.String? - /// The status of the user profile that are to be updated. - /// This member is required. - public var status: DataZoneClientTypes.UserProfileStatus? - /// The type of the user profile that are to be updated. - public var type: DataZoneClientTypes.UserProfileType? - /// The identifier of the user whose user profile is to be updated. - /// This member is required. - public var userIdentifier: Swift.String? +extension CreateDomainInput { - public init( - domainIdentifier: Swift.String? = nil, - status: DataZoneClientTypes.UserProfileStatus? = nil, - type: DataZoneClientTypes.UserProfileType? = nil, - userIdentifier: Swift.String? = nil - ) - { - self.domainIdentifier = domainIdentifier - self.status = status - self.type = type - self.userIdentifier = userIdentifier + static func urlPathProvider(_ value: CreateDomainInput) -> Swift.String? { + return "/v2/domains" } } -public struct UpdateUserProfileOutput { - /// The details of the user profile in Amazon DataZone. - public var details: DataZoneClientTypes.UserProfileDetails? - /// The identifier of the Amazon DataZone domain in which a user profile is updated. - public var domainId: Swift.String? - /// The identifier of the user profile. - public var id: Swift.String? - /// The status of the user profile. - public var status: DataZoneClientTypes.UserProfileStatus? - /// The type of the user profile. - public var type: DataZoneClientTypes.UserProfileType? +extension CreateDomainUnitInput { - public init( - details: DataZoneClientTypes.UserProfileDetails? = nil, - domainId: Swift.String? = nil, - id: Swift.String? = nil, - status: DataZoneClientTypes.UserProfileStatus? = nil, - type: DataZoneClientTypes.UserProfileType? = nil - ) - { - self.details = details - self.domainId = domainId - self.id = id - self.status = status - self.type = type + static func urlPathProvider(_ value: CreateDomainUnitInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/domain-units" } } -extension DataZoneClientTypes { - /// A search filter clause in Amazon DataZone. - public indirect enum FilterClause { - /// A search filter in Amazon DataZone. - case filter(DataZoneClientTypes.Filter) - /// The 'and' search filter clause in Amazon DataZone. - case and([DataZoneClientTypes.FilterClause]) - /// The 'or' search filter clause in Amazon DataZone. - case or([DataZoneClientTypes.FilterClause]) - case sdkUnknown(Swift.String) +extension CreateEnvironmentInput { + + static func urlPathProvider(_ value: CreateEnvironmentInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments" } +} + +extension CreateEnvironmentActionInput { + static func urlPathProvider(_ value: CreateEnvironmentActionInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + guard let environmentIdentifier = value.environmentIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(environmentIdentifier.urlPercentEncoding())/actions" + } } -extension DataZoneClientTypes { - /// The row filter. - public indirect enum RowFilter { - /// The expression of the row filter. - case expression(DataZoneClientTypes.RowFilterExpression) - /// The 'and' clause of the row filter. - case and([DataZoneClientTypes.RowFilter]) - /// The 'or' clause of the row filter. - case or([DataZoneClientTypes.RowFilter]) - case sdkUnknown(Swift.String) +extension CreateEnvironmentProfileInput { + + static func urlPathProvider(_ value: CreateEnvironmentProfileInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environment-profiles" } +} + +extension CreateFormTypeInput { + static func urlPathProvider(_ value: CreateFormTypeInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/form-types" + } } -extension DataZoneClientTypes { - /// The row filter configuration details. - public struct RowFilterConfiguration { - /// The row filter. - /// This member is required. - public var rowFilter: DataZoneClientTypes.RowFilter? - /// Specifies whether the row filter is sensitive. - public var sensitive: Swift.Bool? +extension CreateGlossaryInput { - public init( - rowFilter: DataZoneClientTypes.RowFilter? = nil, - sensitive: Swift.Bool? = nil - ) - { - self.rowFilter = rowFilter - self.sensitive = sensitive + static func urlPathProvider(_ value: CreateGlossaryInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/glossaries" } +} +extension CreateGlossaryTermInput { + + static func urlPathProvider(_ value: CreateGlossaryTermInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/glossary-terms" + } } -public struct SearchInput { - /// Specifies additional attributes for the Search action. - public var additionalAttributes: [DataZoneClientTypes.SearchOutputAdditionalAttribute]? - /// The identifier of the Amazon DataZone domain. - /// This member is required. - public var domainIdentifier: Swift.String? - /// Specifies the search filters. - public var filters: DataZoneClientTypes.FilterClause? - /// The maximum number of results to return in a single call to Search. When the number of results to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to Search to list the next set of results. - public var maxResults: Swift.Int? - /// When the number of results is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of results, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to Search to list the next set of results. - public var nextToken: Swift.String? - /// The identifier of the owning project specified for the search. - public var owningProjectIdentifier: Swift.String? - /// The details of the search. - public var searchIn: [DataZoneClientTypes.SearchInItem]? - /// The scope of the search. - /// This member is required. - public var searchScope: DataZoneClientTypes.InventorySearchScope? - /// Specifies the text for which to search. - public var searchText: Swift.String? - /// Specifies the way in which the search results are to be sorted. - public var sort: DataZoneClientTypes.SearchSort? +extension CreateGroupProfileInput { - public init( - additionalAttributes: [DataZoneClientTypes.SearchOutputAdditionalAttribute]? = nil, - domainIdentifier: Swift.String? = nil, - filters: DataZoneClientTypes.FilterClause? = nil, - maxResults: Swift.Int? = nil, - nextToken: Swift.String? = nil, - owningProjectIdentifier: Swift.String? = nil, - searchIn: [DataZoneClientTypes.SearchInItem]? = nil, - searchScope: DataZoneClientTypes.InventorySearchScope? = nil, - searchText: Swift.String? = nil, - sort: DataZoneClientTypes.SearchSort? = nil - ) - { - self.additionalAttributes = additionalAttributes - self.domainIdentifier = domainIdentifier - self.filters = filters - self.maxResults = maxResults - self.nextToken = nextToken - self.owningProjectIdentifier = owningProjectIdentifier - self.searchIn = searchIn - self.searchScope = searchScope - self.searchText = searchText - self.sort = sort + static func urlPathProvider(_ value: CreateGroupProfileInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/group-profiles" } } -public struct SearchListingsInput { - /// Specifies additional attributes for the search. - public var additionalAttributes: [DataZoneClientTypes.SearchOutputAdditionalAttribute]? - /// The identifier of the domain in which to search listings. - /// This member is required. - public var domainIdentifier: Swift.String? - /// Specifies the filters for the search of listings. - public var filters: DataZoneClientTypes.FilterClause? - /// The maximum number of results to return in a single call to SearchListings. When the number of results to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to SearchListings to list the next set of results. - public var maxResults: Swift.Int? - /// When the number of results is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of results, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to SearchListings to list the next set of results. - public var nextToken: Swift.String? - /// The details of the search. - public var searchIn: [DataZoneClientTypes.SearchInItem]? - /// Specifies the text for which to search. - public var searchText: Swift.String? - /// Specifies the way for sorting the search results. - public var sort: DataZoneClientTypes.SearchSort? +extension CreateListingChangeSetInput { - public init( - additionalAttributes: [DataZoneClientTypes.SearchOutputAdditionalAttribute]? = nil, - domainIdentifier: Swift.String? = nil, - filters: DataZoneClientTypes.FilterClause? = nil, - maxResults: Swift.Int? = nil, - nextToken: Swift.String? = nil, - searchIn: [DataZoneClientTypes.SearchInItem]? = nil, - searchText: Swift.String? = nil, - sort: DataZoneClientTypes.SearchSort? = nil - ) - { - self.additionalAttributes = additionalAttributes - self.domainIdentifier = domainIdentifier - self.filters = filters - self.maxResults = maxResults - self.nextToken = nextToken - self.searchIn = searchIn - self.searchText = searchText - self.sort = sort + static func urlPathProvider(_ value: CreateListingChangeSetInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/listings/change-set" + } +} + +extension CreateProjectInput { + + static func urlPathProvider(_ value: CreateProjectInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/projects" + } +} + +extension CreateProjectMembershipInput { + + static func urlPathProvider(_ value: CreateProjectMembershipInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + guard let projectIdentifier = value.projectIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/projects/\(projectIdentifier.urlPercentEncoding())/createMembership" } } -public struct SearchTypesInput { - /// The identifier of the Amazon DataZone domain in which to invoke the SearchTypes action. - /// This member is required. - public var domainIdentifier: Swift.String? - /// The filters for the SearchTypes action. - public var filters: DataZoneClientTypes.FilterClause? - /// Specifies whether the search is managed. - /// This member is required. - public var managed: Swift.Bool? - /// The maximum number of results to return in a single call to SearchTypes. When the number of results to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to SearchTypes to list the next set of results. - public var maxResults: Swift.Int? - /// When the number of results is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of results, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to SearchTypes to list the next set of results. - public var nextToken: Swift.String? - /// The details of the search. - public var searchIn: [DataZoneClientTypes.SearchInItem]? - /// Specifies the scope of the search for types. - /// This member is required. - public var searchScope: DataZoneClientTypes.TypesSearchScope? - /// Specifies the text for which to search. - public var searchText: Swift.String? - /// The specifies the way to sort the SearchTypes results. - public var sort: DataZoneClientTypes.SearchSort? +extension CreateSubscriptionGrantInput { - public init( - domainIdentifier: Swift.String? = nil, - filters: DataZoneClientTypes.FilterClause? = nil, - managed: Swift.Bool? = nil, - maxResults: Swift.Int? = nil, - nextToken: Swift.String? = nil, - searchIn: [DataZoneClientTypes.SearchInItem]? = nil, - searchScope: DataZoneClientTypes.TypesSearchScope? = nil, - searchText: Swift.String? = nil, - sort: DataZoneClientTypes.SearchSort? = nil - ) - { - self.domainIdentifier = domainIdentifier - self.filters = filters - self.managed = managed - self.maxResults = maxResults - self.nextToken = nextToken - self.searchIn = searchIn - self.searchScope = searchScope - self.searchText = searchText - self.sort = sort + static func urlPathProvider(_ value: CreateSubscriptionGrantInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscription-grants" } } -extension DataZoneClientTypes { - /// The configuration details of the asset filter. - public indirect enum AssetFilterConfiguration { - /// The column configuration of the asset filter. - case columnconfiguration(DataZoneClientTypes.ColumnFilterConfiguration) - /// The row configuration of the asset filter. - case rowconfiguration(DataZoneClientTypes.RowFilterConfiguration) - case sdkUnknown(Swift.String) +extension CreateSubscriptionRequestInput { + + static func urlPathProvider(_ value: CreateSubscriptionRequestInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscription-requests" } +} + +extension CreateSubscriptionTargetInput { + static func urlPathProvider(_ value: CreateSubscriptionTargetInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + guard let environmentIdentifier = value.environmentIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(environmentIdentifier.urlPercentEncoding())/subscription-targets" + } } -public struct CreateAssetFilterInput { - /// The ID of the data asset. - /// This member is required. - public var assetIdentifier: Swift.String? - /// A unique, case-sensitive identifier that is provided to ensure the idempotency of the request. - public var clientToken: Swift.String? - /// The configuration of the asset filter. - /// This member is required. - public var configuration: DataZoneClientTypes.AssetFilterConfiguration? - /// The description of the asset filter. - public var description: Swift.String? - /// The ID of the domain in which you want to create an asset filter. - /// This member is required. - public var domainIdentifier: Swift.String? - /// The name of the asset filter. - /// This member is required. - public var name: Swift.String? +extension CreateUserProfileInput { - public init( - assetIdentifier: Swift.String? = nil, - clientToken: Swift.String? = nil, - configuration: DataZoneClientTypes.AssetFilterConfiguration? = nil, - description: Swift.String? = nil, - domainIdentifier: Swift.String? = nil, - name: Swift.String? = nil - ) - { - self.assetIdentifier = assetIdentifier - self.clientToken = clientToken - self.configuration = configuration - self.description = description - self.domainIdentifier = domainIdentifier - self.name = name + static func urlPathProvider(_ value: CreateUserProfileInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/user-profiles" } } -extension CreateAssetFilterInput: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "CreateAssetFilterInput(assetIdentifier: \(Swift.String(describing: assetIdentifier)), clientToken: \(Swift.String(describing: clientToken)), configuration: \(Swift.String(describing: configuration)), domainIdentifier: \(Swift.String(describing: domainIdentifier)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} +extension DeleteAssetInput { + + static func urlPathProvider(_ value: DeleteAssetInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/assets/\(identifier.urlPercentEncoding())" + } } -public struct CreateAssetFilterOutput { - /// The ID of the asset. - /// This member is required. - public var assetId: Swift.String? - /// The configuration of the asset filter. - /// This member is required. - public var configuration: DataZoneClientTypes.AssetFilterConfiguration? - /// The timestamp at which the asset filter was created. - public var createdAt: Foundation.Date? - /// The description of the asset filter. - public var description: Swift.String? - /// The ID of the domain where the asset filter is created. - /// This member is required. - public var domainId: Swift.String? - /// The column names in the asset filter. - public var effectiveColumnNames: [Swift.String]? - /// The row filter in the asset filter. - public var effectiveRowFilter: Swift.String? - /// The error message that is displayed if the asset filter is not created successfully. - public var errorMessage: Swift.String? - /// The ID of the asset filter. - /// This member is required. - public var id: Swift.String? - /// The name of the asset filter. - /// This member is required. - public var name: Swift.String? - /// The status of the asset filter. - public var status: DataZoneClientTypes.FilterStatus? +extension DeleteAssetFilterInput { - public init( - assetId: Swift.String? = nil, - configuration: DataZoneClientTypes.AssetFilterConfiguration? = nil, - createdAt: Foundation.Date? = nil, - description: Swift.String? = nil, - domainId: Swift.String? = nil, - effectiveColumnNames: [Swift.String]? = nil, - effectiveRowFilter: Swift.String? = nil, - errorMessage: Swift.String? = nil, - id: Swift.String? = nil, - name: Swift.String? = nil, - status: DataZoneClientTypes.FilterStatus? = nil - ) - { - self.assetId = assetId - self.configuration = configuration - self.createdAt = createdAt - self.description = description - self.domainId = domainId - self.effectiveColumnNames = effectiveColumnNames - self.effectiveRowFilter = effectiveRowFilter - self.errorMessage = errorMessage - self.id = id - self.name = name - self.status = status + static func urlPathProvider(_ value: DeleteAssetFilterInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + guard let assetIdentifier = value.assetIdentifier else { + return nil + } + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/assets/\(assetIdentifier.urlPercentEncoding())/filters/\(identifier.urlPercentEncoding())" } } -extension CreateAssetFilterOutput: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "CreateAssetFilterOutput(assetId: \(Swift.String(describing: assetId)), configuration: \(Swift.String(describing: configuration)), createdAt: \(Swift.String(describing: createdAt)), domainId: \(Swift.String(describing: domainId)), effectiveColumnNames: \(Swift.String(describing: effectiveColumnNames)), effectiveRowFilter: \(Swift.String(describing: effectiveRowFilter)), errorMessage: \(Swift.String(describing: errorMessage)), id: \(Swift.String(describing: id)), status: \(Swift.String(describing: status)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} +extension DeleteAssetTypeInput { + + static func urlPathProvider(_ value: DeleteAssetTypeInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/asset-types/\(identifier.urlPercentEncoding())" + } } -public struct GetAssetFilterOutput { - /// The ID of the data asset. - /// This member is required. - public var assetId: Swift.String? - /// The configuration of the asset filter. - /// This member is required. - public var configuration: DataZoneClientTypes.AssetFilterConfiguration? - /// The timestamp at which the asset filter was created. - public var createdAt: Foundation.Date? - /// The description of the asset filter. - public var description: Swift.String? - /// The ID of the domain where you want to get an asset filter. - /// This member is required. - public var domainId: Swift.String? - /// The column names of the asset filter. - public var effectiveColumnNames: [Swift.String]? - /// The row filter of the asset filter. - public var effectiveRowFilter: Swift.String? - /// The error message that is displayed if the action does not complete successfully. - public var errorMessage: Swift.String? - /// The ID of the asset filter. - /// This member is required. - public var id: Swift.String? - /// The name of the asset filter. - /// This member is required. - public var name: Swift.String? - /// The status of the asset filter. - public var status: DataZoneClientTypes.FilterStatus? +extension DeleteDataProductInput { + + static func urlPathProvider(_ value: DeleteDataProductInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-products/\(identifier.urlPercentEncoding())" + } +} - public init( - assetId: Swift.String? = nil, - configuration: DataZoneClientTypes.AssetFilterConfiguration? = nil, - createdAt: Foundation.Date? = nil, - description: Swift.String? = nil, - domainId: Swift.String? = nil, - effectiveColumnNames: [Swift.String]? = nil, - effectiveRowFilter: Swift.String? = nil, - errorMessage: Swift.String? = nil, - id: Swift.String? = nil, - name: Swift.String? = nil, - status: DataZoneClientTypes.FilterStatus? = nil - ) - { - self.assetId = assetId - self.configuration = configuration - self.createdAt = createdAt - self.description = description - self.domainId = domainId - self.effectiveColumnNames = effectiveColumnNames - self.effectiveRowFilter = effectiveRowFilter - self.errorMessage = errorMessage - self.id = id - self.name = name - self.status = status +extension DeleteDataSourceInput { + + static func urlPathProvider(_ value: DeleteDataSourceInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-sources/\(identifier.urlPercentEncoding())" } } -extension GetAssetFilterOutput: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "GetAssetFilterOutput(assetId: \(Swift.String(describing: assetId)), configuration: \(Swift.String(describing: configuration)), createdAt: \(Swift.String(describing: createdAt)), domainId: \(Swift.String(describing: domainId)), effectiveColumnNames: \(Swift.String(describing: effectiveColumnNames)), effectiveRowFilter: \(Swift.String(describing: effectiveRowFilter)), errorMessage: \(Swift.String(describing: errorMessage)), id: \(Swift.String(describing: id)), status: \(Swift.String(describing: status)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} +extension DeleteDataSourceInput { + + static func queryItemProvider(_ value: DeleteDataSourceInput) throws -> [Smithy.URIQueryItem] { + var items = [Smithy.URIQueryItem]() + if let retainPermissionsOnRevokeFailure = value.retainPermissionsOnRevokeFailure { + let retainPermissionsOnRevokeFailureQueryItem = Smithy.URIQueryItem(name: "retainPermissionsOnRevokeFailure".urlPercentEncoding(), value: Swift.String(retainPermissionsOnRevokeFailure).urlPercentEncoding()) + items.append(retainPermissionsOnRevokeFailureQueryItem) + } + if let clientToken = value.clientToken { + let clientTokenQueryItem = Smithy.URIQueryItem(name: "clientToken".urlPercentEncoding(), value: Swift.String(clientToken).urlPercentEncoding()) + items.append(clientTokenQueryItem) + } + return items + } } -public struct UpdateAssetFilterInput { - /// The ID of the data asset. - /// This member is required. - public var assetIdentifier: Swift.String? - /// The configuration of the asset filter. - public var configuration: DataZoneClientTypes.AssetFilterConfiguration? - /// The description of the asset filter. - public var description: Swift.String? - /// The ID of the domain where you want to update an asset filter. - /// This member is required. - public var domainIdentifier: Swift.String? - /// The ID of the asset filter. - /// This member is required. - public var identifier: Swift.String? - /// The name of the asset filter. - public var name: Swift.String? +extension DeleteDomainInput { - public init( - assetIdentifier: Swift.String? = nil, - configuration: DataZoneClientTypes.AssetFilterConfiguration? = nil, - description: Swift.String? = nil, - domainIdentifier: Swift.String? = nil, - identifier: Swift.String? = nil, - name: Swift.String? = nil - ) - { - self.assetIdentifier = assetIdentifier - self.configuration = configuration - self.description = description - self.domainIdentifier = domainIdentifier - self.identifier = identifier - self.name = name + static func urlPathProvider(_ value: DeleteDomainInput) -> Swift.String? { + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(identifier.urlPercentEncoding())" } } -extension UpdateAssetFilterInput: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "UpdateAssetFilterInput(assetIdentifier: \(Swift.String(describing: assetIdentifier)), configuration: \(Swift.String(describing: configuration)), domainIdentifier: \(Swift.String(describing: domainIdentifier)), identifier: \(Swift.String(describing: identifier)), name: \(Swift.String(describing: name)), description: \"CONTENT_REDACTED\")"} +extension DeleteDomainInput { + + static func queryItemProvider(_ value: DeleteDomainInput) throws -> [Smithy.URIQueryItem] { + var items = [Smithy.URIQueryItem]() + if let clientToken = value.clientToken { + let clientTokenQueryItem = Smithy.URIQueryItem(name: "clientToken".urlPercentEncoding(), value: Swift.String(clientToken).urlPercentEncoding()) + items.append(clientTokenQueryItem) + } + if let skipDeletionCheck = value.skipDeletionCheck { + let skipDeletionCheckQueryItem = Smithy.URIQueryItem(name: "skipDeletionCheck".urlPercentEncoding(), value: Swift.String(skipDeletionCheck).urlPercentEncoding()) + items.append(skipDeletionCheckQueryItem) + } + return items + } } -public struct UpdateAssetFilterOutput { - /// The ID of the data asset. - /// This member is required. - public var assetId: Swift.String? - /// The configuration of the asset filter. - /// This member is required. - public var configuration: DataZoneClientTypes.AssetFilterConfiguration? - /// The timestamp at which the asset filter was created. - public var createdAt: Foundation.Date? - /// The description of the asset filter. - public var description: Swift.String? - /// The ID of the domain where the asset filter was created. - /// This member is required. - public var domainId: Swift.String? - /// The column names of the asset filter. - public var effectiveColumnNames: [Swift.String]? - /// The row filter of the asset filter. - public var effectiveRowFilter: Swift.String? - /// The error message that is displayed if the action is not completed successfully. - public var errorMessage: Swift.String? - /// The ID of the asset filter. - /// This member is required. - public var id: Swift.String? - /// The name of the asset filter. - /// This member is required. - public var name: Swift.String? - /// The status of the asset filter. - public var status: DataZoneClientTypes.FilterStatus? +extension DeleteDomainUnitInput { - public init( - assetId: Swift.String? = nil, - configuration: DataZoneClientTypes.AssetFilterConfiguration? = nil, - createdAt: Foundation.Date? = nil, - description: Swift.String? = nil, - domainId: Swift.String? = nil, - effectiveColumnNames: [Swift.String]? = nil, - effectiveRowFilter: Swift.String? = nil, - errorMessage: Swift.String? = nil, - id: Swift.String? = nil, - name: Swift.String? = nil, - status: DataZoneClientTypes.FilterStatus? = nil - ) - { - self.assetId = assetId - self.configuration = configuration - self.createdAt = createdAt - self.description = description - self.domainId = domainId - self.effectiveColumnNames = effectiveColumnNames - self.effectiveRowFilter = effectiveRowFilter - self.errorMessage = errorMessage - self.id = id - self.name = name - self.status = status + static func urlPathProvider(_ value: DeleteDomainUnitInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/domain-units/\(identifier.urlPercentEncoding())" } } -extension UpdateAssetFilterOutput: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "UpdateAssetFilterOutput(assetId: \(Swift.String(describing: assetId)), configuration: \(Swift.String(describing: configuration)), createdAt: \(Swift.String(describing: createdAt)), domainId: \(Swift.String(describing: domainId)), effectiveColumnNames: \(Swift.String(describing: effectiveColumnNames)), effectiveRowFilter: \(Swift.String(describing: effectiveRowFilter)), errorMessage: \(Swift.String(describing: errorMessage)), id: \(Swift.String(describing: id)), status: \(Swift.String(describing: status)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} +extension DeleteEnvironmentInput { + + static func urlPathProvider(_ value: DeleteEnvironmentInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(identifier.urlPercentEncoding())" + } } -extension AcceptPredictionsInput { +extension DeleteEnvironmentActionInput { - static func urlPathProvider(_ value: AcceptPredictionsInput) -> Swift.String? { + static func urlPathProvider(_ value: DeleteEnvironmentActionInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } + guard let environmentIdentifier = value.environmentIdentifier else { + return nil + } guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/assets/\(identifier.urlPercentEncoding())/accept-predictions" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(environmentIdentifier.urlPercentEncoding())/actions/\(identifier.urlPercentEncoding())" } } -extension AcceptPredictionsInput { +extension DeleteEnvironmentBlueprintConfigurationInput { - static func queryItemProvider(_ value: AcceptPredictionsInput) throws -> [Smithy.URIQueryItem] { - var items = [Smithy.URIQueryItem]() - if let revision = value.revision { - let revisionQueryItem = Smithy.URIQueryItem(name: "revision".urlPercentEncoding(), value: Swift.String(revision).urlPercentEncoding()) - items.append(revisionQueryItem) + static func urlPathProvider(_ value: DeleteEnvironmentBlueprintConfigurationInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil } - return items + guard let environmentBlueprintIdentifier = value.environmentBlueprintIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environment-blueprint-configurations/\(environmentBlueprintIdentifier.urlPercentEncoding())" } } -extension AcceptSubscriptionRequestInput { +extension DeleteEnvironmentProfileInput { - static func urlPathProvider(_ value: AcceptSubscriptionRequestInput) -> Swift.String? { + static func urlPathProvider(_ value: DeleteEnvironmentProfileInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscription-requests/\(identifier.urlPercentEncoding())/accept" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environment-profiles/\(identifier.urlPercentEncoding())" } } -extension AssociateEnvironmentRoleInput { +extension DeleteFormTypeInput { - static func urlPathProvider(_ value: AssociateEnvironmentRoleInput) -> Swift.String? { + static func urlPathProvider(_ value: DeleteFormTypeInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let environmentIdentifier = value.environmentIdentifier else { + guard let formTypeIdentifier = value.formTypeIdentifier else { return nil } - guard let environmentRoleArn = value.environmentRoleArn else { + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/form-types/\(formTypeIdentifier.urlPercentEncoding())" + } +} + +extension DeleteGlossaryInput { + + static func urlPathProvider(_ value: DeleteGlossaryInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(environmentIdentifier.urlPercentEncoding())/roles/\(environmentRoleArn.urlPercentEncoding())" + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/glossaries/\(identifier.urlPercentEncoding())" } } -extension CancelMetadataGenerationRunInput { +extension DeleteGlossaryTermInput { - static func urlPathProvider(_ value: CancelMetadataGenerationRunInput) -> Swift.String? { + static func urlPathProvider(_ value: DeleteGlossaryTermInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/metadata-generation-runs/\(identifier.urlPercentEncoding())/cancel" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/glossary-terms/\(identifier.urlPercentEncoding())" } } -extension CancelSubscriptionInput { +extension DeleteListingInput { - static func urlPathProvider(_ value: CancelSubscriptionInput) -> Swift.String? { + static func urlPathProvider(_ value: DeleteListingInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscriptions/\(identifier.urlPercentEncoding())/cancel" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/listings/\(identifier.urlPercentEncoding())" } } -extension CreateAssetInput { +extension DeleteProjectInput { - static func urlPathProvider(_ value: CreateAssetInput) -> Swift.String? { + static func urlPathProvider(_ value: DeleteProjectInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/assets" + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/projects/\(identifier.urlPercentEncoding())" + } +} + +extension DeleteProjectInput { + + static func queryItemProvider(_ value: DeleteProjectInput) throws -> [Smithy.URIQueryItem] { + var items = [Smithy.URIQueryItem]() + if let skipDeletionCheck = value.skipDeletionCheck { + let skipDeletionCheckQueryItem = Smithy.URIQueryItem(name: "skipDeletionCheck".urlPercentEncoding(), value: Swift.String(skipDeletionCheck).urlPercentEncoding()) + items.append(skipDeletionCheckQueryItem) + } + return items } } -extension CreateAssetFilterInput { +extension DeleteProjectMembershipInput { - static func urlPathProvider(_ value: CreateAssetFilterInput) -> Swift.String? { + static func urlPathProvider(_ value: DeleteProjectMembershipInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let assetIdentifier = value.assetIdentifier else { + guard let projectIdentifier = value.projectIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/assets/\(assetIdentifier.urlPercentEncoding())/filters" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/projects/\(projectIdentifier.urlPercentEncoding())/deleteMembership" } } -extension CreateAssetRevisionInput { +extension DeleteSubscriptionGrantInput { - static func urlPathProvider(_ value: CreateAssetRevisionInput) -> Swift.String? { + static func urlPathProvider(_ value: DeleteSubscriptionGrantInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/assets/\(identifier.urlPercentEncoding())/revisions" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscription-grants/\(identifier.urlPercentEncoding())" } } -extension CreateAssetTypeInput { +extension DeleteSubscriptionRequestInput { - static func urlPathProvider(_ value: CreateAssetTypeInput) -> Swift.String? { + static func urlPathProvider(_ value: DeleteSubscriptionRequestInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/asset-types" - } -} - -extension CreateDataProductInput { - - static func urlPathProvider(_ value: CreateDataProductInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { + guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-products" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscription-requests/\(identifier.urlPercentEncoding())" } } -extension CreateDataProductRevisionInput { +extension DeleteSubscriptionTargetInput { - static func urlPathProvider(_ value: CreateDataProductRevisionInput) -> Swift.String? { + static func urlPathProvider(_ value: DeleteSubscriptionTargetInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } + guard let environmentIdentifier = value.environmentIdentifier else { + return nil + } guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-products/\(identifier.urlPercentEncoding())/revisions" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(environmentIdentifier.urlPercentEncoding())/subscription-targets/\(identifier.urlPercentEncoding())" } } -extension CreateDataSourceInput { +extension DeleteTimeSeriesDataPointsInput { - static func urlPathProvider(_ value: CreateDataSourceInput) -> Swift.String? { + static func urlPathProvider(_ value: DeleteTimeSeriesDataPointsInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-sources" - } -} - -extension CreateDomainInput { - - static func urlPathProvider(_ value: CreateDomainInput) -> Swift.String? { - return "/v2/domains" + guard let entityType = value.entityType else { + return nil + } + guard let entityIdentifier = value.entityIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/entities/\(entityType.rawValue.urlPercentEncoding())/\(entityIdentifier.urlPercentEncoding())/time-series-data-points" } } -extension CreateEnvironmentInput { +extension DeleteTimeSeriesDataPointsInput { - static func urlPathProvider(_ value: CreateEnvironmentInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil + static func queryItemProvider(_ value: DeleteTimeSeriesDataPointsInput) throws -> [Smithy.URIQueryItem] { + var items = [Smithy.URIQueryItem]() + if let clientToken = value.clientToken { + let clientTokenQueryItem = Smithy.URIQueryItem(name: "clientToken".urlPercentEncoding(), value: Swift.String(clientToken).urlPercentEncoding()) + items.append(clientTokenQueryItem) } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments" + guard let formName = value.formName else { + let message = "Creating a URL Query Item failed. formName is required and must not be nil." + throw Smithy.ClientError.unknownError(message) + } + let formNameQueryItem = Smithy.URIQueryItem(name: "formName".urlPercentEncoding(), value: Swift.String(formName).urlPercentEncoding()) + items.append(formNameQueryItem) + return items } } -extension CreateEnvironmentActionInput { +extension DisassociateEnvironmentRoleInput { - static func urlPathProvider(_ value: CreateEnvironmentActionInput) -> Swift.String? { + static func urlPathProvider(_ value: DisassociateEnvironmentRoleInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } guard let environmentIdentifier = value.environmentIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(environmentIdentifier.urlPercentEncoding())/actions" + guard let environmentRoleArn = value.environmentRoleArn else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(environmentIdentifier.urlPercentEncoding())/roles/\(environmentRoleArn.urlPercentEncoding())" } } -extension CreateEnvironmentProfileInput { +extension GetAssetInput { - static func urlPathProvider(_ value: CreateEnvironmentProfileInput) -> Swift.String? { + static func urlPathProvider(_ value: GetAssetInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environment-profiles" + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/assets/\(identifier.urlPercentEncoding())" } } -extension CreateFormTypeInput { +extension GetAssetInput { - static func urlPathProvider(_ value: CreateFormTypeInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil + static func queryItemProvider(_ value: GetAssetInput) throws -> [Smithy.URIQueryItem] { + var items = [Smithy.URIQueryItem]() + if let revision = value.revision { + let revisionQueryItem = Smithy.URIQueryItem(name: "revision".urlPercentEncoding(), value: Swift.String(revision).urlPercentEncoding()) + items.append(revisionQueryItem) } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/form-types" + return items } } -extension CreateGlossaryInput { +extension GetAssetFilterInput { - static func urlPathProvider(_ value: CreateGlossaryInput) -> Swift.String? { + static func urlPathProvider(_ value: GetAssetFilterInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/glossaries" + guard let assetIdentifier = value.assetIdentifier else { + return nil + } + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/assets/\(assetIdentifier.urlPercentEncoding())/filters/\(identifier.urlPercentEncoding())" } } -extension CreateGlossaryTermInput { +extension GetAssetTypeInput { - static func urlPathProvider(_ value: CreateGlossaryTermInput) -> Swift.String? { + static func urlPathProvider(_ value: GetAssetTypeInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/glossary-terms" + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/asset-types/\(identifier.urlPercentEncoding())" } } -extension CreateGroupProfileInput { +extension GetAssetTypeInput { - static func urlPathProvider(_ value: CreateGroupProfileInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil + static func queryItemProvider(_ value: GetAssetTypeInput) throws -> [Smithy.URIQueryItem] { + var items = [Smithy.URIQueryItem]() + if let revision = value.revision { + let revisionQueryItem = Smithy.URIQueryItem(name: "revision".urlPercentEncoding(), value: Swift.String(revision).urlPercentEncoding()) + items.append(revisionQueryItem) } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/group-profiles" + return items } } -extension CreateListingChangeSetInput { +extension GetDataProductInput { - static func urlPathProvider(_ value: CreateListingChangeSetInput) -> Swift.String? { + static func urlPathProvider(_ value: GetDataProductInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/listings/change-set" + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-products/\(identifier.urlPercentEncoding())" } } -extension CreateProjectInput { +extension GetDataProductInput { - static func urlPathProvider(_ value: CreateProjectInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil + static func queryItemProvider(_ value: GetDataProductInput) throws -> [Smithy.URIQueryItem] { + var items = [Smithy.URIQueryItem]() + if let revision = value.revision { + let revisionQueryItem = Smithy.URIQueryItem(name: "revision".urlPercentEncoding(), value: Swift.String(revision).urlPercentEncoding()) + items.append(revisionQueryItem) } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/projects" + return items } } -extension CreateProjectMembershipInput { +extension GetDataSourceInput { - static func urlPathProvider(_ value: CreateProjectMembershipInput) -> Swift.String? { + static func urlPathProvider(_ value: GetDataSourceInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let projectIdentifier = value.projectIdentifier else { + guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/projects/\(projectIdentifier.urlPercentEncoding())/createMembership" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-sources/\(identifier.urlPercentEncoding())" } } -extension CreateSubscriptionGrantInput { +extension GetDataSourceRunInput { - static func urlPathProvider(_ value: CreateSubscriptionGrantInput) -> Swift.String? { + static func urlPathProvider(_ value: GetDataSourceRunInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscription-grants" - } -} - -extension CreateSubscriptionRequestInput { - - static func urlPathProvider(_ value: CreateSubscriptionRequestInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { + guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscription-requests" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-source-runs/\(identifier.urlPercentEncoding())" } } -extension CreateSubscriptionTargetInput { +extension GetDomainInput { - static func urlPathProvider(_ value: CreateSubscriptionTargetInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil - } - guard let environmentIdentifier = value.environmentIdentifier else { + static func urlPathProvider(_ value: GetDomainInput) -> Swift.String? { + guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(environmentIdentifier.urlPercentEncoding())/subscription-targets" + return "/v2/domains/\(identifier.urlPercentEncoding())" } } -extension CreateUserProfileInput { +extension GetDomainUnitInput { - static func urlPathProvider(_ value: CreateUserProfileInput) -> Swift.String? { + static func urlPathProvider(_ value: GetDomainUnitInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/user-profiles" + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/domain-units/\(identifier.urlPercentEncoding())" } } -extension DeleteAssetInput { +extension GetEnvironmentInput { - static func urlPathProvider(_ value: DeleteAssetInput) -> Swift.String? { + static func urlPathProvider(_ value: GetEnvironmentInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/assets/\(identifier.urlPercentEncoding())" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(identifier.urlPercentEncoding())" } } -extension DeleteAssetFilterInput { +extension GetEnvironmentActionInput { - static func urlPathProvider(_ value: DeleteAssetFilterInput) -> Swift.String? { + static func urlPathProvider(_ value: GetEnvironmentActionInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let assetIdentifier = value.assetIdentifier else { + guard let environmentIdentifier = value.environmentIdentifier else { return nil } guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/assets/\(assetIdentifier.urlPercentEncoding())/filters/\(identifier.urlPercentEncoding())" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(environmentIdentifier.urlPercentEncoding())/actions/\(identifier.urlPercentEncoding())" } } -extension DeleteAssetTypeInput { +extension GetEnvironmentBlueprintInput { - static func urlPathProvider(_ value: DeleteAssetTypeInput) -> Swift.String? { + static func urlPathProvider(_ value: GetEnvironmentBlueprintInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/asset-types/\(identifier.urlPercentEncoding())" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environment-blueprints/\(identifier.urlPercentEncoding())" } } -extension DeleteDataProductInput { +extension GetEnvironmentBlueprintConfigurationInput { - static func urlPathProvider(_ value: DeleteDataProductInput) -> Swift.String? { + static func urlPathProvider(_ value: GetEnvironmentBlueprintConfigurationInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let identifier = value.identifier else { + guard let environmentBlueprintIdentifier = value.environmentBlueprintIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-products/\(identifier.urlPercentEncoding())" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environment-blueprint-configurations/\(environmentBlueprintIdentifier.urlPercentEncoding())" } } -extension DeleteDataSourceInput { +extension GetEnvironmentCredentialsInput { - static func urlPathProvider(_ value: DeleteDataSourceInput) -> Swift.String? { + static func urlPathProvider(_ value: GetEnvironmentCredentialsInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let identifier = value.identifier else { + guard let environmentIdentifier = value.environmentIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-sources/\(identifier.urlPercentEncoding())" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(environmentIdentifier.urlPercentEncoding())/credentials" } } -extension DeleteDataSourceInput { +extension GetEnvironmentProfileInput { - static func queryItemProvider(_ value: DeleteDataSourceInput) throws -> [Smithy.URIQueryItem] { - var items = [Smithy.URIQueryItem]() - if let retainPermissionsOnRevokeFailure = value.retainPermissionsOnRevokeFailure { - let retainPermissionsOnRevokeFailureQueryItem = Smithy.URIQueryItem(name: "retainPermissionsOnRevokeFailure".urlPercentEncoding(), value: Swift.String(retainPermissionsOnRevokeFailure).urlPercentEncoding()) - items.append(retainPermissionsOnRevokeFailureQueryItem) + static func urlPathProvider(_ value: GetEnvironmentProfileInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil } - if let clientToken = value.clientToken { - let clientTokenQueryItem = Smithy.URIQueryItem(name: "clientToken".urlPercentEncoding(), value: Swift.String(clientToken).urlPercentEncoding()) - items.append(clientTokenQueryItem) + guard let identifier = value.identifier else { + return nil } - return items + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environment-profiles/\(identifier.urlPercentEncoding())" } } -extension DeleteDomainInput { +extension GetFormTypeInput { - static func urlPathProvider(_ value: DeleteDomainInput) -> Swift.String? { - guard let identifier = value.identifier else { + static func urlPathProvider(_ value: GetFormTypeInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { return nil } - return "/v2/domains/\(identifier.urlPercentEncoding())" + guard let formTypeIdentifier = value.formTypeIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/form-types/\(formTypeIdentifier.urlPercentEncoding())" } } -extension DeleteDomainInput { +extension GetFormTypeInput { - static func queryItemProvider(_ value: DeleteDomainInput) throws -> [Smithy.URIQueryItem] { + static func queryItemProvider(_ value: GetFormTypeInput) throws -> [Smithy.URIQueryItem] { var items = [Smithy.URIQueryItem]() - if let clientToken = value.clientToken { - let clientTokenQueryItem = Smithy.URIQueryItem(name: "clientToken".urlPercentEncoding(), value: Swift.String(clientToken).urlPercentEncoding()) - items.append(clientTokenQueryItem) - } - if let skipDeletionCheck = value.skipDeletionCheck { - let skipDeletionCheckQueryItem = Smithy.URIQueryItem(name: "skipDeletionCheck".urlPercentEncoding(), value: Swift.String(skipDeletionCheck).urlPercentEncoding()) - items.append(skipDeletionCheckQueryItem) + if let revision = value.revision { + let revisionQueryItem = Smithy.URIQueryItem(name: "revision".urlPercentEncoding(), value: Swift.String(revision).urlPercentEncoding()) + items.append(revisionQueryItem) } return items } } -extension DeleteEnvironmentInput { +extension GetGlossaryInput { - static func urlPathProvider(_ value: DeleteEnvironmentInput) -> Swift.String? { + static func urlPathProvider(_ value: GetGlossaryInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(identifier.urlPercentEncoding())" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/glossaries/\(identifier.urlPercentEncoding())" } } -extension DeleteEnvironmentActionInput { +extension GetGlossaryTermInput { - static func urlPathProvider(_ value: DeleteEnvironmentActionInput) -> Swift.String? { + static func urlPathProvider(_ value: GetGlossaryTermInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let environmentIdentifier = value.environmentIdentifier else { - return nil - } guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(environmentIdentifier.urlPercentEncoding())/actions/\(identifier.urlPercentEncoding())" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/glossary-terms/\(identifier.urlPercentEncoding())" } } -extension DeleteEnvironmentBlueprintConfigurationInput { +extension GetGroupProfileInput { - static func urlPathProvider(_ value: DeleteEnvironmentBlueprintConfigurationInput) -> Swift.String? { + static func urlPathProvider(_ value: GetGroupProfileInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let environmentBlueprintIdentifier = value.environmentBlueprintIdentifier else { + guard let groupIdentifier = value.groupIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environment-blueprint-configurations/\(environmentBlueprintIdentifier.urlPercentEncoding())" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/group-profiles/\(groupIdentifier.urlPercentEncoding())" } } -extension DeleteEnvironmentProfileInput { +extension GetIamPortalLoginUrlInput { - static func urlPathProvider(_ value: DeleteEnvironmentProfileInput) -> Swift.String? { + static func urlPathProvider(_ value: GetIamPortalLoginUrlInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let identifier = value.identifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environment-profiles/\(identifier.urlPercentEncoding())" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/get-portal-login-url" } } -extension DeleteFormTypeInput { +extension GetLineageNodeInput { - static func urlPathProvider(_ value: DeleteFormTypeInput) -> Swift.String? { + static func urlPathProvider(_ value: GetLineageNodeInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let formTypeIdentifier = value.formTypeIdentifier else { + guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/form-types/\(formTypeIdentifier.urlPercentEncoding())" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/lineage/nodes/\(identifier.urlPercentEncoding())" } } -extension DeleteGlossaryInput { +extension GetLineageNodeInput { - static func urlPathProvider(_ value: DeleteGlossaryInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil - } - guard let identifier = value.identifier else { - return nil + static func queryItemProvider(_ value: GetLineageNodeInput) throws -> [Smithy.URIQueryItem] { + var items = [Smithy.URIQueryItem]() + if let eventTimestamp = value.eventTimestamp { + let eventTimestampQueryItem = Smithy.URIQueryItem(name: "timestamp".urlPercentEncoding(), value: Swift.String(SmithyTimestamps.TimestampFormatter(format: .dateTime).string(from: eventTimestamp)).urlPercentEncoding()) + items.append(eventTimestampQueryItem) } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/glossaries/\(identifier.urlPercentEncoding())" + return items } } -extension DeleteGlossaryTermInput { +extension GetListingInput { - static func urlPathProvider(_ value: DeleteGlossaryTermInput) -> Swift.String? { + static func urlPathProvider(_ value: GetListingInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/glossary-terms/\(identifier.urlPercentEncoding())" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/listings/\(identifier.urlPercentEncoding())" } } -extension DeleteListingInput { +extension GetListingInput { - static func urlPathProvider(_ value: DeleteListingInput) -> Swift.String? { + static func queryItemProvider(_ value: GetListingInput) throws -> [Smithy.URIQueryItem] { + var items = [Smithy.URIQueryItem]() + if let listingRevision = value.listingRevision { + let listingRevisionQueryItem = Smithy.URIQueryItem(name: "listingRevision".urlPercentEncoding(), value: Swift.String(listingRevision).urlPercentEncoding()) + items.append(listingRevisionQueryItem) + } + return items + } +} + +extension GetMetadataGenerationRunInput { + + static func urlPathProvider(_ value: GetMetadataGenerationRunInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/listings/\(identifier.urlPercentEncoding())" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/metadata-generation-runs/\(identifier.urlPercentEncoding())" } } -extension DeleteProjectInput { +extension GetProjectInput { - static func urlPathProvider(_ value: DeleteProjectInput) -> Swift.String? { + static func urlPathProvider(_ value: GetProjectInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } @@ -16066,34 +17907,22 @@ extension DeleteProjectInput { } } -extension DeleteProjectInput { - - static func queryItemProvider(_ value: DeleteProjectInput) throws -> [Smithy.URIQueryItem] { - var items = [Smithy.URIQueryItem]() - if let skipDeletionCheck = value.skipDeletionCheck { - let skipDeletionCheckQueryItem = Smithy.URIQueryItem(name: "skipDeletionCheck".urlPercentEncoding(), value: Swift.String(skipDeletionCheck).urlPercentEncoding()) - items.append(skipDeletionCheckQueryItem) - } - return items - } -} - -extension DeleteProjectMembershipInput { +extension GetSubscriptionInput { - static func urlPathProvider(_ value: DeleteProjectMembershipInput) -> Swift.String? { + static func urlPathProvider(_ value: GetSubscriptionInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let projectIdentifier = value.projectIdentifier else { + guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/projects/\(projectIdentifier.urlPercentEncoding())/deleteMembership" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscriptions/\(identifier.urlPercentEncoding())" } } -extension DeleteSubscriptionGrantInput { +extension GetSubscriptionGrantInput { - static func urlPathProvider(_ value: DeleteSubscriptionGrantInput) -> Swift.String? { + static func urlPathProvider(_ value: GetSubscriptionGrantInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } @@ -16104,9 +17933,9 @@ extension DeleteSubscriptionGrantInput { } } -extension DeleteSubscriptionRequestInput { +extension GetSubscriptionRequestDetailsInput { - static func urlPathProvider(_ value: DeleteSubscriptionRequestInput) -> Swift.String? { + static func urlPathProvider(_ value: GetSubscriptionRequestDetailsInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } @@ -16117,9 +17946,9 @@ extension DeleteSubscriptionRequestInput { } } -extension DeleteSubscriptionTargetInput { +extension GetSubscriptionTargetInput { - static func urlPathProvider(_ value: DeleteSubscriptionTargetInput) -> Swift.String? { + static func urlPathProvider(_ value: GetSubscriptionTargetInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } @@ -16133,9 +17962,9 @@ extension DeleteSubscriptionTargetInput { } } -extension DeleteTimeSeriesDataPointsInput { +extension GetTimeSeriesDataPointInput { - static func urlPathProvider(_ value: DeleteTimeSeriesDataPointsInput) -> Swift.String? { + static func urlPathProvider(_ value: GetTimeSeriesDataPointInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } @@ -16145,18 +17974,17 @@ extension DeleteTimeSeriesDataPointsInput { guard let entityIdentifier = value.entityIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/entities/\(entityType.rawValue.urlPercentEncoding())/\(entityIdentifier.urlPercentEncoding())/time-series-data-points" + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/entities/\(entityType.rawValue.urlPercentEncoding())/\(entityIdentifier.urlPercentEncoding())/time-series-data-points/\(identifier.urlPercentEncoding())" } } -extension DeleteTimeSeriesDataPointsInput { +extension GetTimeSeriesDataPointInput { - static func queryItemProvider(_ value: DeleteTimeSeriesDataPointsInput) throws -> [Smithy.URIQueryItem] { + static func queryItemProvider(_ value: GetTimeSeriesDataPointInput) throws -> [Smithy.URIQueryItem] { var items = [Smithy.URIQueryItem]() - if let clientToken = value.clientToken { - let clientTokenQueryItem = Smithy.URIQueryItem(name: "clientToken".urlPercentEncoding(), value: Swift.String(clientToken).urlPercentEncoding()) - items.append(clientTokenQueryItem) - } guard let formName = value.formName else { let message = "Creating a URL Query Item failed. formName is required and must not be nil." throw Smithy.ClientError.unknownError(message) @@ -16167,509 +17995,580 @@ extension DeleteTimeSeriesDataPointsInput { } } -extension DisassociateEnvironmentRoleInput { - - static func urlPathProvider(_ value: DisassociateEnvironmentRoleInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil - } - guard let environmentIdentifier = value.environmentIdentifier else { - return nil - } - guard let environmentRoleArn = value.environmentRoleArn else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(environmentIdentifier.urlPercentEncoding())/roles/\(environmentRoleArn.urlPercentEncoding())" - } -} - -extension GetAssetInput { +extension GetUserProfileInput { - static func urlPathProvider(_ value: GetAssetInput) -> Swift.String? { + static func urlPathProvider(_ value: GetUserProfileInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let identifier = value.identifier else { + guard let userIdentifier = value.userIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/assets/\(identifier.urlPercentEncoding())" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/user-profiles/\(userIdentifier.urlPercentEncoding())" } } -extension GetAssetInput { +extension GetUserProfileInput { - static func queryItemProvider(_ value: GetAssetInput) throws -> [Smithy.URIQueryItem] { + static func queryItemProvider(_ value: GetUserProfileInput) throws -> [Smithy.URIQueryItem] { var items = [Smithy.URIQueryItem]() - if let revision = value.revision { - let revisionQueryItem = Smithy.URIQueryItem(name: "revision".urlPercentEncoding(), value: Swift.String(revision).urlPercentEncoding()) - items.append(revisionQueryItem) + if let type = value.type { + let typeQueryItem = Smithy.URIQueryItem(name: "type".urlPercentEncoding(), value: Swift.String(type.rawValue).urlPercentEncoding()) + items.append(typeQueryItem) } return items } } -extension GetAssetFilterInput { +extension ListAssetFiltersInput { - static func urlPathProvider(_ value: GetAssetFilterInput) -> Swift.String? { + static func urlPathProvider(_ value: ListAssetFiltersInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } guard let assetIdentifier = value.assetIdentifier else { return nil } - guard let identifier = value.identifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/assets/\(assetIdentifier.urlPercentEncoding())/filters/\(identifier.urlPercentEncoding())" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/assets/\(assetIdentifier.urlPercentEncoding())/filters" } } -extension GetAssetTypeInput { +extension ListAssetFiltersInput { - static func urlPathProvider(_ value: GetAssetTypeInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil + static func queryItemProvider(_ value: ListAssetFiltersInput) throws -> [Smithy.URIQueryItem] { + var items = [Smithy.URIQueryItem]() + if let nextToken = value.nextToken { + let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) + items.append(nextTokenQueryItem) } - guard let identifier = value.identifier else { - return nil + if let maxResults = value.maxResults { + let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) + items.append(maxResultsQueryItem) } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/asset-types/\(identifier.urlPercentEncoding())" - } -} - -extension GetAssetTypeInput { - - static func queryItemProvider(_ value: GetAssetTypeInput) throws -> [Smithy.URIQueryItem] { - var items = [Smithy.URIQueryItem]() - if let revision = value.revision { - let revisionQueryItem = Smithy.URIQueryItem(name: "revision".urlPercentEncoding(), value: Swift.String(revision).urlPercentEncoding()) - items.append(revisionQueryItem) + if let status = value.status { + let statusQueryItem = Smithy.URIQueryItem(name: "status".urlPercentEncoding(), value: Swift.String(status.rawValue).urlPercentEncoding()) + items.append(statusQueryItem) } return items } } -extension GetDataProductInput { +extension ListAssetRevisionsInput { - static func urlPathProvider(_ value: GetDataProductInput) -> Swift.String? { + static func urlPathProvider(_ value: ListAssetRevisionsInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-products/\(identifier.urlPercentEncoding())" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/assets/\(identifier.urlPercentEncoding())/revisions" } } -extension GetDataProductInput { +extension ListAssetRevisionsInput { - static func queryItemProvider(_ value: GetDataProductInput) throws -> [Smithy.URIQueryItem] { + static func queryItemProvider(_ value: ListAssetRevisionsInput) throws -> [Smithy.URIQueryItem] { var items = [Smithy.URIQueryItem]() - if let revision = value.revision { - let revisionQueryItem = Smithy.URIQueryItem(name: "revision".urlPercentEncoding(), value: Swift.String(revision).urlPercentEncoding()) - items.append(revisionQueryItem) - } - return items - } -} - -extension GetDataSourceInput { - - static func urlPathProvider(_ value: GetDataSourceInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil + if let nextToken = value.nextToken { + let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) + items.append(nextTokenQueryItem) } - guard let identifier = value.identifier else { - return nil + if let maxResults = value.maxResults { + let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) + items.append(maxResultsQueryItem) } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-sources/\(identifier.urlPercentEncoding())" + return items } } -extension GetDataSourceRunInput { +extension ListDataProductRevisionsInput { - static func urlPathProvider(_ value: GetDataSourceRunInput) -> Swift.String? { + static func urlPathProvider(_ value: ListDataProductRevisionsInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-source-runs/\(identifier.urlPercentEncoding())" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-products/\(identifier.urlPercentEncoding())/revisions" } } -extension GetDomainInput { +extension ListDataProductRevisionsInput { - static func urlPathProvider(_ value: GetDomainInput) -> Swift.String? { - guard let identifier = value.identifier else { - return nil + static func queryItemProvider(_ value: ListDataProductRevisionsInput) throws -> [Smithy.URIQueryItem] { + var items = [Smithy.URIQueryItem]() + if let maxResults = value.maxResults { + let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) + items.append(maxResultsQueryItem) } - return "/v2/domains/\(identifier.urlPercentEncoding())" + if let nextToken = value.nextToken { + let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) + items.append(nextTokenQueryItem) + } + return items } } -extension GetEnvironmentInput { +extension ListDataSourceRunActivitiesInput { - static func urlPathProvider(_ value: GetEnvironmentInput) -> Swift.String? { + static func urlPathProvider(_ value: ListDataSourceRunActivitiesInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(identifier.urlPercentEncoding())" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-source-runs/\(identifier.urlPercentEncoding())/activities" } } -extension GetEnvironmentActionInput { +extension ListDataSourceRunActivitiesInput { - static func urlPathProvider(_ value: GetEnvironmentActionInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil + static func queryItemProvider(_ value: ListDataSourceRunActivitiesInput) throws -> [Smithy.URIQueryItem] { + var items = [Smithy.URIQueryItem]() + if let nextToken = value.nextToken { + let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) + items.append(nextTokenQueryItem) } - guard let environmentIdentifier = value.environmentIdentifier else { - return nil + if let maxResults = value.maxResults { + let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) + items.append(maxResultsQueryItem) } - guard let identifier = value.identifier else { - return nil + if let status = value.status { + let statusQueryItem = Smithy.URIQueryItem(name: "status".urlPercentEncoding(), value: Swift.String(status.rawValue).urlPercentEncoding()) + items.append(statusQueryItem) } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(environmentIdentifier.urlPercentEncoding())/actions/\(identifier.urlPercentEncoding())" + return items } } -extension GetEnvironmentBlueprintInput { +extension ListDataSourceRunsInput { - static func urlPathProvider(_ value: GetEnvironmentBlueprintInput) -> Swift.String? { + static func urlPathProvider(_ value: ListDataSourceRunsInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let identifier = value.identifier else { + guard let dataSourceIdentifier = value.dataSourceIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environment-blueprints/\(identifier.urlPercentEncoding())" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-sources/\(dataSourceIdentifier.urlPercentEncoding())/runs" } } -extension GetEnvironmentBlueprintConfigurationInput { +extension ListDataSourceRunsInput { - static func urlPathProvider(_ value: GetEnvironmentBlueprintConfigurationInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil + static func queryItemProvider(_ value: ListDataSourceRunsInput) throws -> [Smithy.URIQueryItem] { + var items = [Smithy.URIQueryItem]() + if let nextToken = value.nextToken { + let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) + items.append(nextTokenQueryItem) } - guard let environmentBlueprintIdentifier = value.environmentBlueprintIdentifier else { - return nil + if let maxResults = value.maxResults { + let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) + items.append(maxResultsQueryItem) } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environment-blueprint-configurations/\(environmentBlueprintIdentifier.urlPercentEncoding())" + if let status = value.status { + let statusQueryItem = Smithy.URIQueryItem(name: "status".urlPercentEncoding(), value: Swift.String(status.rawValue).urlPercentEncoding()) + items.append(statusQueryItem) + } + return items } } -extension GetEnvironmentCredentialsInput { +extension ListDataSourcesInput { - static func urlPathProvider(_ value: GetEnvironmentCredentialsInput) -> Swift.String? { + static func urlPathProvider(_ value: ListDataSourcesInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let environmentIdentifier = value.environmentIdentifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(environmentIdentifier.urlPercentEncoding())/credentials" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-sources" } } -extension GetEnvironmentProfileInput { +extension ListDataSourcesInput { - static func urlPathProvider(_ value: GetEnvironmentProfileInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil + static func queryItemProvider(_ value: ListDataSourcesInput) throws -> [Smithy.URIQueryItem] { + var items = [Smithy.URIQueryItem]() + if let environmentIdentifier = value.environmentIdentifier { + let environmentIdentifierQueryItem = Smithy.URIQueryItem(name: "environmentIdentifier".urlPercentEncoding(), value: Swift.String(environmentIdentifier).urlPercentEncoding()) + items.append(environmentIdentifierQueryItem) } - guard let identifier = value.identifier else { - return nil + if let nextToken = value.nextToken { + let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) + items.append(nextTokenQueryItem) } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environment-profiles/\(identifier.urlPercentEncoding())" + if let maxResults = value.maxResults { + let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) + items.append(maxResultsQueryItem) + } + if let name = value.name { + let nameQueryItem = Smithy.URIQueryItem(name: "name".urlPercentEncoding(), value: Swift.String(name).urlPercentEncoding()) + items.append(nameQueryItem) + } + guard let projectIdentifier = value.projectIdentifier else { + let message = "Creating a URL Query Item failed. projectIdentifier is required and must not be nil." + throw Smithy.ClientError.unknownError(message) + } + let projectIdentifierQueryItem = Smithy.URIQueryItem(name: "projectIdentifier".urlPercentEncoding(), value: Swift.String(projectIdentifier).urlPercentEncoding()) + items.append(projectIdentifierQueryItem) + if let type = value.type { + let typeQueryItem = Smithy.URIQueryItem(name: "type".urlPercentEncoding(), value: Swift.String(type).urlPercentEncoding()) + items.append(typeQueryItem) + } + if let status = value.status { + let statusQueryItem = Smithy.URIQueryItem(name: "status".urlPercentEncoding(), value: Swift.String(status.rawValue).urlPercentEncoding()) + items.append(statusQueryItem) + } + return items } } -extension GetFormTypeInput { +extension ListDomainsInput { - static func urlPathProvider(_ value: GetFormTypeInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil - } - guard let formTypeIdentifier = value.formTypeIdentifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/form-types/\(formTypeIdentifier.urlPercentEncoding())" + static func urlPathProvider(_ value: ListDomainsInput) -> Swift.String? { + return "/v2/domains" } } -extension GetFormTypeInput { +extension ListDomainsInput { - static func queryItemProvider(_ value: GetFormTypeInput) throws -> [Smithy.URIQueryItem] { + static func queryItemProvider(_ value: ListDomainsInput) throws -> [Smithy.URIQueryItem] { var items = [Smithy.URIQueryItem]() - if let revision = value.revision { - let revisionQueryItem = Smithy.URIQueryItem(name: "revision".urlPercentEncoding(), value: Swift.String(revision).urlPercentEncoding()) - items.append(revisionQueryItem) + if let maxResults = value.maxResults { + let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) + items.append(maxResultsQueryItem) + } + if let nextToken = value.nextToken { + let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) + items.append(nextTokenQueryItem) + } + if let status = value.status { + let statusQueryItem = Smithy.URIQueryItem(name: "status".urlPercentEncoding(), value: Swift.String(status.rawValue).urlPercentEncoding()) + items.append(statusQueryItem) } return items } } -extension GetGlossaryInput { +extension ListDomainUnitsForParentInput { - static func urlPathProvider(_ value: GetGlossaryInput) -> Swift.String? { + static func urlPathProvider(_ value: ListDomainUnitsForParentInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let identifier = value.identifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/glossaries/\(identifier.urlPercentEncoding())" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/domain-units" } } -extension GetGlossaryTermInput { +extension ListDomainUnitsForParentInput { - static func urlPathProvider(_ value: GetGlossaryTermInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil + static func queryItemProvider(_ value: ListDomainUnitsForParentInput) throws -> [Smithy.URIQueryItem] { + var items = [Smithy.URIQueryItem]() + if let maxResults = value.maxResults { + let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) + items.append(maxResultsQueryItem) } - guard let identifier = value.identifier else { - return nil + if let nextToken = value.nextToken { + let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) + items.append(nextTokenQueryItem) } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/glossary-terms/\(identifier.urlPercentEncoding())" + guard let parentDomainUnitIdentifier = value.parentDomainUnitIdentifier else { + let message = "Creating a URL Query Item failed. parentDomainUnitIdentifier is required and must not be nil." + throw Smithy.ClientError.unknownError(message) + } + let parentDomainUnitIdentifierQueryItem = Smithy.URIQueryItem(name: "parentDomainUnitIdentifier".urlPercentEncoding(), value: Swift.String(parentDomainUnitIdentifier).urlPercentEncoding()) + items.append(parentDomainUnitIdentifierQueryItem) + return items } } -extension GetGroupProfileInput { +extension ListEntityOwnersInput { - static func urlPathProvider(_ value: GetGroupProfileInput) -> Swift.String? { + static func urlPathProvider(_ value: ListEntityOwnersInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let groupIdentifier = value.groupIdentifier else { + guard let entityType = value.entityType else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/group-profiles/\(groupIdentifier.urlPercentEncoding())" + guard let entityIdentifier = value.entityIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/entities/\(entityType.rawValue.urlPercentEncoding())/\(entityIdentifier.urlPercentEncoding())/owners" } } -extension GetIamPortalLoginUrlInput { +extension ListEntityOwnersInput { - static func urlPathProvider(_ value: GetIamPortalLoginUrlInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil + static func queryItemProvider(_ value: ListEntityOwnersInput) throws -> [Smithy.URIQueryItem] { + var items = [Smithy.URIQueryItem]() + if let maxResults = value.maxResults { + let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) + items.append(maxResultsQueryItem) } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/get-portal-login-url" + if let nextToken = value.nextToken { + let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) + items.append(nextTokenQueryItem) + } + return items } } -extension GetLineageNodeInput { +extension ListEnvironmentActionsInput { - static func urlPathProvider(_ value: GetLineageNodeInput) -> Swift.String? { + static func urlPathProvider(_ value: ListEnvironmentActionsInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let identifier = value.identifier else { + guard let environmentIdentifier = value.environmentIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/lineage/nodes/\(identifier.urlPercentEncoding())" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(environmentIdentifier.urlPercentEncoding())/actions" } } -extension GetLineageNodeInput { +extension ListEnvironmentActionsInput { - static func queryItemProvider(_ value: GetLineageNodeInput) throws -> [Smithy.URIQueryItem] { + static func queryItemProvider(_ value: ListEnvironmentActionsInput) throws -> [Smithy.URIQueryItem] { var items = [Smithy.URIQueryItem]() - if let eventTimestamp = value.eventTimestamp { - let eventTimestampQueryItem = Smithy.URIQueryItem(name: "timestamp".urlPercentEncoding(), value: Swift.String(SmithyTimestamps.TimestampFormatter(format: .dateTime).string(from: eventTimestamp)).urlPercentEncoding()) - items.append(eventTimestampQueryItem) + if let nextToken = value.nextToken { + let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) + items.append(nextTokenQueryItem) + } + if let maxResults = value.maxResults { + let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) + items.append(maxResultsQueryItem) } return items } } -extension GetListingInput { +extension ListEnvironmentBlueprintConfigurationsInput { - static func urlPathProvider(_ value: GetListingInput) -> Swift.String? { + static func urlPathProvider(_ value: ListEnvironmentBlueprintConfigurationsInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let identifier = value.identifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/listings/\(identifier.urlPercentEncoding())" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environment-blueprint-configurations" } } -extension GetListingInput { +extension ListEnvironmentBlueprintConfigurationsInput { - static func queryItemProvider(_ value: GetListingInput) throws -> [Smithy.URIQueryItem] { + static func queryItemProvider(_ value: ListEnvironmentBlueprintConfigurationsInput) throws -> [Smithy.URIQueryItem] { var items = [Smithy.URIQueryItem]() - if let listingRevision = value.listingRevision { - let listingRevisionQueryItem = Smithy.URIQueryItem(name: "listingRevision".urlPercentEncoding(), value: Swift.String(listingRevision).urlPercentEncoding()) - items.append(listingRevisionQueryItem) + if let maxResults = value.maxResults { + let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) + items.append(maxResultsQueryItem) + } + if let nextToken = value.nextToken { + let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) + items.append(nextTokenQueryItem) } return items } } -extension GetMetadataGenerationRunInput { +extension ListEnvironmentBlueprintsInput { - static func urlPathProvider(_ value: GetMetadataGenerationRunInput) -> Swift.String? { + static func urlPathProvider(_ value: ListEnvironmentBlueprintsInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let identifier = value.identifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/metadata-generation-runs/\(identifier.urlPercentEncoding())" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environment-blueprints" } } -extension GetProjectInput { +extension ListEnvironmentBlueprintsInput { - static func urlPathProvider(_ value: GetProjectInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil + static func queryItemProvider(_ value: ListEnvironmentBlueprintsInput) throws -> [Smithy.URIQueryItem] { + var items = [Smithy.URIQueryItem]() + if let maxResults = value.maxResults { + let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) + items.append(maxResultsQueryItem) } - guard let identifier = value.identifier else { - return nil + if let nextToken = value.nextToken { + let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) + items.append(nextTokenQueryItem) } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/projects/\(identifier.urlPercentEncoding())" + if let managed = value.managed { + let managedQueryItem = Smithy.URIQueryItem(name: "managed".urlPercentEncoding(), value: Swift.String(managed).urlPercentEncoding()) + items.append(managedQueryItem) + } + if let name = value.name { + let nameQueryItem = Smithy.URIQueryItem(name: "name".urlPercentEncoding(), value: Swift.String(name).urlPercentEncoding()) + items.append(nameQueryItem) + } + return items } } -extension GetSubscriptionInput { +extension ListEnvironmentProfilesInput { - static func urlPathProvider(_ value: GetSubscriptionInput) -> Swift.String? { + static func urlPathProvider(_ value: ListEnvironmentProfilesInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let identifier = value.identifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscriptions/\(identifier.urlPercentEncoding())" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environment-profiles" } } -extension GetSubscriptionGrantInput { +extension ListEnvironmentProfilesInput { - static func urlPathProvider(_ value: GetSubscriptionGrantInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil + static func queryItemProvider(_ value: ListEnvironmentProfilesInput) throws -> [Smithy.URIQueryItem] { + var items = [Smithy.URIQueryItem]() + if let environmentBlueprintIdentifier = value.environmentBlueprintIdentifier { + let environmentBlueprintIdentifierQueryItem = Smithy.URIQueryItem(name: "environmentBlueprintIdentifier".urlPercentEncoding(), value: Swift.String(environmentBlueprintIdentifier).urlPercentEncoding()) + items.append(environmentBlueprintIdentifierQueryItem) } - guard let identifier = value.identifier else { - return nil + if let awsAccountId = value.awsAccountId { + let awsAccountIdQueryItem = Smithy.URIQueryItem(name: "awsAccountId".urlPercentEncoding(), value: Swift.String(awsAccountId).urlPercentEncoding()) + items.append(awsAccountIdQueryItem) } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscription-grants/\(identifier.urlPercentEncoding())" + if let nextToken = value.nextToken { + let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) + items.append(nextTokenQueryItem) + } + if let maxResults = value.maxResults { + let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) + items.append(maxResultsQueryItem) + } + if let name = value.name { + let nameQueryItem = Smithy.URIQueryItem(name: "name".urlPercentEncoding(), value: Swift.String(name).urlPercentEncoding()) + items.append(nameQueryItem) + } + if let awsAccountRegion = value.awsAccountRegion { + let awsAccountRegionQueryItem = Smithy.URIQueryItem(name: "awsAccountRegion".urlPercentEncoding(), value: Swift.String(awsAccountRegion).urlPercentEncoding()) + items.append(awsAccountRegionQueryItem) + } + if let projectIdentifier = value.projectIdentifier { + let projectIdentifierQueryItem = Smithy.URIQueryItem(name: "projectIdentifier".urlPercentEncoding(), value: Swift.String(projectIdentifier).urlPercentEncoding()) + items.append(projectIdentifierQueryItem) + } + return items } } -extension GetSubscriptionRequestDetailsInput { +extension ListEnvironmentsInput { - static func urlPathProvider(_ value: GetSubscriptionRequestDetailsInput) -> Swift.String? { + static func urlPathProvider(_ value: ListEnvironmentsInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let identifier = value.identifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscription-requests/\(identifier.urlPercentEncoding())" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments" } } -extension GetSubscriptionTargetInput { +extension ListEnvironmentsInput { - static func urlPathProvider(_ value: GetSubscriptionTargetInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil + static func queryItemProvider(_ value: ListEnvironmentsInput) throws -> [Smithy.URIQueryItem] { + var items = [Smithy.URIQueryItem]() + if let environmentBlueprintIdentifier = value.environmentBlueprintIdentifier { + let environmentBlueprintIdentifierQueryItem = Smithy.URIQueryItem(name: "environmentBlueprintIdentifier".urlPercentEncoding(), value: Swift.String(environmentBlueprintIdentifier).urlPercentEncoding()) + items.append(environmentBlueprintIdentifierQueryItem) } - guard let environmentIdentifier = value.environmentIdentifier else { - return nil + if let awsAccountId = value.awsAccountId { + let awsAccountIdQueryItem = Smithy.URIQueryItem(name: "awsAccountId".urlPercentEncoding(), value: Swift.String(awsAccountId).urlPercentEncoding()) + items.append(awsAccountIdQueryItem) } - guard let identifier = value.identifier else { - return nil + if let environmentProfileIdentifier = value.environmentProfileIdentifier { + let environmentProfileIdentifierQueryItem = Smithy.URIQueryItem(name: "environmentProfileIdentifier".urlPercentEncoding(), value: Swift.String(environmentProfileIdentifier).urlPercentEncoding()) + items.append(environmentProfileIdentifierQueryItem) } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(environmentIdentifier.urlPercentEncoding())/subscription-targets/\(identifier.urlPercentEncoding())" - } -} - -extension GetTimeSeriesDataPointInput { - - static func urlPathProvider(_ value: GetTimeSeriesDataPointInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil + if let provider = value.provider { + let providerQueryItem = Smithy.URIQueryItem(name: "provider".urlPercentEncoding(), value: Swift.String(provider).urlPercentEncoding()) + items.append(providerQueryItem) } - guard let entityType = value.entityType else { - return nil + if let maxResults = value.maxResults { + let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) + items.append(maxResultsQueryItem) } - guard let entityIdentifier = value.entityIdentifier else { - return nil + if let nextToken = value.nextToken { + let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) + items.append(nextTokenQueryItem) } - guard let identifier = value.identifier else { - return nil + if let name = value.name { + let nameQueryItem = Smithy.URIQueryItem(name: "name".urlPercentEncoding(), value: Swift.String(name).urlPercentEncoding()) + items.append(nameQueryItem) } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/entities/\(entityType.rawValue.urlPercentEncoding())/\(entityIdentifier.urlPercentEncoding())/time-series-data-points/\(identifier.urlPercentEncoding())" - } -} - -extension GetTimeSeriesDataPointInput { - - static func queryItemProvider(_ value: GetTimeSeriesDataPointInput) throws -> [Smithy.URIQueryItem] { - var items = [Smithy.URIQueryItem]() - guard let formName = value.formName else { - let message = "Creating a URL Query Item failed. formName is required and must not be nil." + if let awsAccountRegion = value.awsAccountRegion { + let awsAccountRegionQueryItem = Smithy.URIQueryItem(name: "awsAccountRegion".urlPercentEncoding(), value: Swift.String(awsAccountRegion).urlPercentEncoding()) + items.append(awsAccountRegionQueryItem) + } + guard let projectIdentifier = value.projectIdentifier else { + let message = "Creating a URL Query Item failed. projectIdentifier is required and must not be nil." throw Smithy.ClientError.unknownError(message) } - let formNameQueryItem = Smithy.URIQueryItem(name: "formName".urlPercentEncoding(), value: Swift.String(formName).urlPercentEncoding()) - items.append(formNameQueryItem) + let projectIdentifierQueryItem = Smithy.URIQueryItem(name: "projectIdentifier".urlPercentEncoding(), value: Swift.String(projectIdentifier).urlPercentEncoding()) + items.append(projectIdentifierQueryItem) + if let status = value.status { + let statusQueryItem = Smithy.URIQueryItem(name: "status".urlPercentEncoding(), value: Swift.String(status.rawValue).urlPercentEncoding()) + items.append(statusQueryItem) + } return items } } -extension GetUserProfileInput { +extension ListLineageNodeHistoryInput { - static func urlPathProvider(_ value: GetUserProfileInput) -> Swift.String? { + static func urlPathProvider(_ value: ListLineageNodeHistoryInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let userIdentifier = value.userIdentifier else { + guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/user-profiles/\(userIdentifier.urlPercentEncoding())" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/lineage/nodes/\(identifier.urlPercentEncoding())/history" } } -extension GetUserProfileInput { +extension ListLineageNodeHistoryInput { - static func queryItemProvider(_ value: GetUserProfileInput) throws -> [Smithy.URIQueryItem] { + static func queryItemProvider(_ value: ListLineageNodeHistoryInput) throws -> [Smithy.URIQueryItem] { var items = [Smithy.URIQueryItem]() - if let type = value.type { - let typeQueryItem = Smithy.URIQueryItem(name: "type".urlPercentEncoding(), value: Swift.String(type.rawValue).urlPercentEncoding()) - items.append(typeQueryItem) + if let eventTimestampGTE = value.eventTimestampGTE { + let eventTimestampGTEQueryItem = Smithy.URIQueryItem(name: "timestampGTE".urlPercentEncoding(), value: Swift.String(SmithyTimestamps.TimestampFormatter(format: .dateTime).string(from: eventTimestampGTE)).urlPercentEncoding()) + items.append(eventTimestampGTEQueryItem) + } + if let maxResults = value.maxResults { + let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) + items.append(maxResultsQueryItem) + } + if let nextToken = value.nextToken { + let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) + items.append(nextTokenQueryItem) + } + if let sortOrder = value.sortOrder { + let sortOrderQueryItem = Smithy.URIQueryItem(name: "sortOrder".urlPercentEncoding(), value: Swift.String(sortOrder.rawValue).urlPercentEncoding()) + items.append(sortOrderQueryItem) + } + if let direction = value.direction { + let directionQueryItem = Smithy.URIQueryItem(name: "direction".urlPercentEncoding(), value: Swift.String(direction.rawValue).urlPercentEncoding()) + items.append(directionQueryItem) + } + if let eventTimestampLTE = value.eventTimestampLTE { + let eventTimestampLTEQueryItem = Smithy.URIQueryItem(name: "timestampLTE".urlPercentEncoding(), value: Swift.String(SmithyTimestamps.TimestampFormatter(format: .dateTime).string(from: eventTimestampLTE)).urlPercentEncoding()) + items.append(eventTimestampLTEQueryItem) } return items } } -extension ListAssetFiltersInput { +extension ListMetadataGenerationRunsInput { - static func urlPathProvider(_ value: ListAssetFiltersInput) -> Swift.String? { + static func urlPathProvider(_ value: ListMetadataGenerationRunsInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let assetIdentifier = value.assetIdentifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/assets/\(assetIdentifier.urlPercentEncoding())/filters" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/metadata-generation-runs" } } -extension ListAssetFiltersInput { +extension ListMetadataGenerationRunsInput { - static func queryItemProvider(_ value: ListAssetFiltersInput) throws -> [Smithy.URIQueryItem] { + static func queryItemProvider(_ value: ListMetadataGenerationRunsInput) throws -> [Smithy.URIQueryItem] { var items = [Smithy.URIQueryItem]() if let nextToken = value.nextToken { let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) @@ -16679,6 +18578,10 @@ extension ListAssetFiltersInput { let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) items.append(maxResultsQueryItem) } + if let type = value.type { + let typeQueryItem = Smithy.URIQueryItem(name: "type".urlPercentEncoding(), value: Swift.String(type.rawValue).urlPercentEncoding()) + items.append(typeQueryItem) + } if let status = value.status { let statusQueryItem = Smithy.URIQueryItem(name: "status".urlPercentEncoding(), value: Swift.String(status.rawValue).urlPercentEncoding()) items.append(statusQueryItem) @@ -16687,51 +18590,75 @@ extension ListAssetFiltersInput { } } -extension ListAssetRevisionsInput { +extension ListNotificationsInput { - static func urlPathProvider(_ value: ListAssetRevisionsInput) -> Swift.String? { + static func urlPathProvider(_ value: ListNotificationsInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let identifier = value.identifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/assets/\(identifier.urlPercentEncoding())/revisions" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/notifications" } } -extension ListAssetRevisionsInput { +extension ListNotificationsInput { - static func queryItemProvider(_ value: ListAssetRevisionsInput) throws -> [Smithy.URIQueryItem] { + static func queryItemProvider(_ value: ListNotificationsInput) throws -> [Smithy.URIQueryItem] { var items = [Smithy.URIQueryItem]() - if let nextToken = value.nextToken { - let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) - items.append(nextTokenQueryItem) + if let beforeTimestamp = value.beforeTimestamp { + let beforeTimestampQueryItem = Smithy.URIQueryItem(name: "beforeTimestamp".urlPercentEncoding(), value: Swift.String(SmithyTimestamps.TimestampFormatter(format: .dateTime).string(from: beforeTimestamp)).urlPercentEncoding()) + items.append(beforeTimestampQueryItem) } if let maxResults = value.maxResults { let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) items.append(maxResultsQueryItem) } + if let nextToken = value.nextToken { + let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) + items.append(nextTokenQueryItem) + } + if let subjects = value.subjects { + subjects.forEach { queryItemValue in + let queryItem = Smithy.URIQueryItem(name: "subjects".urlPercentEncoding(), value: Swift.String(queryItemValue).urlPercentEncoding()) + items.append(queryItem) + } + } + guard let type = value.type else { + let message = "Creating a URL Query Item failed. type is required and must not be nil." + throw Smithy.ClientError.unknownError(message) + } + let typeQueryItem = Smithy.URIQueryItem(name: "type".urlPercentEncoding(), value: Swift.String(type.rawValue).urlPercentEncoding()) + items.append(typeQueryItem) + if let afterTimestamp = value.afterTimestamp { + let afterTimestampQueryItem = Smithy.URIQueryItem(name: "afterTimestamp".urlPercentEncoding(), value: Swift.String(SmithyTimestamps.TimestampFormatter(format: .dateTime).string(from: afterTimestamp)).urlPercentEncoding()) + items.append(afterTimestampQueryItem) + } + if let taskStatus = value.taskStatus { + let taskStatusQueryItem = Smithy.URIQueryItem(name: "taskStatus".urlPercentEncoding(), value: Swift.String(taskStatus.rawValue).urlPercentEncoding()) + items.append(taskStatusQueryItem) + } return items } } -extension ListDataProductRevisionsInput { +extension ListPolicyGrantsInput { - static func urlPathProvider(_ value: ListDataProductRevisionsInput) -> Swift.String? { + static func urlPathProvider(_ value: ListPolicyGrantsInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let identifier = value.identifier else { + guard let entityType = value.entityType else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-products/\(identifier.urlPercentEncoding())/revisions" + guard let entityIdentifier = value.entityIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/policies/managed/\(entityType.rawValue.urlPercentEncoding())/\(entityIdentifier.urlPercentEncoding())/grants" } } -extension ListDataProductRevisionsInput { +extension ListPolicyGrantsInput { - static func queryItemProvider(_ value: ListDataProductRevisionsInput) throws -> [Smithy.URIQueryItem] { + static func queryItemProvider(_ value: ListPolicyGrantsInput) throws -> [Smithy.URIQueryItem] { var items = [Smithy.URIQueryItem]() if let maxResults = value.maxResults { let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) @@ -16741,26 +18668,32 @@ extension ListDataProductRevisionsInput { let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) items.append(nextTokenQueryItem) } + guard let policyType = value.policyType else { + let message = "Creating a URL Query Item failed. policyType is required and must not be nil." + throw Smithy.ClientError.unknownError(message) + } + let policyTypeQueryItem = Smithy.URIQueryItem(name: "policyType".urlPercentEncoding(), value: Swift.String(policyType.rawValue).urlPercentEncoding()) + items.append(policyTypeQueryItem) return items } } -extension ListDataSourceRunActivitiesInput { +extension ListProjectMembershipsInput { - static func urlPathProvider(_ value: ListDataSourceRunActivitiesInput) -> Swift.String? { + static func urlPathProvider(_ value: ListProjectMembershipsInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let identifier = value.identifier else { + guard let projectIdentifier = value.projectIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-source-runs/\(identifier.urlPercentEncoding())/activities" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/projects/\(projectIdentifier.urlPercentEncoding())/memberships" } } -extension ListDataSourceRunActivitiesInput { +extension ListProjectMembershipsInput { - static func queryItemProvider(_ value: ListDataSourceRunActivitiesInput) throws -> [Smithy.URIQueryItem] { + static func queryItemProvider(_ value: ListProjectMembershipsInput) throws -> [Smithy.URIQueryItem] { var items = [Smithy.URIQueryItem]() if let nextToken = value.nextToken { let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) @@ -16770,31 +18703,36 @@ extension ListDataSourceRunActivitiesInput { let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) items.append(maxResultsQueryItem) } - if let status = value.status { - let statusQueryItem = Smithy.URIQueryItem(name: "status".urlPercentEncoding(), value: Swift.String(status.rawValue).urlPercentEncoding()) - items.append(statusQueryItem) + if let sortOrder = value.sortOrder { + let sortOrderQueryItem = Smithy.URIQueryItem(name: "sortOrder".urlPercentEncoding(), value: Swift.String(sortOrder.rawValue).urlPercentEncoding()) + items.append(sortOrderQueryItem) + } + if let sortBy = value.sortBy { + let sortByQueryItem = Smithy.URIQueryItem(name: "sortBy".urlPercentEncoding(), value: Swift.String(sortBy.rawValue).urlPercentEncoding()) + items.append(sortByQueryItem) } return items } } -extension ListDataSourceRunsInput { +extension ListProjectsInput { - static func urlPathProvider(_ value: ListDataSourceRunsInput) -> Swift.String? { + static func urlPathProvider(_ value: ListProjectsInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let dataSourceIdentifier = value.dataSourceIdentifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-sources/\(dataSourceIdentifier.urlPercentEncoding())/runs" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/projects" } } -extension ListDataSourceRunsInput { +extension ListProjectsInput { - static func queryItemProvider(_ value: ListDataSourceRunsInput) throws -> [Smithy.URIQueryItem] { + static func queryItemProvider(_ value: ListProjectsInput) throws -> [Smithy.URIQueryItem] { var items = [Smithy.URIQueryItem]() + if let userIdentifier = value.userIdentifier { + let userIdentifierQueryItem = Smithy.URIQueryItem(name: "userIdentifier".urlPercentEncoding(), value: Swift.String(userIdentifier).urlPercentEncoding()) + items.append(userIdentifierQueryItem) + } if let nextToken = value.nextToken { let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) items.append(nextTokenQueryItem) @@ -16803,73 +18741,94 @@ extension ListDataSourceRunsInput { let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) items.append(maxResultsQueryItem) } - if let status = value.status { - let statusQueryItem = Smithy.URIQueryItem(name: "status".urlPercentEncoding(), value: Swift.String(status.rawValue).urlPercentEncoding()) - items.append(statusQueryItem) + if let name = value.name { + let nameQueryItem = Smithy.URIQueryItem(name: "name".urlPercentEncoding(), value: Swift.String(name).urlPercentEncoding()) + items.append(nameQueryItem) + } + if let groupIdentifier = value.groupIdentifier { + let groupIdentifierQueryItem = Smithy.URIQueryItem(name: "groupIdentifier".urlPercentEncoding(), value: Swift.String(groupIdentifier).urlPercentEncoding()) + items.append(groupIdentifierQueryItem) } return items } } -extension ListDataSourcesInput { +extension ListSubscriptionGrantsInput { - static func urlPathProvider(_ value: ListDataSourcesInput) -> Swift.String? { + static func urlPathProvider(_ value: ListSubscriptionGrantsInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-sources" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscription-grants" } } -extension ListDataSourcesInput { +extension ListSubscriptionGrantsInput { - static func queryItemProvider(_ value: ListDataSourcesInput) throws -> [Smithy.URIQueryItem] { + static func queryItemProvider(_ value: ListSubscriptionGrantsInput) throws -> [Smithy.URIQueryItem] { var items = [Smithy.URIQueryItem]() - if let environmentIdentifier = value.environmentIdentifier { - let environmentIdentifierQueryItem = Smithy.URIQueryItem(name: "environmentIdentifier".urlPercentEncoding(), value: Swift.String(environmentIdentifier).urlPercentEncoding()) - items.append(environmentIdentifierQueryItem) + if let environmentId = value.environmentId { + let environmentIdQueryItem = Smithy.URIQueryItem(name: "environmentId".urlPercentEncoding(), value: Swift.String(environmentId).urlPercentEncoding()) + items.append(environmentIdQueryItem) } - if let nextToken = value.nextToken { - let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) - items.append(nextTokenQueryItem) + if let subscribedListingId = value.subscribedListingId { + let subscribedListingIdQueryItem = Smithy.URIQueryItem(name: "subscribedListingId".urlPercentEncoding(), value: Swift.String(subscribedListingId).urlPercentEncoding()) + items.append(subscribedListingIdQueryItem) } if let maxResults = value.maxResults { let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) items.append(maxResultsQueryItem) } - if let name = value.name { - let nameQueryItem = Smithy.URIQueryItem(name: "name".urlPercentEncoding(), value: Swift.String(name).urlPercentEncoding()) - items.append(nameQueryItem) + if let nextToken = value.nextToken { + let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) + items.append(nextTokenQueryItem) } - guard let projectIdentifier = value.projectIdentifier else { - let message = "Creating a URL Query Item failed. projectIdentifier is required and must not be nil." - throw Smithy.ClientError.unknownError(message) + if let sortOrder = value.sortOrder { + let sortOrderQueryItem = Smithy.URIQueryItem(name: "sortOrder".urlPercentEncoding(), value: Swift.String(sortOrder.rawValue).urlPercentEncoding()) + items.append(sortOrderQueryItem) } - let projectIdentifierQueryItem = Smithy.URIQueryItem(name: "projectIdentifier".urlPercentEncoding(), value: Swift.String(projectIdentifier).urlPercentEncoding()) - items.append(projectIdentifierQueryItem) - if let type = value.type { - let typeQueryItem = Smithy.URIQueryItem(name: "type".urlPercentEncoding(), value: Swift.String(type).urlPercentEncoding()) - items.append(typeQueryItem) + if let subscriptionTargetId = value.subscriptionTargetId { + let subscriptionTargetIdQueryItem = Smithy.URIQueryItem(name: "subscriptionTargetId".urlPercentEncoding(), value: Swift.String(subscriptionTargetId).urlPercentEncoding()) + items.append(subscriptionTargetIdQueryItem) } - if let status = value.status { - let statusQueryItem = Smithy.URIQueryItem(name: "status".urlPercentEncoding(), value: Swift.String(status.rawValue).urlPercentEncoding()) - items.append(statusQueryItem) + if let owningProjectId = value.owningProjectId { + let owningProjectIdQueryItem = Smithy.URIQueryItem(name: "owningProjectId".urlPercentEncoding(), value: Swift.String(owningProjectId).urlPercentEncoding()) + items.append(owningProjectIdQueryItem) + } + if let sortBy = value.sortBy { + let sortByQueryItem = Smithy.URIQueryItem(name: "sortBy".urlPercentEncoding(), value: Swift.String(sortBy.rawValue).urlPercentEncoding()) + items.append(sortByQueryItem) + } + if let subscriptionId = value.subscriptionId { + let subscriptionIdQueryItem = Smithy.URIQueryItem(name: "subscriptionId".urlPercentEncoding(), value: Swift.String(subscriptionId).urlPercentEncoding()) + items.append(subscriptionIdQueryItem) } return items } } -extension ListDomainsInput { +extension ListSubscriptionRequestsInput { - static func urlPathProvider(_ value: ListDomainsInput) -> Swift.String? { - return "/v2/domains" + static func urlPathProvider(_ value: ListSubscriptionRequestsInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscription-requests" } } -extension ListDomainsInput { +extension ListSubscriptionRequestsInput { - static func queryItemProvider(_ value: ListDomainsInput) throws -> [Smithy.URIQueryItem] { + static func queryItemProvider(_ value: ListSubscriptionRequestsInput) throws -> [Smithy.URIQueryItem] { var items = [Smithy.URIQueryItem]() + if let approverProjectId = value.approverProjectId { + let approverProjectIdQueryItem = Smithy.URIQueryItem(name: "approverProjectId".urlPercentEncoding(), value: Swift.String(approverProjectId).urlPercentEncoding()) + items.append(approverProjectIdQueryItem) + } + if let subscribedListingId = value.subscribedListingId { + let subscribedListingIdQueryItem = Smithy.URIQueryItem(name: "subscribedListingId".urlPercentEncoding(), value: Swift.String(subscribedListingId).urlPercentEncoding()) + items.append(subscribedListingIdQueryItem) + } if let maxResults = value.maxResults { let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) items.append(maxResultsQueryItem) @@ -16878,6 +18837,18 @@ extension ListDomainsInput { let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) items.append(nextTokenQueryItem) } + if let sortOrder = value.sortOrder { + let sortOrderQueryItem = Smithy.URIQueryItem(name: "sortOrder".urlPercentEncoding(), value: Swift.String(sortOrder.rawValue).urlPercentEncoding()) + items.append(sortOrderQueryItem) + } + if let owningProjectId = value.owningProjectId { + let owningProjectIdQueryItem = Smithy.URIQueryItem(name: "owningProjectId".urlPercentEncoding(), value: Swift.String(owningProjectId).urlPercentEncoding()) + items.append(owningProjectIdQueryItem) + } + if let sortBy = value.sortBy { + let sortByQueryItem = Smithy.URIQueryItem(name: "sortBy".urlPercentEncoding(), value: Swift.String(sortBy.rawValue).urlPercentEncoding()) + items.append(sortByQueryItem) + } if let status = value.status { let statusQueryItem = Smithy.URIQueryItem(name: "status".urlPercentEncoding(), value: Swift.String(status.rawValue).urlPercentEncoding()) items.append(statusQueryItem) @@ -16886,49 +18857,28 @@ extension ListDomainsInput { } } -extension ListEnvironmentActionsInput { +extension ListSubscriptionsInput { - static func urlPathProvider(_ value: ListEnvironmentActionsInput) -> Swift.String? { + static func urlPathProvider(_ value: ListSubscriptionsInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let environmentIdentifier = value.environmentIdentifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(environmentIdentifier.urlPercentEncoding())/actions" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscriptions" } } -extension ListEnvironmentActionsInput { +extension ListSubscriptionsInput { - static func queryItemProvider(_ value: ListEnvironmentActionsInput) throws -> [Smithy.URIQueryItem] { + static func queryItemProvider(_ value: ListSubscriptionsInput) throws -> [Smithy.URIQueryItem] { var items = [Smithy.URIQueryItem]() - if let nextToken = value.nextToken { - let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) - items.append(nextTokenQueryItem) - } - if let maxResults = value.maxResults { - let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) - items.append(maxResultsQueryItem) + if let approverProjectId = value.approverProjectId { + let approverProjectIdQueryItem = Smithy.URIQueryItem(name: "approverProjectId".urlPercentEncoding(), value: Swift.String(approverProjectId).urlPercentEncoding()) + items.append(approverProjectIdQueryItem) } - return items - } -} - -extension ListEnvironmentBlueprintConfigurationsInput { - - static func urlPathProvider(_ value: ListEnvironmentBlueprintConfigurationsInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil + if let subscribedListingId = value.subscribedListingId { + let subscribedListingIdQueryItem = Smithy.URIQueryItem(name: "subscribedListingId".urlPercentEncoding(), value: Swift.String(subscribedListingId).urlPercentEncoding()) + items.append(subscribedListingIdQueryItem) } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environment-blueprint-configurations" - } -} - -extension ListEnvironmentBlueprintConfigurationsInput { - - static func queryItemProvider(_ value: ListEnvironmentBlueprintConfigurationsInput) throws -> [Smithy.URIQueryItem] { - var items = [Smithy.URIQueryItem]() if let maxResults = value.maxResults { let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) items.append(maxResultsQueryItem) @@ -16937,23 +18887,46 @@ extension ListEnvironmentBlueprintConfigurationsInput { let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) items.append(nextTokenQueryItem) } + if let sortOrder = value.sortOrder { + let sortOrderQueryItem = Smithy.URIQueryItem(name: "sortOrder".urlPercentEncoding(), value: Swift.String(sortOrder.rawValue).urlPercentEncoding()) + items.append(sortOrderQueryItem) + } + if let owningProjectId = value.owningProjectId { + let owningProjectIdQueryItem = Smithy.URIQueryItem(name: "owningProjectId".urlPercentEncoding(), value: Swift.String(owningProjectId).urlPercentEncoding()) + items.append(owningProjectIdQueryItem) + } + if let sortBy = value.sortBy { + let sortByQueryItem = Smithy.URIQueryItem(name: "sortBy".urlPercentEncoding(), value: Swift.String(sortBy.rawValue).urlPercentEncoding()) + items.append(sortByQueryItem) + } + if let subscriptionRequestIdentifier = value.subscriptionRequestIdentifier { + let subscriptionRequestIdentifierQueryItem = Smithy.URIQueryItem(name: "subscriptionRequestIdentifier".urlPercentEncoding(), value: Swift.String(subscriptionRequestIdentifier).urlPercentEncoding()) + items.append(subscriptionRequestIdentifierQueryItem) + } + if let status = value.status { + let statusQueryItem = Smithy.URIQueryItem(name: "status".urlPercentEncoding(), value: Swift.String(status.rawValue).urlPercentEncoding()) + items.append(statusQueryItem) + } return items } } -extension ListEnvironmentBlueprintsInput { +extension ListSubscriptionTargetsInput { - static func urlPathProvider(_ value: ListEnvironmentBlueprintsInput) -> Swift.String? { + static func urlPathProvider(_ value: ListSubscriptionTargetsInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environment-blueprints" + guard let environmentIdentifier = value.environmentIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(environmentIdentifier.urlPercentEncoding())/subscription-targets" } } -extension ListEnvironmentBlueprintsInput { +extension ListSubscriptionTargetsInput { - static func queryItemProvider(_ value: ListEnvironmentBlueprintsInput) throws -> [Smithy.URIQueryItem] { + static func queryItemProvider(_ value: ListSubscriptionTargetsInput) throws -> [Smithy.URIQueryItem] { var items = [Smithy.URIQueryItem]() if let maxResults = value.maxResults { let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) @@ -16963,39 +18936,51 @@ extension ListEnvironmentBlueprintsInput { let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) items.append(nextTokenQueryItem) } - if let managed = value.managed { - let managedQueryItem = Smithy.URIQueryItem(name: "managed".urlPercentEncoding(), value: Swift.String(managed).urlPercentEncoding()) - items.append(managedQueryItem) + if let sortOrder = value.sortOrder { + let sortOrderQueryItem = Smithy.URIQueryItem(name: "sortOrder".urlPercentEncoding(), value: Swift.String(sortOrder.rawValue).urlPercentEncoding()) + items.append(sortOrderQueryItem) } - if let name = value.name { - let nameQueryItem = Smithy.URIQueryItem(name: "name".urlPercentEncoding(), value: Swift.String(name).urlPercentEncoding()) - items.append(nameQueryItem) + if let sortBy = value.sortBy { + let sortByQueryItem = Smithy.URIQueryItem(name: "sortBy".urlPercentEncoding(), value: Swift.String(sortBy.rawValue).urlPercentEncoding()) + items.append(sortByQueryItem) } return items } } -extension ListEnvironmentProfilesInput { +extension ListTagsForResourceInput { - static func urlPathProvider(_ value: ListEnvironmentProfilesInput) -> Swift.String? { + static func urlPathProvider(_ value: ListTagsForResourceInput) -> Swift.String? { + guard let resourceArn = value.resourceArn else { + return nil + } + return "/tags/\(resourceArn.urlPercentEncoding())" + } +} + +extension ListTimeSeriesDataPointsInput { + + static func urlPathProvider(_ value: ListTimeSeriesDataPointsInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environment-profiles" + guard let entityType = value.entityType else { + return nil + } + guard let entityIdentifier = value.entityIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/entities/\(entityType.rawValue.urlPercentEncoding())/\(entityIdentifier.urlPercentEncoding())/time-series-data-points" } } -extension ListEnvironmentProfilesInput { +extension ListTimeSeriesDataPointsInput { - static func queryItemProvider(_ value: ListEnvironmentProfilesInput) throws -> [Smithy.URIQueryItem] { + static func queryItemProvider(_ value: ListTimeSeriesDataPointsInput) throws -> [Smithy.URIQueryItem] { var items = [Smithy.URIQueryItem]() - if let environmentBlueprintIdentifier = value.environmentBlueprintIdentifier { - let environmentBlueprintIdentifierQueryItem = Smithy.URIQueryItem(name: "environmentBlueprintIdentifier".urlPercentEncoding(), value: Swift.String(environmentBlueprintIdentifier).urlPercentEncoding()) - items.append(environmentBlueprintIdentifierQueryItem) - } - if let awsAccountId = value.awsAccountId { - let awsAccountIdQueryItem = Smithy.URIQueryItem(name: "awsAccountId".urlPercentEncoding(), value: Swift.String(awsAccountId).urlPercentEncoding()) - items.append(awsAccountIdQueryItem) + if let endedAt = value.endedAt { + let endedAtQueryItem = Smithy.URIQueryItem(name: "endedAt".urlPercentEncoding(), value: Swift.String(SmithyTimestamps.TimestampFormatter(format: .dateTime).string(from: endedAt)).urlPercentEncoding()) + items.append(endedAtQueryItem) } if let nextToken = value.nextToken { let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) @@ -17005,1151 +18990,1077 @@ extension ListEnvironmentProfilesInput { let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) items.append(maxResultsQueryItem) } - if let name = value.name { - let nameQueryItem = Smithy.URIQueryItem(name: "name".urlPercentEncoding(), value: Swift.String(name).urlPercentEncoding()) - items.append(nameQueryItem) - } - if let awsAccountRegion = value.awsAccountRegion { - let awsAccountRegionQueryItem = Smithy.URIQueryItem(name: "awsAccountRegion".urlPercentEncoding(), value: Swift.String(awsAccountRegion).urlPercentEncoding()) - items.append(awsAccountRegionQueryItem) + guard let formName = value.formName else { + let message = "Creating a URL Query Item failed. formName is required and must not be nil." + throw Smithy.ClientError.unknownError(message) } - if let projectIdentifier = value.projectIdentifier { - let projectIdentifierQueryItem = Smithy.URIQueryItem(name: "projectIdentifier".urlPercentEncoding(), value: Swift.String(projectIdentifier).urlPercentEncoding()) - items.append(projectIdentifierQueryItem) + let formNameQueryItem = Smithy.URIQueryItem(name: "formName".urlPercentEncoding(), value: Swift.String(formName).urlPercentEncoding()) + items.append(formNameQueryItem) + if let startedAt = value.startedAt { + let startedAtQueryItem = Smithy.URIQueryItem(name: "startedAt".urlPercentEncoding(), value: Swift.String(SmithyTimestamps.TimestampFormatter(format: .dateTime).string(from: startedAt)).urlPercentEncoding()) + items.append(startedAtQueryItem) } return items } } -extension ListEnvironmentsInput { +extension PostLineageEventInput { - static func urlPathProvider(_ value: ListEnvironmentsInput) -> Swift.String? { + static func urlPathProvider(_ value: PostLineageEventInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/lineage/events" } } -extension ListEnvironmentsInput { +extension PostLineageEventInput { - static func queryItemProvider(_ value: ListEnvironmentsInput) throws -> [Smithy.URIQueryItem] { + static func queryItemProvider(_ value: PostLineageEventInput) throws -> [Smithy.URIQueryItem] { var items = [Smithy.URIQueryItem]() - if let environmentBlueprintIdentifier = value.environmentBlueprintIdentifier { - let environmentBlueprintIdentifierQueryItem = Smithy.URIQueryItem(name: "environmentBlueprintIdentifier".urlPercentEncoding(), value: Swift.String(environmentBlueprintIdentifier).urlPercentEncoding()) - items.append(environmentBlueprintIdentifierQueryItem) - } - if let awsAccountId = value.awsAccountId { - let awsAccountIdQueryItem = Smithy.URIQueryItem(name: "awsAccountId".urlPercentEncoding(), value: Swift.String(awsAccountId).urlPercentEncoding()) - items.append(awsAccountIdQueryItem) + if let clientToken = value.clientToken { + let clientTokenQueryItem = Smithy.URIQueryItem(name: "clientToken".urlPercentEncoding(), value: Swift.String(clientToken).urlPercentEncoding()) + items.append(clientTokenQueryItem) } - if let environmentProfileIdentifier = value.environmentProfileIdentifier { - let environmentProfileIdentifierQueryItem = Smithy.URIQueryItem(name: "environmentProfileIdentifier".urlPercentEncoding(), value: Swift.String(environmentProfileIdentifier).urlPercentEncoding()) - items.append(environmentProfileIdentifierQueryItem) + return items + } +} + +extension PostTimeSeriesDataPointsInput { + + static func urlPathProvider(_ value: PostTimeSeriesDataPointsInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil } - if let provider = value.provider { - let providerQueryItem = Smithy.URIQueryItem(name: "provider".urlPercentEncoding(), value: Swift.String(provider).urlPercentEncoding()) - items.append(providerQueryItem) + guard let entityType = value.entityType else { + return nil } - if let maxResults = value.maxResults { - let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) - items.append(maxResultsQueryItem) + guard let entityIdentifier = value.entityIdentifier else { + return nil } - if let nextToken = value.nextToken { - let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) - items.append(nextTokenQueryItem) + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/entities/\(entityType.rawValue.urlPercentEncoding())/\(entityIdentifier.urlPercentEncoding())/time-series-data-points" + } +} + +extension PutEnvironmentBlueprintConfigurationInput { + + static func urlPathProvider(_ value: PutEnvironmentBlueprintConfigurationInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil } - if let name = value.name { - let nameQueryItem = Smithy.URIQueryItem(name: "name".urlPercentEncoding(), value: Swift.String(name).urlPercentEncoding()) - items.append(nameQueryItem) + guard let environmentBlueprintIdentifier = value.environmentBlueprintIdentifier else { + return nil } - if let awsAccountRegion = value.awsAccountRegion { - let awsAccountRegionQueryItem = Smithy.URIQueryItem(name: "awsAccountRegion".urlPercentEncoding(), value: Swift.String(awsAccountRegion).urlPercentEncoding()) - items.append(awsAccountRegionQueryItem) + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environment-blueprint-configurations/\(environmentBlueprintIdentifier.urlPercentEncoding())" + } +} + +extension RejectPredictionsInput { + + static func urlPathProvider(_ value: RejectPredictionsInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil } - guard let projectIdentifier = value.projectIdentifier else { - let message = "Creating a URL Query Item failed. projectIdentifier is required and must not be nil." - throw Smithy.ClientError.unknownError(message) + guard let identifier = value.identifier else { + return nil } - let projectIdentifierQueryItem = Smithy.URIQueryItem(name: "projectIdentifier".urlPercentEncoding(), value: Swift.String(projectIdentifier).urlPercentEncoding()) - items.append(projectIdentifierQueryItem) - if let status = value.status { - let statusQueryItem = Smithy.URIQueryItem(name: "status".urlPercentEncoding(), value: Swift.String(status.rawValue).urlPercentEncoding()) - items.append(statusQueryItem) + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/assets/\(identifier.urlPercentEncoding())/reject-predictions" + } +} + +extension RejectPredictionsInput { + + static func queryItemProvider(_ value: RejectPredictionsInput) throws -> [Smithy.URIQueryItem] { + var items = [Smithy.URIQueryItem]() + if let revision = value.revision { + let revisionQueryItem = Smithy.URIQueryItem(name: "revision".urlPercentEncoding(), value: Swift.String(revision).urlPercentEncoding()) + items.append(revisionQueryItem) } return items } } -extension ListLineageNodeHistoryInput { +extension RejectSubscriptionRequestInput { - static func urlPathProvider(_ value: ListLineageNodeHistoryInput) -> Swift.String? { + static func urlPathProvider(_ value: RejectSubscriptionRequestInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/lineage/nodes/\(identifier.urlPercentEncoding())/history" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscription-requests/\(identifier.urlPercentEncoding())/reject" } } -extension ListLineageNodeHistoryInput { +extension RemoveEntityOwnerInput { - static func queryItemProvider(_ value: ListLineageNodeHistoryInput) throws -> [Smithy.URIQueryItem] { - var items = [Smithy.URIQueryItem]() - if let eventTimestampGTE = value.eventTimestampGTE { - let eventTimestampGTEQueryItem = Smithy.URIQueryItem(name: "timestampGTE".urlPercentEncoding(), value: Swift.String(SmithyTimestamps.TimestampFormatter(format: .dateTime).string(from: eventTimestampGTE)).urlPercentEncoding()) - items.append(eventTimestampGTEQueryItem) + static func urlPathProvider(_ value: RemoveEntityOwnerInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil } - if let maxResults = value.maxResults { - let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) - items.append(maxResultsQueryItem) + guard let entityType = value.entityType else { + return nil } - if let nextToken = value.nextToken { - let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) - items.append(nextTokenQueryItem) + guard let entityIdentifier = value.entityIdentifier else { + return nil } - if let sortOrder = value.sortOrder { - let sortOrderQueryItem = Smithy.URIQueryItem(name: "sortOrder".urlPercentEncoding(), value: Swift.String(sortOrder.rawValue).urlPercentEncoding()) - items.append(sortOrderQueryItem) + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/entities/\(entityType.rawValue.urlPercentEncoding())/\(entityIdentifier.urlPercentEncoding())/removeOwner" + } +} + +extension RemovePolicyGrantInput { + + static func urlPathProvider(_ value: RemovePolicyGrantInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil } - if let direction = value.direction { - let directionQueryItem = Smithy.URIQueryItem(name: "direction".urlPercentEncoding(), value: Swift.String(direction.rawValue).urlPercentEncoding()) - items.append(directionQueryItem) + guard let entityType = value.entityType else { + return nil } - if let eventTimestampLTE = value.eventTimestampLTE { - let eventTimestampLTEQueryItem = Smithy.URIQueryItem(name: "timestampLTE".urlPercentEncoding(), value: Swift.String(SmithyTimestamps.TimestampFormatter(format: .dateTime).string(from: eventTimestampLTE)).urlPercentEncoding()) - items.append(eventTimestampLTEQueryItem) + guard let entityIdentifier = value.entityIdentifier else { + return nil } - return items + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/policies/managed/\(entityType.rawValue.urlPercentEncoding())/\(entityIdentifier.urlPercentEncoding())/removeGrant" } } -extension ListMetadataGenerationRunsInput { +extension RevokeSubscriptionInput { - static func urlPathProvider(_ value: ListMetadataGenerationRunsInput) -> Swift.String? { + static func urlPathProvider(_ value: RevokeSubscriptionInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/metadata-generation-runs" + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscriptions/\(identifier.urlPercentEncoding())/revoke" } } -extension ListMetadataGenerationRunsInput { +extension SearchInput { - static func queryItemProvider(_ value: ListMetadataGenerationRunsInput) throws -> [Smithy.URIQueryItem] { - var items = [Smithy.URIQueryItem]() - if let nextToken = value.nextToken { - let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) - items.append(nextTokenQueryItem) - } - if let maxResults = value.maxResults { - let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) - items.append(maxResultsQueryItem) - } - if let type = value.type { - let typeQueryItem = Smithy.URIQueryItem(name: "type".urlPercentEncoding(), value: Swift.String(type.rawValue).urlPercentEncoding()) - items.append(typeQueryItem) - } - if let status = value.status { - let statusQueryItem = Smithy.URIQueryItem(name: "status".urlPercentEncoding(), value: Swift.String(status.rawValue).urlPercentEncoding()) - items.append(statusQueryItem) + static func urlPathProvider(_ value: SearchInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil } - return items + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/search" } } -extension ListNotificationsInput { +extension SearchGroupProfilesInput { - static func urlPathProvider(_ value: ListNotificationsInput) -> Swift.String? { + static func urlPathProvider(_ value: SearchGroupProfilesInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/notifications" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/search-group-profiles" } } -extension ListNotificationsInput { +extension SearchListingsInput { - static func queryItemProvider(_ value: ListNotificationsInput) throws -> [Smithy.URIQueryItem] { - var items = [Smithy.URIQueryItem]() - if let beforeTimestamp = value.beforeTimestamp { - let beforeTimestampQueryItem = Smithy.URIQueryItem(name: "beforeTimestamp".urlPercentEncoding(), value: Swift.String(SmithyTimestamps.TimestampFormatter(format: .dateTime).string(from: beforeTimestamp)).urlPercentEncoding()) - items.append(beforeTimestampQueryItem) - } - if let maxResults = value.maxResults { - let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) - items.append(maxResultsQueryItem) - } - if let nextToken = value.nextToken { - let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) - items.append(nextTokenQueryItem) - } - if let subjects = value.subjects { - subjects.forEach { queryItemValue in - let queryItem = Smithy.URIQueryItem(name: "subjects".urlPercentEncoding(), value: Swift.String(queryItemValue).urlPercentEncoding()) - items.append(queryItem) - } - } - guard let type = value.type else { - let message = "Creating a URL Query Item failed. type is required and must not be nil." - throw Smithy.ClientError.unknownError(message) - } - let typeQueryItem = Smithy.URIQueryItem(name: "type".urlPercentEncoding(), value: Swift.String(type.rawValue).urlPercentEncoding()) - items.append(typeQueryItem) - if let afterTimestamp = value.afterTimestamp { - let afterTimestampQueryItem = Smithy.URIQueryItem(name: "afterTimestamp".urlPercentEncoding(), value: Swift.String(SmithyTimestamps.TimestampFormatter(format: .dateTime).string(from: afterTimestamp)).urlPercentEncoding()) - items.append(afterTimestampQueryItem) + static func urlPathProvider(_ value: SearchListingsInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil } - if let taskStatus = value.taskStatus { - let taskStatusQueryItem = Smithy.URIQueryItem(name: "taskStatus".urlPercentEncoding(), value: Swift.String(taskStatus.rawValue).urlPercentEncoding()) - items.append(taskStatusQueryItem) + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/listings/search" + } +} + +extension SearchTypesInput { + + static func urlPathProvider(_ value: SearchTypesInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil } - return items + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/types-search" } } -extension ListProjectMembershipsInput { +extension SearchUserProfilesInput { - static func urlPathProvider(_ value: ListProjectMembershipsInput) -> Swift.String? { + static func urlPathProvider(_ value: SearchUserProfilesInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let projectIdentifier = value.projectIdentifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/projects/\(projectIdentifier.urlPercentEncoding())/memberships" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/search-user-profiles" } } -extension ListProjectMembershipsInput { +extension StartDataSourceRunInput { - static func queryItemProvider(_ value: ListProjectMembershipsInput) throws -> [Smithy.URIQueryItem] { - var items = [Smithy.URIQueryItem]() - if let nextToken = value.nextToken { - let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) - items.append(nextTokenQueryItem) - } - if let maxResults = value.maxResults { - let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) - items.append(maxResultsQueryItem) - } - if let sortOrder = value.sortOrder { - let sortOrderQueryItem = Smithy.URIQueryItem(name: "sortOrder".urlPercentEncoding(), value: Swift.String(sortOrder.rawValue).urlPercentEncoding()) - items.append(sortOrderQueryItem) + static func urlPathProvider(_ value: StartDataSourceRunInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil } - if let sortBy = value.sortBy { - let sortByQueryItem = Smithy.URIQueryItem(name: "sortBy".urlPercentEncoding(), value: Swift.String(sortBy.rawValue).urlPercentEncoding()) - items.append(sortByQueryItem) + guard let dataSourceIdentifier = value.dataSourceIdentifier else { + return nil } - return items + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-sources/\(dataSourceIdentifier.urlPercentEncoding())/runs" } } -extension ListProjectsInput { +extension StartMetadataGenerationRunInput { - static func urlPathProvider(_ value: ListProjectsInput) -> Swift.String? { + static func urlPathProvider(_ value: StartMetadataGenerationRunInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/projects" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/metadata-generation-runs" } } -extension ListProjectsInput { +extension TagResourceInput { - static func queryItemProvider(_ value: ListProjectsInput) throws -> [Smithy.URIQueryItem] { - var items = [Smithy.URIQueryItem]() - if let userIdentifier = value.userIdentifier { - let userIdentifierQueryItem = Smithy.URIQueryItem(name: "userIdentifier".urlPercentEncoding(), value: Swift.String(userIdentifier).urlPercentEncoding()) - items.append(userIdentifierQueryItem) - } - if let nextToken = value.nextToken { - let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) - items.append(nextTokenQueryItem) - } - if let maxResults = value.maxResults { - let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) - items.append(maxResultsQueryItem) - } - if let name = value.name { - let nameQueryItem = Smithy.URIQueryItem(name: "name".urlPercentEncoding(), value: Swift.String(name).urlPercentEncoding()) - items.append(nameQueryItem) - } - if let groupIdentifier = value.groupIdentifier { - let groupIdentifierQueryItem = Smithy.URIQueryItem(name: "groupIdentifier".urlPercentEncoding(), value: Swift.String(groupIdentifier).urlPercentEncoding()) - items.append(groupIdentifierQueryItem) + static func urlPathProvider(_ value: TagResourceInput) -> Swift.String? { + guard let resourceArn = value.resourceArn else { + return nil } - return items + return "/tags/\(resourceArn.urlPercentEncoding())" } } -extension ListSubscriptionGrantsInput { +extension UntagResourceInput { - static func urlPathProvider(_ value: ListSubscriptionGrantsInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { + static func urlPathProvider(_ value: UntagResourceInput) -> Swift.String? { + guard let resourceArn = value.resourceArn else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscription-grants" + return "/tags/\(resourceArn.urlPercentEncoding())" } } -extension ListSubscriptionGrantsInput { +extension UntagResourceInput { - static func queryItemProvider(_ value: ListSubscriptionGrantsInput) throws -> [Smithy.URIQueryItem] { + static func queryItemProvider(_ value: UntagResourceInput) throws -> [Smithy.URIQueryItem] { var items = [Smithy.URIQueryItem]() - if let environmentId = value.environmentId { - let environmentIdQueryItem = Smithy.URIQueryItem(name: "environmentId".urlPercentEncoding(), value: Swift.String(environmentId).urlPercentEncoding()) - items.append(environmentIdQueryItem) - } - if let subscribedListingId = value.subscribedListingId { - let subscribedListingIdQueryItem = Smithy.URIQueryItem(name: "subscribedListingId".urlPercentEncoding(), value: Swift.String(subscribedListingId).urlPercentEncoding()) - items.append(subscribedListingIdQueryItem) - } - if let maxResults = value.maxResults { - let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) - items.append(maxResultsQueryItem) - } - if let nextToken = value.nextToken { - let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) - items.append(nextTokenQueryItem) - } - if let sortOrder = value.sortOrder { - let sortOrderQueryItem = Smithy.URIQueryItem(name: "sortOrder".urlPercentEncoding(), value: Swift.String(sortOrder.rawValue).urlPercentEncoding()) - items.append(sortOrderQueryItem) - } - if let subscriptionTargetId = value.subscriptionTargetId { - let subscriptionTargetIdQueryItem = Smithy.URIQueryItem(name: "subscriptionTargetId".urlPercentEncoding(), value: Swift.String(subscriptionTargetId).urlPercentEncoding()) - items.append(subscriptionTargetIdQueryItem) - } - if let owningProjectId = value.owningProjectId { - let owningProjectIdQueryItem = Smithy.URIQueryItem(name: "owningProjectId".urlPercentEncoding(), value: Swift.String(owningProjectId).urlPercentEncoding()) - items.append(owningProjectIdQueryItem) - } - if let sortBy = value.sortBy { - let sortByQueryItem = Smithy.URIQueryItem(name: "sortBy".urlPercentEncoding(), value: Swift.String(sortBy.rawValue).urlPercentEncoding()) - items.append(sortByQueryItem) + guard let tagKeys = value.tagKeys else { + let message = "Creating a URL Query Item failed. tagKeys is required and must not be nil." + throw Smithy.ClientError.unknownError(message) } - if let subscriptionId = value.subscriptionId { - let subscriptionIdQueryItem = Smithy.URIQueryItem(name: "subscriptionId".urlPercentEncoding(), value: Swift.String(subscriptionId).urlPercentEncoding()) - items.append(subscriptionIdQueryItem) + tagKeys.forEach { queryItemValue in + let queryItem = Smithy.URIQueryItem(name: "tagKeys".urlPercentEncoding(), value: Swift.String(queryItemValue).urlPercentEncoding()) + items.append(queryItem) } return items } } -extension ListSubscriptionRequestsInput { +extension UpdateAssetFilterInput { - static func urlPathProvider(_ value: ListSubscriptionRequestsInput) -> Swift.String? { + static func urlPathProvider(_ value: UpdateAssetFilterInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscription-requests" + guard let assetIdentifier = value.assetIdentifier else { + return nil + } + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/assets/\(assetIdentifier.urlPercentEncoding())/filters/\(identifier.urlPercentEncoding())" } } -extension ListSubscriptionRequestsInput { +extension UpdateDataSourceInput { - static func queryItemProvider(_ value: ListSubscriptionRequestsInput) throws -> [Smithy.URIQueryItem] { - var items = [Smithy.URIQueryItem]() - if let approverProjectId = value.approverProjectId { - let approverProjectIdQueryItem = Smithy.URIQueryItem(name: "approverProjectId".urlPercentEncoding(), value: Swift.String(approverProjectId).urlPercentEncoding()) - items.append(approverProjectIdQueryItem) - } - if let subscribedListingId = value.subscribedListingId { - let subscribedListingIdQueryItem = Smithy.URIQueryItem(name: "subscribedListingId".urlPercentEncoding(), value: Swift.String(subscribedListingId).urlPercentEncoding()) - items.append(subscribedListingIdQueryItem) - } - if let maxResults = value.maxResults { - let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) - items.append(maxResultsQueryItem) - } - if let nextToken = value.nextToken { - let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) - items.append(nextTokenQueryItem) - } - if let sortOrder = value.sortOrder { - let sortOrderQueryItem = Smithy.URIQueryItem(name: "sortOrder".urlPercentEncoding(), value: Swift.String(sortOrder.rawValue).urlPercentEncoding()) - items.append(sortOrderQueryItem) - } - if let owningProjectId = value.owningProjectId { - let owningProjectIdQueryItem = Smithy.URIQueryItem(name: "owningProjectId".urlPercentEncoding(), value: Swift.String(owningProjectId).urlPercentEncoding()) - items.append(owningProjectIdQueryItem) - } - if let sortBy = value.sortBy { - let sortByQueryItem = Smithy.URIQueryItem(name: "sortBy".urlPercentEncoding(), value: Swift.String(sortBy.rawValue).urlPercentEncoding()) - items.append(sortByQueryItem) + static func urlPathProvider(_ value: UpdateDataSourceInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil } - if let status = value.status { - let statusQueryItem = Smithy.URIQueryItem(name: "status".urlPercentEncoding(), value: Swift.String(status.rawValue).urlPercentEncoding()) - items.append(statusQueryItem) + guard let identifier = value.identifier else { + return nil } - return items + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-sources/\(identifier.urlPercentEncoding())" } } -extension ListSubscriptionsInput { +extension UpdateDomainInput { - static func urlPathProvider(_ value: ListSubscriptionsInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { + static func urlPathProvider(_ value: UpdateDomainInput) -> Swift.String? { + guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscriptions" + return "/v2/domains/\(identifier.urlPercentEncoding())" } } -extension ListSubscriptionsInput { +extension UpdateDomainInput { - static func queryItemProvider(_ value: ListSubscriptionsInput) throws -> [Smithy.URIQueryItem] { + static func queryItemProvider(_ value: UpdateDomainInput) throws -> [Smithy.URIQueryItem] { var items = [Smithy.URIQueryItem]() - if let approverProjectId = value.approverProjectId { - let approverProjectIdQueryItem = Smithy.URIQueryItem(name: "approverProjectId".urlPercentEncoding(), value: Swift.String(approverProjectId).urlPercentEncoding()) - items.append(approverProjectIdQueryItem) - } - if let subscribedListingId = value.subscribedListingId { - let subscribedListingIdQueryItem = Smithy.URIQueryItem(name: "subscribedListingId".urlPercentEncoding(), value: Swift.String(subscribedListingId).urlPercentEncoding()) - items.append(subscribedListingIdQueryItem) - } - if let maxResults = value.maxResults { - let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) - items.append(maxResultsQueryItem) - } - if let nextToken = value.nextToken { - let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) - items.append(nextTokenQueryItem) - } - if let sortOrder = value.sortOrder { - let sortOrderQueryItem = Smithy.URIQueryItem(name: "sortOrder".urlPercentEncoding(), value: Swift.String(sortOrder.rawValue).urlPercentEncoding()) - items.append(sortOrderQueryItem) - } - if let owningProjectId = value.owningProjectId { - let owningProjectIdQueryItem = Smithy.URIQueryItem(name: "owningProjectId".urlPercentEncoding(), value: Swift.String(owningProjectId).urlPercentEncoding()) - items.append(owningProjectIdQueryItem) - } - if let sortBy = value.sortBy { - let sortByQueryItem = Smithy.URIQueryItem(name: "sortBy".urlPercentEncoding(), value: Swift.String(sortBy.rawValue).urlPercentEncoding()) - items.append(sortByQueryItem) - } - if let subscriptionRequestIdentifier = value.subscriptionRequestIdentifier { - let subscriptionRequestIdentifierQueryItem = Smithy.URIQueryItem(name: "subscriptionRequestIdentifier".urlPercentEncoding(), value: Swift.String(subscriptionRequestIdentifier).urlPercentEncoding()) - items.append(subscriptionRequestIdentifierQueryItem) - } - if let status = value.status { - let statusQueryItem = Smithy.URIQueryItem(name: "status".urlPercentEncoding(), value: Swift.String(status.rawValue).urlPercentEncoding()) - items.append(statusQueryItem) + if let clientToken = value.clientToken { + let clientTokenQueryItem = Smithy.URIQueryItem(name: "clientToken".urlPercentEncoding(), value: Swift.String(clientToken).urlPercentEncoding()) + items.append(clientTokenQueryItem) } return items } } -extension ListSubscriptionTargetsInput { +extension UpdateDomainUnitInput { - static func urlPathProvider(_ value: ListSubscriptionTargetsInput) -> Swift.String? { + static func urlPathProvider(_ value: UpdateDomainUnitInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let environmentIdentifier = value.environmentIdentifier else { + guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(environmentIdentifier.urlPercentEncoding())/subscription-targets" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/domain-units/\(identifier.urlPercentEncoding())" } } -extension ListSubscriptionTargetsInput { +extension UpdateEnvironmentInput { - static func queryItemProvider(_ value: ListSubscriptionTargetsInput) throws -> [Smithy.URIQueryItem] { - var items = [Smithy.URIQueryItem]() - if let maxResults = value.maxResults { - let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) - items.append(maxResultsQueryItem) - } - if let nextToken = value.nextToken { - let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) - items.append(nextTokenQueryItem) - } - if let sortOrder = value.sortOrder { - let sortOrderQueryItem = Smithy.URIQueryItem(name: "sortOrder".urlPercentEncoding(), value: Swift.String(sortOrder.rawValue).urlPercentEncoding()) - items.append(sortOrderQueryItem) + static func urlPathProvider(_ value: UpdateEnvironmentInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil } - if let sortBy = value.sortBy { - let sortByQueryItem = Smithy.URIQueryItem(name: "sortBy".urlPercentEncoding(), value: Swift.String(sortBy.rawValue).urlPercentEncoding()) - items.append(sortByQueryItem) + guard let identifier = value.identifier else { + return nil } - return items + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(identifier.urlPercentEncoding())" } } -extension ListTagsForResourceInput { +extension UpdateEnvironmentActionInput { - static func urlPathProvider(_ value: ListTagsForResourceInput) -> Swift.String? { - guard let resourceArn = value.resourceArn else { + static func urlPathProvider(_ value: UpdateEnvironmentActionInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { return nil } - return "/tags/\(resourceArn.urlPercentEncoding())" + guard let environmentIdentifier = value.environmentIdentifier else { + return nil + } + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(environmentIdentifier.urlPercentEncoding())/actions/\(identifier.urlPercentEncoding())" } } -extension ListTimeSeriesDataPointsInput { +extension UpdateEnvironmentProfileInput { - static func urlPathProvider(_ value: ListTimeSeriesDataPointsInput) -> Swift.String? { + static func urlPathProvider(_ value: UpdateEnvironmentProfileInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let entityType = value.entityType else { - return nil - } - guard let entityIdentifier = value.entityIdentifier else { + guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/entities/\(entityType.rawValue.urlPercentEncoding())/\(entityIdentifier.urlPercentEncoding())/time-series-data-points" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environment-profiles/\(identifier.urlPercentEncoding())" } } -extension ListTimeSeriesDataPointsInput { +extension UpdateGlossaryInput { - static func queryItemProvider(_ value: ListTimeSeriesDataPointsInput) throws -> [Smithy.URIQueryItem] { - var items = [Smithy.URIQueryItem]() - if let endedAt = value.endedAt { - let endedAtQueryItem = Smithy.URIQueryItem(name: "endedAt".urlPercentEncoding(), value: Swift.String(SmithyTimestamps.TimestampFormatter(format: .dateTime).string(from: endedAt)).urlPercentEncoding()) - items.append(endedAtQueryItem) - } - if let nextToken = value.nextToken { - let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) - items.append(nextTokenQueryItem) - } - if let maxResults = value.maxResults { - let maxResultsQueryItem = Smithy.URIQueryItem(name: "maxResults".urlPercentEncoding(), value: Swift.String(maxResults).urlPercentEncoding()) - items.append(maxResultsQueryItem) - } - guard let formName = value.formName else { - let message = "Creating a URL Query Item failed. formName is required and must not be nil." - throw Smithy.ClientError.unknownError(message) + static func urlPathProvider(_ value: UpdateGlossaryInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil } - let formNameQueryItem = Smithy.URIQueryItem(name: "formName".urlPercentEncoding(), value: Swift.String(formName).urlPercentEncoding()) - items.append(formNameQueryItem) - if let startedAt = value.startedAt { - let startedAtQueryItem = Smithy.URIQueryItem(name: "startedAt".urlPercentEncoding(), value: Swift.String(SmithyTimestamps.TimestampFormatter(format: .dateTime).string(from: startedAt)).urlPercentEncoding()) - items.append(startedAtQueryItem) + guard let identifier = value.identifier else { + return nil } - return items + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/glossaries/\(identifier.urlPercentEncoding())" } } -extension PostLineageEventInput { +extension UpdateGlossaryTermInput { - static func urlPathProvider(_ value: PostLineageEventInput) -> Swift.String? { + static func urlPathProvider(_ value: UpdateGlossaryTermInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/lineage/events" + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/glossary-terms/\(identifier.urlPercentEncoding())" } } -extension PostLineageEventInput { +extension UpdateGroupProfileInput { - static func queryItemProvider(_ value: PostLineageEventInput) throws -> [Smithy.URIQueryItem] { - var items = [Smithy.URIQueryItem]() - if let clientToken = value.clientToken { - let clientTokenQueryItem = Smithy.URIQueryItem(name: "clientToken".urlPercentEncoding(), value: Swift.String(clientToken).urlPercentEncoding()) - items.append(clientTokenQueryItem) + static func urlPathProvider(_ value: UpdateGroupProfileInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil } - return items + guard let groupIdentifier = value.groupIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/group-profiles/\(groupIdentifier.urlPercentEncoding())" } } -extension PostTimeSeriesDataPointsInput { +extension UpdateProjectInput { - static func urlPathProvider(_ value: PostTimeSeriesDataPointsInput) -> Swift.String? { + static func urlPathProvider(_ value: UpdateProjectInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let entityType = value.entityType else { - return nil - } - guard let entityIdentifier = value.entityIdentifier else { + guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/entities/\(entityType.rawValue.urlPercentEncoding())/\(entityIdentifier.urlPercentEncoding())/time-series-data-points" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/projects/\(identifier.urlPercentEncoding())" } } -extension PutEnvironmentBlueprintConfigurationInput { +extension UpdateSubscriptionGrantStatusInput { - static func urlPathProvider(_ value: PutEnvironmentBlueprintConfigurationInput) -> Swift.String? { + static func urlPathProvider(_ value: UpdateSubscriptionGrantStatusInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let environmentBlueprintIdentifier = value.environmentBlueprintIdentifier else { + guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environment-blueprint-configurations/\(environmentBlueprintIdentifier.urlPercentEncoding())" + guard let assetIdentifier = value.assetIdentifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscription-grants/\(identifier.urlPercentEncoding())/status/\(assetIdentifier.urlPercentEncoding())" } } -extension RejectPredictionsInput { +extension UpdateSubscriptionRequestInput { - static func urlPathProvider(_ value: RejectPredictionsInput) -> Swift.String? { + static func urlPathProvider(_ value: UpdateSubscriptionRequestInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } guard let identifier = value.identifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/assets/\(identifier.urlPercentEncoding())/reject-predictions" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscription-requests/\(identifier.urlPercentEncoding())" } } -extension RejectPredictionsInput { +extension UpdateSubscriptionTargetInput { - static func queryItemProvider(_ value: RejectPredictionsInput) throws -> [Smithy.URIQueryItem] { - var items = [Smithy.URIQueryItem]() - if let revision = value.revision { - let revisionQueryItem = Smithy.URIQueryItem(name: "revision".urlPercentEncoding(), value: Swift.String(revision).urlPercentEncoding()) - items.append(revisionQueryItem) + static func urlPathProvider(_ value: UpdateSubscriptionTargetInput) -> Swift.String? { + guard let domainIdentifier = value.domainIdentifier else { + return nil } - return items + guard let environmentIdentifier = value.environmentIdentifier else { + return nil + } + guard let identifier = value.identifier else { + return nil + } + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(environmentIdentifier.urlPercentEncoding())/subscription-targets/\(identifier.urlPercentEncoding())" } } -extension RejectSubscriptionRequestInput { +extension UpdateUserProfileInput { - static func urlPathProvider(_ value: RejectSubscriptionRequestInput) -> Swift.String? { + static func urlPathProvider(_ value: UpdateUserProfileInput) -> Swift.String? { guard let domainIdentifier = value.domainIdentifier else { return nil } - guard let identifier = value.identifier else { + guard let userIdentifier = value.userIdentifier else { return nil } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscription-requests/\(identifier.urlPercentEncoding())/reject" + return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/user-profiles/\(userIdentifier.urlPercentEncoding())" + } +} + +extension AcceptPredictionsInput { + + static func write(value: AcceptPredictionsInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["acceptChoices"].writeList(value.acceptChoices, memberWritingClosure: DataZoneClientTypes.AcceptChoice.write(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["acceptRule"].write(value.acceptRule, with: DataZoneClientTypes.AcceptRule.write(value:to:)) + try writer["clientToken"].write(value.clientToken) + } +} + +extension AcceptSubscriptionRequestInput { + + static func write(value: AcceptSubscriptionRequestInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["decisionComment"].write(value.decisionComment) + } +} + +extension AddEntityOwnerInput { + + static func write(value: AddEntityOwnerInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["clientToken"].write(value.clientToken) + try writer["owner"].write(value.owner, with: DataZoneClientTypes.OwnerProperties.write(value:to:)) + } +} + +extension AddPolicyGrantInput { + + static func write(value: AddPolicyGrantInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["clientToken"].write(value.clientToken) + try writer["detail"].write(value.detail, with: DataZoneClientTypes.PolicyGrantDetail.write(value:to:)) + try writer["policyType"].write(value.policyType) + try writer["principal"].write(value.principal, with: DataZoneClientTypes.PolicyGrantPrincipal.write(value:to:)) + } +} + +extension CreateAssetInput { + + static func write(value: CreateAssetInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["clientToken"].write(value.clientToken) + try writer["description"].write(value.description) + try writer["externalIdentifier"].write(value.externalIdentifier) + try writer["formsInput"].writeList(value.formsInput, memberWritingClosure: DataZoneClientTypes.FormInput.write(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["glossaryTerms"].writeList(value.glossaryTerms, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["name"].write(value.name) + try writer["owningProjectIdentifier"].write(value.owningProjectIdentifier) + try writer["predictionConfiguration"].write(value.predictionConfiguration, with: DataZoneClientTypes.PredictionConfiguration.write(value:to:)) + try writer["typeIdentifier"].write(value.typeIdentifier) + try writer["typeRevision"].write(value.typeRevision) + } +} + +extension CreateAssetFilterInput { + + static func write(value: CreateAssetFilterInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["clientToken"].write(value.clientToken) + try writer["configuration"].write(value.configuration, with: DataZoneClientTypes.AssetFilterConfiguration.write(value:to:)) + try writer["description"].write(value.description) + try writer["name"].write(value.name) + } +} + +extension CreateAssetRevisionInput { + + static func write(value: CreateAssetRevisionInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["clientToken"].write(value.clientToken) + try writer["description"].write(value.description) + try writer["formsInput"].writeList(value.formsInput, memberWritingClosure: DataZoneClientTypes.FormInput.write(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["glossaryTerms"].writeList(value.glossaryTerms, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["name"].write(value.name) + try writer["predictionConfiguration"].write(value.predictionConfiguration, with: DataZoneClientTypes.PredictionConfiguration.write(value:to:)) + try writer["typeRevision"].write(value.typeRevision) + } +} + +extension CreateAssetTypeInput { + + static func write(value: CreateAssetTypeInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["description"].write(value.description) + try writer["formsInput"].writeMap(value.formsInput, valueWritingClosure: DataZoneClientTypes.FormEntryInput.write(value:to:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) + try writer["name"].write(value.name) + try writer["owningProjectIdentifier"].write(value.owningProjectIdentifier) + } +} + +extension CreateDataProductInput { + + static func write(value: CreateDataProductInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["clientToken"].write(value.clientToken) + try writer["description"].write(value.description) + try writer["formsInput"].writeList(value.formsInput, memberWritingClosure: DataZoneClientTypes.FormInput.write(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["glossaryTerms"].writeList(value.glossaryTerms, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["items"].writeList(value.items, memberWritingClosure: DataZoneClientTypes.DataProductItem.write(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["name"].write(value.name) + try writer["owningProjectIdentifier"].write(value.owningProjectIdentifier) + } +} + +extension CreateDataProductRevisionInput { + + static func write(value: CreateDataProductRevisionInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["clientToken"].write(value.clientToken) + try writer["description"].write(value.description) + try writer["formsInput"].writeList(value.formsInput, memberWritingClosure: DataZoneClientTypes.FormInput.write(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["glossaryTerms"].writeList(value.glossaryTerms, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["items"].writeList(value.items, memberWritingClosure: DataZoneClientTypes.DataProductItem.write(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["name"].write(value.name) + } +} + +extension CreateDataSourceInput { + + static func write(value: CreateDataSourceInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["assetFormsInput"].writeList(value.assetFormsInput, memberWritingClosure: DataZoneClientTypes.FormInput.write(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["clientToken"].write(value.clientToken) + try writer["configuration"].write(value.configuration, with: DataZoneClientTypes.DataSourceConfigurationInput.write(value:to:)) + try writer["description"].write(value.description) + try writer["enableSetting"].write(value.enableSetting) + try writer["environmentIdentifier"].write(value.environmentIdentifier) + try writer["name"].write(value.name) + try writer["projectIdentifier"].write(value.projectIdentifier) + try writer["publishOnImport"].write(value.publishOnImport) + try writer["recommendation"].write(value.recommendation, with: DataZoneClientTypes.RecommendationConfiguration.write(value:to:)) + try writer["schedule"].write(value.schedule, with: DataZoneClientTypes.ScheduleConfiguration.write(value:to:)) + try writer["type"].write(value.type) } } -extension RevokeSubscriptionInput { +extension CreateDomainInput { - static func urlPathProvider(_ value: RevokeSubscriptionInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil - } - guard let identifier = value.identifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscriptions/\(identifier.urlPercentEncoding())/revoke" + static func write(value: CreateDomainInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["clientToken"].write(value.clientToken) + try writer["description"].write(value.description) + try writer["domainExecutionRole"].write(value.domainExecutionRole) + try writer["kmsKeyIdentifier"].write(value.kmsKeyIdentifier) + try writer["name"].write(value.name) + try writer["singleSignOn"].write(value.singleSignOn, with: DataZoneClientTypes.SingleSignOn.write(value:to:)) + try writer["tags"].writeMap(value.tags, valueWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) } } -extension SearchInput { +extension CreateDomainUnitInput { - static func urlPathProvider(_ value: SearchInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/search" + static func write(value: CreateDomainUnitInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["clientToken"].write(value.clientToken) + try writer["description"].write(value.description) + try writer["name"].write(value.name) + try writer["parentDomainUnitIdentifier"].write(value.parentDomainUnitIdentifier) } } -extension SearchGroupProfilesInput { +extension CreateEnvironmentInput { - static func urlPathProvider(_ value: SearchGroupProfilesInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/search-group-profiles" + static func write(value: CreateEnvironmentInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["description"].write(value.description) + try writer["environmentAccountIdentifier"].write(value.environmentAccountIdentifier) + try writer["environmentAccountRegion"].write(value.environmentAccountRegion) + try writer["environmentBlueprintIdentifier"].write(value.environmentBlueprintIdentifier) + try writer["environmentProfileIdentifier"].write(value.environmentProfileIdentifier) + try writer["glossaryTerms"].writeList(value.glossaryTerms, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["name"].write(value.name) + try writer["projectIdentifier"].write(value.projectIdentifier) + try writer["userParameters"].writeList(value.userParameters, memberWritingClosure: DataZoneClientTypes.EnvironmentParameter.write(value:to:), memberNodeInfo: "member", isFlattened: false) } } -extension SearchListingsInput { +extension CreateEnvironmentActionInput { - static func urlPathProvider(_ value: SearchListingsInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/listings/search" + static func write(value: CreateEnvironmentActionInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["description"].write(value.description) + try writer["name"].write(value.name) + try writer["parameters"].write(value.parameters, with: DataZoneClientTypes.ActionParameters.write(value:to:)) } } -extension SearchTypesInput { +extension CreateEnvironmentProfileInput { - static func urlPathProvider(_ value: SearchTypesInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/types-search" + static func write(value: CreateEnvironmentProfileInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["awsAccountId"].write(value.awsAccountId) + try writer["awsAccountRegion"].write(value.awsAccountRegion) + try writer["description"].write(value.description) + try writer["environmentBlueprintIdentifier"].write(value.environmentBlueprintIdentifier) + try writer["name"].write(value.name) + try writer["projectIdentifier"].write(value.projectIdentifier) + try writer["userParameters"].writeList(value.userParameters, memberWritingClosure: DataZoneClientTypes.EnvironmentParameter.write(value:to:), memberNodeInfo: "member", isFlattened: false) } } -extension SearchUserProfilesInput { +extension CreateFormTypeInput { - static func urlPathProvider(_ value: SearchUserProfilesInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/search-user-profiles" + static func write(value: CreateFormTypeInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["description"].write(value.description) + try writer["model"].write(value.model, with: DataZoneClientTypes.Model.write(value:to:)) + try writer["name"].write(value.name) + try writer["owningProjectIdentifier"].write(value.owningProjectIdentifier) + try writer["status"].write(value.status) } } -extension StartDataSourceRunInput { +extension CreateGlossaryInput { - static func urlPathProvider(_ value: StartDataSourceRunInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil - } - guard let dataSourceIdentifier = value.dataSourceIdentifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-sources/\(dataSourceIdentifier.urlPercentEncoding())/runs" + static func write(value: CreateGlossaryInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["clientToken"].write(value.clientToken) + try writer["description"].write(value.description) + try writer["name"].write(value.name) + try writer["owningProjectIdentifier"].write(value.owningProjectIdentifier) + try writer["status"].write(value.status) } } -extension StartMetadataGenerationRunInput { +extension CreateGlossaryTermInput { - static func urlPathProvider(_ value: StartMetadataGenerationRunInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/metadata-generation-runs" + static func write(value: CreateGlossaryTermInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["clientToken"].write(value.clientToken) + try writer["glossaryIdentifier"].write(value.glossaryIdentifier) + try writer["longDescription"].write(value.longDescription) + try writer["name"].write(value.name) + try writer["shortDescription"].write(value.shortDescription) + try writer["status"].write(value.status) + try writer["termRelations"].write(value.termRelations, with: DataZoneClientTypes.TermRelations.write(value:to:)) } } -extension TagResourceInput { +extension CreateGroupProfileInput { - static func urlPathProvider(_ value: TagResourceInput) -> Swift.String? { - guard let resourceArn = value.resourceArn else { - return nil - } - return "/tags/\(resourceArn.urlPercentEncoding())" + static func write(value: CreateGroupProfileInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["clientToken"].write(value.clientToken) + try writer["groupIdentifier"].write(value.groupIdentifier) } } -extension UntagResourceInput { +extension CreateListingChangeSetInput { - static func urlPathProvider(_ value: UntagResourceInput) -> Swift.String? { - guard let resourceArn = value.resourceArn else { - return nil - } - return "/tags/\(resourceArn.urlPercentEncoding())" + static func write(value: CreateListingChangeSetInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["action"].write(value.action) + try writer["clientToken"].write(value.clientToken) + try writer["entityIdentifier"].write(value.entityIdentifier) + try writer["entityRevision"].write(value.entityRevision) + try writer["entityType"].write(value.entityType) } } -extension UntagResourceInput { +extension CreateProjectInput { - static func queryItemProvider(_ value: UntagResourceInput) throws -> [Smithy.URIQueryItem] { - var items = [Smithy.URIQueryItem]() - guard let tagKeys = value.tagKeys else { - let message = "Creating a URL Query Item failed. tagKeys is required and must not be nil." - throw Smithy.ClientError.unknownError(message) - } - tagKeys.forEach { queryItemValue in - let queryItem = Smithy.URIQueryItem(name: "tagKeys".urlPercentEncoding(), value: Swift.String(queryItemValue).urlPercentEncoding()) - items.append(queryItem) - } - return items + static func write(value: CreateProjectInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["description"].write(value.description) + try writer["domainUnitId"].write(value.domainUnitId) + try writer["glossaryTerms"].writeList(value.glossaryTerms, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["name"].write(value.name) } } -extension UpdateAssetFilterInput { +extension CreateProjectMembershipInput { - static func urlPathProvider(_ value: UpdateAssetFilterInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil - } - guard let assetIdentifier = value.assetIdentifier else { - return nil - } - guard let identifier = value.identifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/assets/\(assetIdentifier.urlPercentEncoding())/filters/\(identifier.urlPercentEncoding())" + static func write(value: CreateProjectMembershipInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["designation"].write(value.designation) + try writer["member"].write(value.member, with: DataZoneClientTypes.Member.write(value:to:)) } } -extension UpdateDataSourceInput { +extension CreateSubscriptionGrantInput { - static func urlPathProvider(_ value: UpdateDataSourceInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil - } - guard let identifier = value.identifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/data-sources/\(identifier.urlPercentEncoding())" + static func write(value: CreateSubscriptionGrantInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["assetTargetNames"].writeList(value.assetTargetNames, memberWritingClosure: DataZoneClientTypes.AssetTargetNameMap.write(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["clientToken"].write(value.clientToken) + try writer["environmentIdentifier"].write(value.environmentIdentifier) + try writer["grantedEntity"].write(value.grantedEntity, with: DataZoneClientTypes.GrantedEntityInput.write(value:to:)) + try writer["subscriptionTargetIdentifier"].write(value.subscriptionTargetIdentifier) } } -extension UpdateDomainInput { +extension CreateSubscriptionRequestInput { - static func urlPathProvider(_ value: UpdateDomainInput) -> Swift.String? { - guard let identifier = value.identifier else { - return nil - } - return "/v2/domains/\(identifier.urlPercentEncoding())" + static func write(value: CreateSubscriptionRequestInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["clientToken"].write(value.clientToken) + try writer["requestReason"].write(value.requestReason) + try writer["subscribedListings"].writeList(value.subscribedListings, memberWritingClosure: DataZoneClientTypes.SubscribedListingInput.write(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["subscribedPrincipals"].writeList(value.subscribedPrincipals, memberWritingClosure: DataZoneClientTypes.SubscribedPrincipalInput.write(value:to:), memberNodeInfo: "member", isFlattened: false) } } -extension UpdateDomainInput { +extension CreateSubscriptionTargetInput { - static func queryItemProvider(_ value: UpdateDomainInput) throws -> [Smithy.URIQueryItem] { - var items = [Smithy.URIQueryItem]() - if let clientToken = value.clientToken { - let clientTokenQueryItem = Smithy.URIQueryItem(name: "clientToken".urlPercentEncoding(), value: Swift.String(clientToken).urlPercentEncoding()) - items.append(clientTokenQueryItem) - } - return items + static func write(value: CreateSubscriptionTargetInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["applicableAssetTypes"].writeList(value.applicableAssetTypes, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["authorizedPrincipals"].writeList(value.authorizedPrincipals, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["clientToken"].write(value.clientToken) + try writer["manageAccessRole"].write(value.manageAccessRole) + try writer["name"].write(value.name) + try writer["provider"].write(value.provider) + try writer["subscriptionTargetConfig"].writeList(value.subscriptionTargetConfig, memberWritingClosure: DataZoneClientTypes.SubscriptionTargetForm.write(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["type"].write(value.type) } } -extension UpdateEnvironmentInput { +extension CreateUserProfileInput { - static func urlPathProvider(_ value: UpdateEnvironmentInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil - } - guard let identifier = value.identifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(identifier.urlPercentEncoding())" + static func write(value: CreateUserProfileInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["clientToken"].write(value.clientToken) + try writer["userIdentifier"].write(value.userIdentifier) + try writer["userType"].write(value.userType) } } -extension UpdateEnvironmentActionInput { +extension DeleteProjectMembershipInput { - static func urlPathProvider(_ value: UpdateEnvironmentActionInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil - } - guard let environmentIdentifier = value.environmentIdentifier else { - return nil - } - guard let identifier = value.identifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(environmentIdentifier.urlPercentEncoding())/actions/\(identifier.urlPercentEncoding())" + static func write(value: DeleteProjectMembershipInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["member"].write(value.member, with: DataZoneClientTypes.Member.write(value:to:)) } } -extension UpdateEnvironmentProfileInput { +extension PostLineageEventInput { - static func urlPathProvider(_ value: UpdateEnvironmentProfileInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil - } - guard let identifier = value.identifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environment-profiles/\(identifier.urlPercentEncoding())" + static func write(value: PostLineageEventInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["event"].write(value.event) } } -extension UpdateGlossaryInput { +extension PostTimeSeriesDataPointsInput { - static func urlPathProvider(_ value: UpdateGlossaryInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil - } - guard let identifier = value.identifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/glossaries/\(identifier.urlPercentEncoding())" + static func write(value: PostTimeSeriesDataPointsInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["clientToken"].write(value.clientToken) + try writer["forms"].writeList(value.forms, memberWritingClosure: DataZoneClientTypes.TimeSeriesDataPointFormInput.write(value:to:), memberNodeInfo: "member", isFlattened: false) } } -extension UpdateGlossaryTermInput { +extension PutEnvironmentBlueprintConfigurationInput { - static func urlPathProvider(_ value: UpdateGlossaryTermInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil - } - guard let identifier = value.identifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/glossary-terms/\(identifier.urlPercentEncoding())" + static func write(value: PutEnvironmentBlueprintConfigurationInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["enabledRegions"].writeList(value.enabledRegions, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["manageAccessRoleArn"].write(value.manageAccessRoleArn) + try writer["provisioningConfigurations"].writeList(value.provisioningConfigurations, memberWritingClosure: DataZoneClientTypes.ProvisioningConfiguration.write(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["provisioningRoleArn"].write(value.provisioningRoleArn) + try writer["regionalParameters"].writeMap(value.regionalParameters, valueWritingClosure: SmithyReadWrite.mapWritingClosure(valueWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) } } -extension UpdateGroupProfileInput { +extension RejectPredictionsInput { - static func urlPathProvider(_ value: UpdateGroupProfileInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil - } - guard let groupIdentifier = value.groupIdentifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/group-profiles/\(groupIdentifier.urlPercentEncoding())" + static func write(value: RejectPredictionsInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["clientToken"].write(value.clientToken) + try writer["rejectChoices"].writeList(value.rejectChoices, memberWritingClosure: DataZoneClientTypes.RejectChoice.write(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["rejectRule"].write(value.rejectRule, with: DataZoneClientTypes.RejectRule.write(value:to:)) } } -extension UpdateProjectInput { +extension RejectSubscriptionRequestInput { - static func urlPathProvider(_ value: UpdateProjectInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil - } - guard let identifier = value.identifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/projects/\(identifier.urlPercentEncoding())" + static func write(value: RejectSubscriptionRequestInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["decisionComment"].write(value.decisionComment) } } -extension UpdateSubscriptionGrantStatusInput { +extension RemoveEntityOwnerInput { - static func urlPathProvider(_ value: UpdateSubscriptionGrantStatusInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil - } - guard let identifier = value.identifier else { - return nil - } - guard let assetIdentifier = value.assetIdentifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscription-grants/\(identifier.urlPercentEncoding())/status/\(assetIdentifier.urlPercentEncoding())" + static func write(value: RemoveEntityOwnerInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["clientToken"].write(value.clientToken) + try writer["owner"].write(value.owner, with: DataZoneClientTypes.OwnerProperties.write(value:to:)) } } -extension UpdateSubscriptionRequestInput { +extension RemovePolicyGrantInput { - static func urlPathProvider(_ value: UpdateSubscriptionRequestInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil - } - guard let identifier = value.identifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/subscription-requests/\(identifier.urlPercentEncoding())" + static func write(value: RemovePolicyGrantInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["clientToken"].write(value.clientToken) + try writer["policyType"].write(value.policyType) + try writer["principal"].write(value.principal, with: DataZoneClientTypes.PolicyGrantPrincipal.write(value:to:)) } } -extension UpdateSubscriptionTargetInput { +extension RevokeSubscriptionInput { - static func urlPathProvider(_ value: UpdateSubscriptionTargetInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil - } - guard let environmentIdentifier = value.environmentIdentifier else { - return nil - } - guard let identifier = value.identifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/environments/\(environmentIdentifier.urlPercentEncoding())/subscription-targets/\(identifier.urlPercentEncoding())" + static func write(value: RevokeSubscriptionInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["retainPermissions"].write(value.retainPermissions) } } -extension UpdateUserProfileInput { +extension SearchInput { - static func urlPathProvider(_ value: UpdateUserProfileInput) -> Swift.String? { - guard let domainIdentifier = value.domainIdentifier else { - return nil - } - guard let userIdentifier = value.userIdentifier else { - return nil - } - return "/v2/domains/\(domainIdentifier.urlPercentEncoding())/user-profiles/\(userIdentifier.urlPercentEncoding())" + static func write(value: SearchInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["additionalAttributes"].writeList(value.additionalAttributes, memberWritingClosure: SmithyReadWrite.WritingClosureBox().write(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["filters"].write(value.filters, with: DataZoneClientTypes.FilterClause.write(value:to:)) + try writer["maxResults"].write(value.maxResults) + try writer["nextToken"].write(value.nextToken) + try writer["owningProjectIdentifier"].write(value.owningProjectIdentifier) + try writer["searchIn"].writeList(value.searchIn, memberWritingClosure: DataZoneClientTypes.SearchInItem.write(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["searchScope"].write(value.searchScope) + try writer["searchText"].write(value.searchText) + try writer["sort"].write(value.sort, with: DataZoneClientTypes.SearchSort.write(value:to:)) } } -extension AcceptPredictionsInput { +extension SearchGroupProfilesInput { - static func write(value: AcceptPredictionsInput?, to writer: SmithyJSON.Writer) throws { + static func write(value: SearchGroupProfilesInput?, to writer: SmithyJSON.Writer) throws { guard let value else { return } - try writer["acceptChoices"].writeList(value.acceptChoices, memberWritingClosure: DataZoneClientTypes.AcceptChoice.write(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["acceptRule"].write(value.acceptRule, with: DataZoneClientTypes.AcceptRule.write(value:to:)) - try writer["clientToken"].write(value.clientToken) + try writer["groupType"].write(value.groupType) + try writer["maxResults"].write(value.maxResults) + try writer["nextToken"].write(value.nextToken) + try writer["searchText"].write(value.searchText) } } -extension AcceptSubscriptionRequestInput { +extension SearchListingsInput { - static func write(value: AcceptSubscriptionRequestInput?, to writer: SmithyJSON.Writer) throws { + static func write(value: SearchListingsInput?, to writer: SmithyJSON.Writer) throws { guard let value else { return } - try writer["decisionComment"].write(value.decisionComment) + try writer["additionalAttributes"].writeList(value.additionalAttributes, memberWritingClosure: SmithyReadWrite.WritingClosureBox().write(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["filters"].write(value.filters, with: DataZoneClientTypes.FilterClause.write(value:to:)) + try writer["maxResults"].write(value.maxResults) + try writer["nextToken"].write(value.nextToken) + try writer["searchIn"].writeList(value.searchIn, memberWritingClosure: DataZoneClientTypes.SearchInItem.write(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["searchText"].write(value.searchText) + try writer["sort"].write(value.sort, with: DataZoneClientTypes.SearchSort.write(value:to:)) } } -extension CreateAssetInput { +extension SearchTypesInput { - static func write(value: CreateAssetInput?, to writer: SmithyJSON.Writer) throws { + static func write(value: SearchTypesInput?, to writer: SmithyJSON.Writer) throws { guard let value else { return } - try writer["clientToken"].write(value.clientToken) - try writer["description"].write(value.description) - try writer["externalIdentifier"].write(value.externalIdentifier) - try writer["formsInput"].writeList(value.formsInput, memberWritingClosure: DataZoneClientTypes.FormInput.write(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["glossaryTerms"].writeList(value.glossaryTerms, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["name"].write(value.name) - try writer["owningProjectIdentifier"].write(value.owningProjectIdentifier) - try writer["predictionConfiguration"].write(value.predictionConfiguration, with: DataZoneClientTypes.PredictionConfiguration.write(value:to:)) - try writer["typeIdentifier"].write(value.typeIdentifier) - try writer["typeRevision"].write(value.typeRevision) + try writer["filters"].write(value.filters, with: DataZoneClientTypes.FilterClause.write(value:to:)) + try writer["managed"].write(value.managed) + try writer["maxResults"].write(value.maxResults) + try writer["nextToken"].write(value.nextToken) + try writer["searchIn"].writeList(value.searchIn, memberWritingClosure: DataZoneClientTypes.SearchInItem.write(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["searchScope"].write(value.searchScope) + try writer["searchText"].write(value.searchText) + try writer["sort"].write(value.sort, with: DataZoneClientTypes.SearchSort.write(value:to:)) } } -extension CreateAssetFilterInput { +extension SearchUserProfilesInput { - static func write(value: CreateAssetFilterInput?, to writer: SmithyJSON.Writer) throws { + static func write(value: SearchUserProfilesInput?, to writer: SmithyJSON.Writer) throws { guard let value else { return } - try writer["clientToken"].write(value.clientToken) - try writer["configuration"].write(value.configuration, with: DataZoneClientTypes.AssetFilterConfiguration.write(value:to:)) - try writer["description"].write(value.description) - try writer["name"].write(value.name) + try writer["maxResults"].write(value.maxResults) + try writer["nextToken"].write(value.nextToken) + try writer["searchText"].write(value.searchText) + try writer["userType"].write(value.userType) } } -extension CreateAssetRevisionInput { +extension StartDataSourceRunInput { - static func write(value: CreateAssetRevisionInput?, to writer: SmithyJSON.Writer) throws { + static func write(value: StartDataSourceRunInput?, to writer: SmithyJSON.Writer) throws { guard let value else { return } try writer["clientToken"].write(value.clientToken) - try writer["description"].write(value.description) - try writer["formsInput"].writeList(value.formsInput, memberWritingClosure: DataZoneClientTypes.FormInput.write(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["glossaryTerms"].writeList(value.glossaryTerms, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["name"].write(value.name) - try writer["predictionConfiguration"].write(value.predictionConfiguration, with: DataZoneClientTypes.PredictionConfiguration.write(value:to:)) - try writer["typeRevision"].write(value.typeRevision) } } -extension CreateAssetTypeInput { +extension StartMetadataGenerationRunInput { - static func write(value: CreateAssetTypeInput?, to writer: SmithyJSON.Writer) throws { + static func write(value: StartMetadataGenerationRunInput?, to writer: SmithyJSON.Writer) throws { guard let value else { return } - try writer["description"].write(value.description) - try writer["formsInput"].writeMap(value.formsInput, valueWritingClosure: DataZoneClientTypes.FormEntryInput.write(value:to:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) - try writer["name"].write(value.name) + try writer["clientToken"].write(value.clientToken) try writer["owningProjectIdentifier"].write(value.owningProjectIdentifier) + try writer["target"].write(value.target, with: DataZoneClientTypes.MetadataGenerationRunTarget.write(value:to:)) + try writer["type"].write(value.type) } } -extension CreateDataProductInput { +extension TagResourceInput { - static func write(value: CreateDataProductInput?, to writer: SmithyJSON.Writer) throws { + static func write(value: TagResourceInput?, to writer: SmithyJSON.Writer) throws { guard let value else { return } - try writer["clientToken"].write(value.clientToken) - try writer["description"].write(value.description) - try writer["formsInput"].writeList(value.formsInput, memberWritingClosure: DataZoneClientTypes.FormInput.write(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["glossaryTerms"].writeList(value.glossaryTerms, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["items"].writeList(value.items, memberWritingClosure: DataZoneClientTypes.DataProductItem.write(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["name"].write(value.name) - try writer["owningProjectIdentifier"].write(value.owningProjectIdentifier) + try writer["tags"].writeMap(value.tags, valueWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) } } -extension CreateDataProductRevisionInput { +extension UpdateAssetFilterInput { - static func write(value: CreateDataProductRevisionInput?, to writer: SmithyJSON.Writer) throws { + static func write(value: UpdateAssetFilterInput?, to writer: SmithyJSON.Writer) throws { guard let value else { return } - try writer["clientToken"].write(value.clientToken) + try writer["configuration"].write(value.configuration, with: DataZoneClientTypes.AssetFilterConfiguration.write(value:to:)) try writer["description"].write(value.description) - try writer["formsInput"].writeList(value.formsInput, memberWritingClosure: DataZoneClientTypes.FormInput.write(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["glossaryTerms"].writeList(value.glossaryTerms, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["items"].writeList(value.items, memberWritingClosure: DataZoneClientTypes.DataProductItem.write(value:to:), memberNodeInfo: "member", isFlattened: false) try writer["name"].write(value.name) } } -extension CreateDataSourceInput { +extension UpdateDataSourceInput { - static func write(value: CreateDataSourceInput?, to writer: SmithyJSON.Writer) throws { + static func write(value: UpdateDataSourceInput?, to writer: SmithyJSON.Writer) throws { guard let value else { return } try writer["assetFormsInput"].writeList(value.assetFormsInput, memberWritingClosure: DataZoneClientTypes.FormInput.write(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["clientToken"].write(value.clientToken) try writer["configuration"].write(value.configuration, with: DataZoneClientTypes.DataSourceConfigurationInput.write(value:to:)) try writer["description"].write(value.description) try writer["enableSetting"].write(value.enableSetting) - try writer["environmentIdentifier"].write(value.environmentIdentifier) try writer["name"].write(value.name) - try writer["projectIdentifier"].write(value.projectIdentifier) try writer["publishOnImport"].write(value.publishOnImport) try writer["recommendation"].write(value.recommendation, with: DataZoneClientTypes.RecommendationConfiguration.write(value:to:)) + try writer["retainPermissionsOnRevokeFailure"].write(value.retainPermissionsOnRevokeFailure) try writer["schedule"].write(value.schedule, with: DataZoneClientTypes.ScheduleConfiguration.write(value:to:)) - try writer["type"].write(value.type) } } -extension CreateDomainInput { +extension UpdateDomainInput { - static func write(value: CreateDomainInput?, to writer: SmithyJSON.Writer) throws { + static func write(value: UpdateDomainInput?, to writer: SmithyJSON.Writer) throws { guard let value else { return } - try writer["clientToken"].write(value.clientToken) try writer["description"].write(value.description) try writer["domainExecutionRole"].write(value.domainExecutionRole) - try writer["kmsKeyIdentifier"].write(value.kmsKeyIdentifier) try writer["name"].write(value.name) try writer["singleSignOn"].write(value.singleSignOn, with: DataZoneClientTypes.SingleSignOn.write(value:to:)) - try writer["tags"].writeMap(value.tags, valueWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) } } -extension CreateEnvironmentInput { +extension UpdateDomainUnitInput { - static func write(value: CreateEnvironmentInput?, to writer: SmithyJSON.Writer) throws { + static func write(value: UpdateDomainUnitInput?, to writer: SmithyJSON.Writer) throws { guard let value else { return } try writer["description"].write(value.description) - try writer["environmentAccountIdentifier"].write(value.environmentAccountIdentifier) - try writer["environmentAccountRegion"].write(value.environmentAccountRegion) - try writer["environmentBlueprintIdentifier"].write(value.environmentBlueprintIdentifier) - try writer["environmentProfileIdentifier"].write(value.environmentProfileIdentifier) - try writer["glossaryTerms"].writeList(value.glossaryTerms, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) try writer["name"].write(value.name) - try writer["projectIdentifier"].write(value.projectIdentifier) - try writer["userParameters"].writeList(value.userParameters, memberWritingClosure: DataZoneClientTypes.EnvironmentParameter.write(value:to:), memberNodeInfo: "member", isFlattened: false) } } -extension CreateEnvironmentActionInput { +extension UpdateEnvironmentInput { - static func write(value: CreateEnvironmentActionInput?, to writer: SmithyJSON.Writer) throws { + static func write(value: UpdateEnvironmentInput?, to writer: SmithyJSON.Writer) throws { guard let value else { return } try writer["description"].write(value.description) + try writer["glossaryTerms"].writeList(value.glossaryTerms, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) try writer["name"].write(value.name) - try writer["parameters"].write(value.parameters, with: DataZoneClientTypes.ActionParameters.write(value:to:)) } } -extension CreateEnvironmentProfileInput { +extension UpdateEnvironmentActionInput { - static func write(value: CreateEnvironmentProfileInput?, to writer: SmithyJSON.Writer) throws { + static func write(value: UpdateEnvironmentActionInput?, to writer: SmithyJSON.Writer) throws { guard let value else { return } - try writer["awsAccountId"].write(value.awsAccountId) - try writer["awsAccountRegion"].write(value.awsAccountRegion) try writer["description"].write(value.description) - try writer["environmentBlueprintIdentifier"].write(value.environmentBlueprintIdentifier) try writer["name"].write(value.name) - try writer["projectIdentifier"].write(value.projectIdentifier) - try writer["userParameters"].writeList(value.userParameters, memberWritingClosure: DataZoneClientTypes.EnvironmentParameter.write(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["parameters"].write(value.parameters, with: DataZoneClientTypes.ActionParameters.write(value:to:)) } } -extension CreateFormTypeInput { +extension UpdateEnvironmentProfileInput { - static func write(value: CreateFormTypeInput?, to writer: SmithyJSON.Writer) throws { + static func write(value: UpdateEnvironmentProfileInput?, to writer: SmithyJSON.Writer) throws { guard let value else { return } + try writer["awsAccountId"].write(value.awsAccountId) + try writer["awsAccountRegion"].write(value.awsAccountRegion) try writer["description"].write(value.description) - try writer["model"].write(value.model, with: DataZoneClientTypes.Model.write(value:to:)) try writer["name"].write(value.name) - try writer["owningProjectIdentifier"].write(value.owningProjectIdentifier) - try writer["status"].write(value.status) + try writer["userParameters"].writeList(value.userParameters, memberWritingClosure: DataZoneClientTypes.EnvironmentParameter.write(value:to:), memberNodeInfo: "member", isFlattened: false) } } -extension CreateGlossaryInput { +extension UpdateGlossaryInput { - static func write(value: CreateGlossaryInput?, to writer: SmithyJSON.Writer) throws { + static func write(value: UpdateGlossaryInput?, to writer: SmithyJSON.Writer) throws { guard let value else { return } try writer["clientToken"].write(value.clientToken) try writer["description"].write(value.description) try writer["name"].write(value.name) - try writer["owningProjectIdentifier"].write(value.owningProjectIdentifier) try writer["status"].write(value.status) } } -extension CreateGlossaryTermInput { +extension UpdateGlossaryTermInput { - static func write(value: CreateGlossaryTermInput?, to writer: SmithyJSON.Writer) throws { + static func write(value: UpdateGlossaryTermInput?, to writer: SmithyJSON.Writer) throws { guard let value else { return } - try writer["clientToken"].write(value.clientToken) try writer["glossaryIdentifier"].write(value.glossaryIdentifier) try writer["longDescription"].write(value.longDescription) try writer["name"].write(value.name) @@ -18159,534 +20070,856 @@ extension CreateGlossaryTermInput { } } -extension CreateGroupProfileInput { +extension UpdateGroupProfileInput { - static func write(value: CreateGroupProfileInput?, to writer: SmithyJSON.Writer) throws { + static func write(value: UpdateGroupProfileInput?, to writer: SmithyJSON.Writer) throws { guard let value else { return } - try writer["clientToken"].write(value.clientToken) - try writer["groupIdentifier"].write(value.groupIdentifier) + try writer["status"].write(value.status) } } -extension CreateListingChangeSetInput { +extension UpdateProjectInput { - static func write(value: CreateListingChangeSetInput?, to writer: SmithyJSON.Writer) throws { + static func write(value: UpdateProjectInput?, to writer: SmithyJSON.Writer) throws { guard let value else { return } - try writer["action"].write(value.action) - try writer["clientToken"].write(value.clientToken) - try writer["entityIdentifier"].write(value.entityIdentifier) - try writer["entityRevision"].write(value.entityRevision) - try writer["entityType"].write(value.entityType) + try writer["description"].write(value.description) + try writer["glossaryTerms"].writeList(value.glossaryTerms, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["name"].write(value.name) } } -extension CreateProjectInput { +extension UpdateSubscriptionGrantStatusInput { - static func write(value: CreateProjectInput?, to writer: SmithyJSON.Writer) throws { + static func write(value: UpdateSubscriptionGrantStatusInput?, to writer: SmithyJSON.Writer) throws { guard let value else { return } - try writer["description"].write(value.description) - try writer["glossaryTerms"].writeList(value.glossaryTerms, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["failureCause"].write(value.failureCause, with: DataZoneClientTypes.FailureCause.write(value:to:)) + try writer["status"].write(value.status) + try writer["targetName"].write(value.targetName) + } +} + +extension UpdateSubscriptionRequestInput { + + static func write(value: UpdateSubscriptionRequestInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["requestReason"].write(value.requestReason) + } +} + +extension UpdateSubscriptionTargetInput { + + static func write(value: UpdateSubscriptionTargetInput?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["applicableAssetTypes"].writeList(value.applicableAssetTypes, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["authorizedPrincipals"].writeList(value.authorizedPrincipals, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["manageAccessRole"].write(value.manageAccessRole) try writer["name"].write(value.name) + try writer["provider"].write(value.provider) + try writer["subscriptionTargetConfig"].writeList(value.subscriptionTargetConfig, memberWritingClosure: DataZoneClientTypes.SubscriptionTargetForm.write(value:to:), memberNodeInfo: "member", isFlattened: false) } } -extension CreateProjectMembershipInput { +extension UpdateUserProfileInput { - static func write(value: CreateProjectMembershipInput?, to writer: SmithyJSON.Writer) throws { + static func write(value: UpdateUserProfileInput?, to writer: SmithyJSON.Writer) throws { guard let value else { return } - try writer["designation"].write(value.designation) - try writer["member"].write(value.member, with: DataZoneClientTypes.Member.write(value:to:)) + try writer["status"].write(value.status) + try writer["type"].write(value.type) + } +} + +extension AcceptPredictionsOutput { + + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> AcceptPredictionsOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = AcceptPredictionsOutput() + value.assetId = try reader["assetId"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.revision = try reader["revision"].readIfPresent() + return value + } +} + +extension AcceptSubscriptionRequestOutput { + + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> AcceptSubscriptionRequestOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = AcceptSubscriptionRequestOutput() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() + value.decisionComment = try reader["decisionComment"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.requestReason = try reader["requestReason"].readIfPresent() + value.reviewerId = try reader["reviewerId"].readIfPresent() + value.status = try reader["status"].readIfPresent() + value.subscribedListings = try reader["subscribedListings"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscribedListing.read(from:), memberNodeInfo: "member", isFlattened: false) + value.subscribedPrincipals = try reader["subscribedPrincipals"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscribedPrincipal.read(from:), memberNodeInfo: "member", isFlattened: false) + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) + value.updatedBy = try reader["updatedBy"].readIfPresent() + return value + } +} + +extension AddEntityOwnerOutput { + + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> AddEntityOwnerOutput { + return AddEntityOwnerOutput() + } +} + +extension AddPolicyGrantOutput { + + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> AddPolicyGrantOutput { + return AddPolicyGrantOutput() + } +} + +extension AssociateEnvironmentRoleOutput { + + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> AssociateEnvironmentRoleOutput { + return AssociateEnvironmentRoleOutput() + } +} + +extension CancelMetadataGenerationRunOutput { + + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CancelMetadataGenerationRunOutput { + return CancelMetadataGenerationRunOutput() + } +} + +extension CancelSubscriptionOutput { + + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CancelSubscriptionOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = CancelSubscriptionOutput() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.retainPermissions = try reader["retainPermissions"].readIfPresent() + value.status = try reader["status"].readIfPresent() + value.subscribedListing = try reader["subscribedListing"].readIfPresent(with: DataZoneClientTypes.SubscribedListing.read(from:)) + value.subscribedPrincipal = try reader["subscribedPrincipal"].readIfPresent(with: DataZoneClientTypes.SubscribedPrincipal.read(from:)) + value.subscriptionRequestId = try reader["subscriptionRequestId"].readIfPresent() + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) + value.updatedBy = try reader["updatedBy"].readIfPresent() + return value + } +} + +extension CreateAssetOutput { + + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateAssetOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = CreateAssetOutput() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() + value.description = try reader["description"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.externalIdentifier = try reader["externalIdentifier"].readIfPresent() + value.firstRevisionCreatedAt = try reader["firstRevisionCreatedAt"].readTimestampIfPresent(format: .epochSeconds) + value.firstRevisionCreatedBy = try reader["firstRevisionCreatedBy"].readIfPresent() + value.formsOutput = try reader["formsOutput"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.FormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) + value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + value.id = try reader["id"].readIfPresent() + value.latestTimeSeriesDataPointFormsOutput = try reader["latestTimeSeriesDataPointFormsOutput"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.TimeSeriesDataPointSummaryFormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) + value.listing = try reader["listing"].readIfPresent(with: DataZoneClientTypes.AssetListingDetails.read(from:)) + value.name = try reader["name"].readIfPresent() + value.owningProjectId = try reader["owningProjectId"].readIfPresent() + value.predictionConfiguration = try reader["predictionConfiguration"].readIfPresent(with: DataZoneClientTypes.PredictionConfiguration.read(from:)) + value.readOnlyFormsOutput = try reader["readOnlyFormsOutput"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.FormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) + value.revision = try reader["revision"].readIfPresent() + value.typeIdentifier = try reader["typeIdentifier"].readIfPresent() + value.typeRevision = try reader["typeRevision"].readIfPresent() + return value + } +} + +extension CreateAssetFilterOutput { + + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateAssetFilterOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = CreateAssetFilterOutput() + value.assetId = try reader["assetId"].readIfPresent() + value.configuration = try reader["configuration"].readIfPresent(with: DataZoneClientTypes.AssetFilterConfiguration.read(from:)) + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.description = try reader["description"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.effectiveColumnNames = try reader["effectiveColumnNames"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + value.effectiveRowFilter = try reader["effectiveRowFilter"].readIfPresent() + value.errorMessage = try reader["errorMessage"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.status = try reader["status"].readIfPresent() + return value + } +} + +extension CreateAssetRevisionOutput { + + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateAssetRevisionOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = CreateAssetRevisionOutput() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() + value.description = try reader["description"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.externalIdentifier = try reader["externalIdentifier"].readIfPresent() + value.firstRevisionCreatedAt = try reader["firstRevisionCreatedAt"].readTimestampIfPresent(format: .epochSeconds) + value.firstRevisionCreatedBy = try reader["firstRevisionCreatedBy"].readIfPresent() + value.formsOutput = try reader["formsOutput"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.FormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) + value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + value.id = try reader["id"].readIfPresent() + value.latestTimeSeriesDataPointFormsOutput = try reader["latestTimeSeriesDataPointFormsOutput"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.TimeSeriesDataPointSummaryFormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) + value.listing = try reader["listing"].readIfPresent(with: DataZoneClientTypes.AssetListingDetails.read(from:)) + value.name = try reader["name"].readIfPresent() + value.owningProjectId = try reader["owningProjectId"].readIfPresent() + value.predictionConfiguration = try reader["predictionConfiguration"].readIfPresent(with: DataZoneClientTypes.PredictionConfiguration.read(from:)) + value.readOnlyFormsOutput = try reader["readOnlyFormsOutput"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.FormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) + value.revision = try reader["revision"].readIfPresent() + value.typeIdentifier = try reader["typeIdentifier"].readIfPresent() + value.typeRevision = try reader["typeRevision"].readIfPresent() + return value } } -extension CreateSubscriptionGrantInput { +extension CreateAssetTypeOutput { - static func write(value: CreateSubscriptionGrantInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["assetTargetNames"].writeList(value.assetTargetNames, memberWritingClosure: DataZoneClientTypes.AssetTargetNameMap.write(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["clientToken"].write(value.clientToken) - try writer["environmentIdentifier"].write(value.environmentIdentifier) - try writer["grantedEntity"].write(value.grantedEntity, with: DataZoneClientTypes.GrantedEntityInput.write(value:to:)) - try writer["subscriptionTargetIdentifier"].write(value.subscriptionTargetIdentifier) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateAssetTypeOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = CreateAssetTypeOutput() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() + value.description = try reader["description"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.formsOutput = try reader["formsOutput"].readMapIfPresent(valueReadingClosure: DataZoneClientTypes.FormEntryOutput.read(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) + value.name = try reader["name"].readIfPresent() + value.originDomainId = try reader["originDomainId"].readIfPresent() + value.originProjectId = try reader["originProjectId"].readIfPresent() + value.owningProjectId = try reader["owningProjectId"].readIfPresent() + value.revision = try reader["revision"].readIfPresent() + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) + value.updatedBy = try reader["updatedBy"].readIfPresent() + return value } } -extension CreateSubscriptionRequestInput { +extension CreateDataProductOutput { - static func write(value: CreateSubscriptionRequestInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["clientToken"].write(value.clientToken) - try writer["requestReason"].write(value.requestReason) - try writer["subscribedListings"].writeList(value.subscribedListings, memberWritingClosure: DataZoneClientTypes.SubscribedListingInput.write(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["subscribedPrincipals"].writeList(value.subscribedPrincipals, memberWritingClosure: DataZoneClientTypes.SubscribedPrincipalInput.write(value:to:), memberNodeInfo: "member", isFlattened: false) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateDataProductOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = CreateDataProductOutput() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() + value.description = try reader["description"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.firstRevisionCreatedAt = try reader["firstRevisionCreatedAt"].readTimestampIfPresent(format: .epochSeconds) + value.firstRevisionCreatedBy = try reader["firstRevisionCreatedBy"].readIfPresent() + value.formsOutput = try reader["formsOutput"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.FormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) + value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + value.id = try reader["id"].readIfPresent() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DataProductItem.read(from:), memberNodeInfo: "member", isFlattened: false) + value.name = try reader["name"].readIfPresent() + value.owningProjectId = try reader["owningProjectId"].readIfPresent() + value.revision = try reader["revision"].readIfPresent() + value.status = try reader["status"].readIfPresent() ?? .created + return value } } -extension CreateSubscriptionTargetInput { +extension CreateDataProductRevisionOutput { - static func write(value: CreateSubscriptionTargetInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["applicableAssetTypes"].writeList(value.applicableAssetTypes, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["authorizedPrincipals"].writeList(value.authorizedPrincipals, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["clientToken"].write(value.clientToken) - try writer["manageAccessRole"].write(value.manageAccessRole) - try writer["name"].write(value.name) - try writer["provider"].write(value.provider) - try writer["subscriptionTargetConfig"].writeList(value.subscriptionTargetConfig, memberWritingClosure: DataZoneClientTypes.SubscriptionTargetForm.write(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["type"].write(value.type) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateDataProductRevisionOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = CreateDataProductRevisionOutput() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() + value.description = try reader["description"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.firstRevisionCreatedAt = try reader["firstRevisionCreatedAt"].readTimestampIfPresent(format: .epochSeconds) + value.firstRevisionCreatedBy = try reader["firstRevisionCreatedBy"].readIfPresent() + value.formsOutput = try reader["formsOutput"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.FormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) + value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + value.id = try reader["id"].readIfPresent() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DataProductItem.read(from:), memberNodeInfo: "member", isFlattened: false) + value.name = try reader["name"].readIfPresent() + value.owningProjectId = try reader["owningProjectId"].readIfPresent() + value.revision = try reader["revision"].readIfPresent() + value.status = try reader["status"].readIfPresent() ?? .created + return value } } -extension CreateUserProfileInput { +extension CreateDataSourceOutput { - static func write(value: CreateUserProfileInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["clientToken"].write(value.clientToken) - try writer["userIdentifier"].write(value.userIdentifier) - try writer["userType"].write(value.userType) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateDataSourceOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = CreateDataSourceOutput() + value.assetFormsOutput = try reader["assetFormsOutput"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.FormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) + value.configuration = try reader["configuration"].readIfPresent(with: DataZoneClientTypes.DataSourceConfigurationOutput.read(from:)) + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) + value.description = try reader["description"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.enableSetting = try reader["enableSetting"].readIfPresent() + value.environmentId = try reader["environmentId"].readIfPresent() + value.errorMessage = try reader["errorMessage"].readIfPresent(with: DataZoneClientTypes.DataSourceErrorMessage.read(from:)) + value.id = try reader["id"].readIfPresent() + value.lastRunAt = try reader["lastRunAt"].readTimestampIfPresent(format: .dateTime) + value.lastRunErrorMessage = try reader["lastRunErrorMessage"].readIfPresent(with: DataZoneClientTypes.DataSourceErrorMessage.read(from:)) + value.lastRunStatus = try reader["lastRunStatus"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.projectId = try reader["projectId"].readIfPresent() + value.publishOnImport = try reader["publishOnImport"].readIfPresent() + value.recommendation = try reader["recommendation"].readIfPresent(with: DataZoneClientTypes.RecommendationConfiguration.read(from:)) + value.schedule = try reader["schedule"].readIfPresent(with: DataZoneClientTypes.ScheduleConfiguration.read(from:)) + value.status = try reader["status"].readIfPresent() + value.type = try reader["type"].readIfPresent() + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) + return value } } -extension DeleteProjectMembershipInput { +extension CreateDomainOutput { - static func write(value: DeleteProjectMembershipInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["member"].write(value.member, with: DataZoneClientTypes.Member.write(value:to:)) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateDomainOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = CreateDomainOutput() + value.arn = try reader["arn"].readIfPresent() + value.description = try reader["description"].readIfPresent() + value.domainExecutionRole = try reader["domainExecutionRole"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.kmsKeyIdentifier = try reader["kmsKeyIdentifier"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.portalUrl = try reader["portalUrl"].readIfPresent() + value.rootDomainUnitId = try reader["rootDomainUnitId"].readIfPresent() + value.singleSignOn = try reader["singleSignOn"].readIfPresent(with: DataZoneClientTypes.SingleSignOn.read(from:)) + value.status = try reader["status"].readIfPresent() + value.tags = try reader["tags"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) + return value } } -extension PostLineageEventInput { +extension CreateDomainUnitOutput { - static func write(value: PostLineageEventInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["event"].write(value.event) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateDomainUnitOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = CreateDomainUnitOutput() + value.ancestorDomainUnitIds = try reader["ancestorDomainUnitIds"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() + value.description = try reader["description"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.owners = try reader["owners"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DomainUnitOwnerProperties.read(from:), memberNodeInfo: "member", isFlattened: false) + value.parentDomainUnitId = try reader["parentDomainUnitId"].readIfPresent() + return value } } -extension PostTimeSeriesDataPointsInput { +extension CreateEnvironmentOutput { - static func write(value: PostTimeSeriesDataPointsInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["clientToken"].write(value.clientToken) - try writer["forms"].writeList(value.forms, memberWritingClosure: DataZoneClientTypes.TimeSeriesDataPointFormInput.write(value:to:), memberNodeInfo: "member", isFlattened: false) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateEnvironmentOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = CreateEnvironmentOutput() + value.awsAccountId = try reader["awsAccountId"].readIfPresent() + value.awsAccountRegion = try reader["awsAccountRegion"].readIfPresent() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) + value.createdBy = try reader["createdBy"].readIfPresent() + value.deploymentProperties = try reader["deploymentProperties"].readIfPresent(with: DataZoneClientTypes.DeploymentProperties.read(from:)) + value.description = try reader["description"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.environmentActions = try reader["environmentActions"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.ConfigurableEnvironmentAction.read(from:), memberNodeInfo: "member", isFlattened: false) + value.environmentBlueprintId = try reader["environmentBlueprintId"].readIfPresent() + value.environmentProfileId = try reader["environmentProfileId"].readIfPresent() ?? "" + value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + value.id = try reader["id"].readIfPresent() + value.lastDeployment = try reader["lastDeployment"].readIfPresent(with: DataZoneClientTypes.Deployment.read(from:)) + value.name = try reader["name"].readIfPresent() + value.projectId = try reader["projectId"].readIfPresent() + value.provider = try reader["provider"].readIfPresent() + value.provisionedResources = try reader["provisionedResources"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.Resource.read(from:), memberNodeInfo: "member", isFlattened: false) + value.provisioningProperties = try reader["provisioningProperties"].readIfPresent(with: DataZoneClientTypes.ProvisioningProperties.read(from:)) + value.status = try reader["status"].readIfPresent() + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) + value.userParameters = try reader["userParameters"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.CustomParameter.read(from:), memberNodeInfo: "member", isFlattened: false) + return value } } -extension PutEnvironmentBlueprintConfigurationInput { +extension CreateEnvironmentActionOutput { - static func write(value: PutEnvironmentBlueprintConfigurationInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["enabledRegions"].writeList(value.enabledRegions, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["manageAccessRoleArn"].write(value.manageAccessRoleArn) - try writer["provisioningConfigurations"].writeList(value.provisioningConfigurations, memberWritingClosure: DataZoneClientTypes.ProvisioningConfiguration.write(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["provisioningRoleArn"].write(value.provisioningRoleArn) - try writer["regionalParameters"].writeMap(value.regionalParameters, valueWritingClosure: SmithyReadWrite.mapWritingClosure(valueWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateEnvironmentActionOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = CreateEnvironmentActionOutput() + value.description = try reader["description"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.environmentId = try reader["environmentId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.parameters = try reader["parameters"].readIfPresent(with: DataZoneClientTypes.ActionParameters.read(from:)) + return value } } -extension RejectPredictionsInput { +extension CreateEnvironmentProfileOutput { - static func write(value: RejectPredictionsInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["clientToken"].write(value.clientToken) - try writer["rejectChoices"].writeList(value.rejectChoices, memberWritingClosure: DataZoneClientTypes.RejectChoice.write(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["rejectRule"].write(value.rejectRule, with: DataZoneClientTypes.RejectRule.write(value:to:)) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateEnvironmentProfileOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = CreateEnvironmentProfileOutput() + value.awsAccountId = try reader["awsAccountId"].readIfPresent() + value.awsAccountRegion = try reader["awsAccountRegion"].readIfPresent() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) + value.createdBy = try reader["createdBy"].readIfPresent() + value.description = try reader["description"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.environmentBlueprintId = try reader["environmentBlueprintId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.projectId = try reader["projectId"].readIfPresent() + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) + value.userParameters = try reader["userParameters"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.CustomParameter.read(from:), memberNodeInfo: "member", isFlattened: false) + return value } } -extension RejectSubscriptionRequestInput { +extension CreateFormTypeOutput { - static func write(value: RejectSubscriptionRequestInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["decisionComment"].write(value.decisionComment) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateFormTypeOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = CreateFormTypeOutput() + value.description = try reader["description"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.originDomainId = try reader["originDomainId"].readIfPresent() + value.originProjectId = try reader["originProjectId"].readIfPresent() + value.owningProjectId = try reader["owningProjectId"].readIfPresent() + value.revision = try reader["revision"].readIfPresent() + return value } } -extension RevokeSubscriptionInput { +extension CreateGlossaryOutput { - static func write(value: RevokeSubscriptionInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["retainPermissions"].write(value.retainPermissions) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateGlossaryOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = CreateGlossaryOutput() + value.description = try reader["description"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.owningProjectId = try reader["owningProjectId"].readIfPresent() + value.status = try reader["status"].readIfPresent() + return value } } -extension SearchInput { +extension CreateGlossaryTermOutput { - static func write(value: SearchInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["additionalAttributes"].writeList(value.additionalAttributes, memberWritingClosure: SmithyReadWrite.WritingClosureBox().write(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["filters"].write(value.filters, with: DataZoneClientTypes.FilterClause.write(value:to:)) - try writer["maxResults"].write(value.maxResults) - try writer["nextToken"].write(value.nextToken) - try writer["owningProjectIdentifier"].write(value.owningProjectIdentifier) - try writer["searchIn"].writeList(value.searchIn, memberWritingClosure: DataZoneClientTypes.SearchInItem.write(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["searchScope"].write(value.searchScope) - try writer["searchText"].write(value.searchText) - try writer["sort"].write(value.sort, with: DataZoneClientTypes.SearchSort.write(value:to:)) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateGlossaryTermOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = CreateGlossaryTermOutput() + value.domainId = try reader["domainId"].readIfPresent() + value.glossaryId = try reader["glossaryId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.longDescription = try reader["longDescription"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.shortDescription = try reader["shortDescription"].readIfPresent() + value.status = try reader["status"].readIfPresent() + value.termRelations = try reader["termRelations"].readIfPresent(with: DataZoneClientTypes.TermRelations.read(from:)) + return value } } -extension SearchGroupProfilesInput { +extension CreateGroupProfileOutput { - static func write(value: SearchGroupProfilesInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["groupType"].write(value.groupType) - try writer["maxResults"].write(value.maxResults) - try writer["nextToken"].write(value.nextToken) - try writer["searchText"].write(value.searchText) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateGroupProfileOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = CreateGroupProfileOutput() + value.domainId = try reader["domainId"].readIfPresent() + value.groupName = try reader["groupName"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.status = try reader["status"].readIfPresent() + return value } } -extension SearchListingsInput { +extension CreateListingChangeSetOutput { - static func write(value: SearchListingsInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["additionalAttributes"].writeList(value.additionalAttributes, memberWritingClosure: SmithyReadWrite.WritingClosureBox().write(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["filters"].write(value.filters, with: DataZoneClientTypes.FilterClause.write(value:to:)) - try writer["maxResults"].write(value.maxResults) - try writer["nextToken"].write(value.nextToken) - try writer["searchIn"].writeList(value.searchIn, memberWritingClosure: DataZoneClientTypes.SearchInItem.write(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["searchText"].write(value.searchText) - try writer["sort"].write(value.sort, with: DataZoneClientTypes.SearchSort.write(value:to:)) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateListingChangeSetOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = CreateListingChangeSetOutput() + value.listingId = try reader["listingId"].readIfPresent() + value.listingRevision = try reader["listingRevision"].readIfPresent() + value.status = try reader["status"].readIfPresent() + return value } } -extension SearchTypesInput { +extension CreateProjectOutput { - static func write(value: SearchTypesInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["filters"].write(value.filters, with: DataZoneClientTypes.FilterClause.write(value:to:)) - try writer["managed"].write(value.managed) - try writer["maxResults"].write(value.maxResults) - try writer["nextToken"].write(value.nextToken) - try writer["searchIn"].writeList(value.searchIn, memberWritingClosure: DataZoneClientTypes.SearchInItem.write(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["searchScope"].write(value.searchScope) - try writer["searchText"].write(value.searchText) - try writer["sort"].write(value.sort, with: DataZoneClientTypes.SearchSort.write(value:to:)) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateProjectOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = CreateProjectOutput() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) + value.createdBy = try reader["createdBy"].readIfPresent() + value.description = try reader["description"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.domainUnitId = try reader["domainUnitId"].readIfPresent() + value.failureReasons = try reader["failureReasons"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.ProjectDeletionError.read(from:), memberNodeInfo: "member", isFlattened: false) + value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + value.id = try reader["id"].readIfPresent() + value.lastUpdatedAt = try reader["lastUpdatedAt"].readTimestampIfPresent(format: .dateTime) + value.name = try reader["name"].readIfPresent() + value.projectStatus = try reader["projectStatus"].readIfPresent() + return value } } -extension SearchUserProfilesInput { +extension CreateProjectMembershipOutput { - static func write(value: SearchUserProfilesInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["maxResults"].write(value.maxResults) - try writer["nextToken"].write(value.nextToken) - try writer["searchText"].write(value.searchText) - try writer["userType"].write(value.userType) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateProjectMembershipOutput { + return CreateProjectMembershipOutput() } } -extension StartDataSourceRunInput { +extension CreateSubscriptionGrantOutput { - static func write(value: StartDataSourceRunInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["clientToken"].write(value.clientToken) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateSubscriptionGrantOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = CreateSubscriptionGrantOutput() + value.assets = try reader["assets"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscribedAsset.read(from:), memberNodeInfo: "member", isFlattened: false) + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.grantedEntity = try reader["grantedEntity"].readIfPresent(with: DataZoneClientTypes.GrantedEntity.read(from:)) + value.id = try reader["id"].readIfPresent() + value.status = try reader["status"].readIfPresent() + value.subscriptionId = try reader["subscriptionId"].readIfPresent() + value.subscriptionTargetId = try reader["subscriptionTargetId"].readIfPresent() + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) + value.updatedBy = try reader["updatedBy"].readIfPresent() + return value } } -extension StartMetadataGenerationRunInput { +extension CreateSubscriptionRequestOutput { - static func write(value: StartMetadataGenerationRunInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["clientToken"].write(value.clientToken) - try writer["owningProjectIdentifier"].write(value.owningProjectIdentifier) - try writer["target"].write(value.target, with: DataZoneClientTypes.MetadataGenerationRunTarget.write(value:to:)) - try writer["type"].write(value.type) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateSubscriptionRequestOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = CreateSubscriptionRequestOutput() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() + value.decisionComment = try reader["decisionComment"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.requestReason = try reader["requestReason"].readIfPresent() + value.reviewerId = try reader["reviewerId"].readIfPresent() + value.status = try reader["status"].readIfPresent() + value.subscribedListings = try reader["subscribedListings"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscribedListing.read(from:), memberNodeInfo: "member", isFlattened: false) + value.subscribedPrincipals = try reader["subscribedPrincipals"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscribedPrincipal.read(from:), memberNodeInfo: "member", isFlattened: false) + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) + value.updatedBy = try reader["updatedBy"].readIfPresent() + return value } } -extension TagResourceInput { +extension CreateSubscriptionTargetOutput { - static func write(value: TagResourceInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["tags"].writeMap(value.tags, valueWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateSubscriptionTargetOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = CreateSubscriptionTargetOutput() + value.applicableAssetTypes = try reader["applicableAssetTypes"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + value.authorizedPrincipals = try reader["authorizedPrincipals"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.environmentId = try reader["environmentId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.manageAccessRole = try reader["manageAccessRole"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.projectId = try reader["projectId"].readIfPresent() + value.provider = try reader["provider"].readIfPresent() + value.subscriptionTargetConfig = try reader["subscriptionTargetConfig"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscriptionTargetForm.read(from:), memberNodeInfo: "member", isFlattened: false) + value.type = try reader["type"].readIfPresent() + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) + value.updatedBy = try reader["updatedBy"].readIfPresent() + return value } } -extension UpdateAssetFilterInput { +extension CreateUserProfileOutput { - static func write(value: UpdateAssetFilterInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["configuration"].write(value.configuration, with: DataZoneClientTypes.AssetFilterConfiguration.write(value:to:)) - try writer["description"].write(value.description) - try writer["name"].write(value.name) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateUserProfileOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = CreateUserProfileOutput() + value.details = try reader["details"].readIfPresent(with: DataZoneClientTypes.UserProfileDetails.read(from:)) + value.domainId = try reader["domainId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.status = try reader["status"].readIfPresent() + value.type = try reader["type"].readIfPresent() + return value } } -extension UpdateDataSourceInput { +extension DeleteAssetOutput { - static func write(value: UpdateDataSourceInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["assetFormsInput"].writeList(value.assetFormsInput, memberWritingClosure: DataZoneClientTypes.FormInput.write(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["configuration"].write(value.configuration, with: DataZoneClientTypes.DataSourceConfigurationInput.write(value:to:)) - try writer["description"].write(value.description) - try writer["enableSetting"].write(value.enableSetting) - try writer["name"].write(value.name) - try writer["publishOnImport"].write(value.publishOnImport) - try writer["recommendation"].write(value.recommendation, with: DataZoneClientTypes.RecommendationConfiguration.write(value:to:)) - try writer["retainPermissionsOnRevokeFailure"].write(value.retainPermissionsOnRevokeFailure) - try writer["schedule"].write(value.schedule, with: DataZoneClientTypes.ScheduleConfiguration.write(value:to:)) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteAssetOutput { + return DeleteAssetOutput() } } -extension UpdateDomainInput { +extension DeleteAssetFilterOutput { - static func write(value: UpdateDomainInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["description"].write(value.description) - try writer["domainExecutionRole"].write(value.domainExecutionRole) - try writer["name"].write(value.name) - try writer["singleSignOn"].write(value.singleSignOn, with: DataZoneClientTypes.SingleSignOn.write(value:to:)) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteAssetFilterOutput { + return DeleteAssetFilterOutput() } } -extension UpdateEnvironmentInput { - - static func write(value: UpdateEnvironmentInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["description"].write(value.description) - try writer["glossaryTerms"].writeList(value.glossaryTerms, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["name"].write(value.name) +extension DeleteAssetTypeOutput { + + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteAssetTypeOutput { + return DeleteAssetTypeOutput() } } -extension UpdateEnvironmentActionInput { +extension DeleteDataProductOutput { - static func write(value: UpdateEnvironmentActionInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["description"].write(value.description) - try writer["name"].write(value.name) - try writer["parameters"].write(value.parameters, with: DataZoneClientTypes.ActionParameters.write(value:to:)) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteDataProductOutput { + return DeleteDataProductOutput() } } -extension UpdateEnvironmentProfileInput { +extension DeleteDataSourceOutput { - static func write(value: UpdateEnvironmentProfileInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["awsAccountId"].write(value.awsAccountId) - try writer["awsAccountRegion"].write(value.awsAccountRegion) - try writer["description"].write(value.description) - try writer["name"].write(value.name) - try writer["userParameters"].writeList(value.userParameters, memberWritingClosure: DataZoneClientTypes.EnvironmentParameter.write(value:to:), memberNodeInfo: "member", isFlattened: false) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteDataSourceOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = DeleteDataSourceOutput() + value.assetFormsOutput = try reader["assetFormsOutput"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.FormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) + value.configuration = try reader["configuration"].readIfPresent(with: DataZoneClientTypes.DataSourceConfigurationOutput.read(from:)) + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) + value.description = try reader["description"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.enableSetting = try reader["enableSetting"].readIfPresent() + value.environmentId = try reader["environmentId"].readIfPresent() + value.errorMessage = try reader["errorMessage"].readIfPresent(with: DataZoneClientTypes.DataSourceErrorMessage.read(from:)) + value.id = try reader["id"].readIfPresent() + value.lastRunAt = try reader["lastRunAt"].readTimestampIfPresent(format: .dateTime) + value.lastRunErrorMessage = try reader["lastRunErrorMessage"].readIfPresent(with: DataZoneClientTypes.DataSourceErrorMessage.read(from:)) + value.lastRunStatus = try reader["lastRunStatus"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.projectId = try reader["projectId"].readIfPresent() + value.publishOnImport = try reader["publishOnImport"].readIfPresent() + value.retainPermissionsOnRevokeFailure = try reader["retainPermissionsOnRevokeFailure"].readIfPresent() + value.schedule = try reader["schedule"].readIfPresent(with: DataZoneClientTypes.ScheduleConfiguration.read(from:)) + value.selfGrantStatus = try reader["selfGrantStatus"].readIfPresent(with: DataZoneClientTypes.SelfGrantStatusOutput.read(from:)) + value.status = try reader["status"].readIfPresent() + value.type = try reader["type"].readIfPresent() + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) + return value } } -extension UpdateGlossaryInput { +extension DeleteDomainOutput { - static func write(value: UpdateGlossaryInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["clientToken"].write(value.clientToken) - try writer["description"].write(value.description) - try writer["name"].write(value.name) - try writer["status"].write(value.status) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteDomainOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = DeleteDomainOutput() + value.status = try reader["status"].readIfPresent() + return value } } -extension UpdateGlossaryTermInput { +extension DeleteDomainUnitOutput { - static func write(value: UpdateGlossaryTermInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["glossaryIdentifier"].write(value.glossaryIdentifier) - try writer["longDescription"].write(value.longDescription) - try writer["name"].write(value.name) - try writer["shortDescription"].write(value.shortDescription) - try writer["status"].write(value.status) - try writer["termRelations"].write(value.termRelations, with: DataZoneClientTypes.TermRelations.write(value:to:)) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteDomainUnitOutput { + return DeleteDomainUnitOutput() } } -extension UpdateGroupProfileInput { +extension DeleteEnvironmentOutput { - static func write(value: UpdateGroupProfileInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["status"].write(value.status) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteEnvironmentOutput { + return DeleteEnvironmentOutput() } } -extension UpdateProjectInput { +extension DeleteEnvironmentActionOutput { - static func write(value: UpdateProjectInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["description"].write(value.description) - try writer["glossaryTerms"].writeList(value.glossaryTerms, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["name"].write(value.name) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteEnvironmentActionOutput { + return DeleteEnvironmentActionOutput() } } -extension UpdateSubscriptionGrantStatusInput { +extension DeleteEnvironmentBlueprintConfigurationOutput { - static func write(value: UpdateSubscriptionGrantStatusInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["failureCause"].write(value.failureCause, with: DataZoneClientTypes.FailureCause.write(value:to:)) - try writer["status"].write(value.status) - try writer["targetName"].write(value.targetName) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteEnvironmentBlueprintConfigurationOutput { + return DeleteEnvironmentBlueprintConfigurationOutput() } } -extension UpdateSubscriptionRequestInput { +extension DeleteEnvironmentProfileOutput { - static func write(value: UpdateSubscriptionRequestInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["requestReason"].write(value.requestReason) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteEnvironmentProfileOutput { + return DeleteEnvironmentProfileOutput() } } -extension UpdateSubscriptionTargetInput { +extension DeleteFormTypeOutput { - static func write(value: UpdateSubscriptionTargetInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["applicableAssetTypes"].writeList(value.applicableAssetTypes, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["authorizedPrincipals"].writeList(value.authorizedPrincipals, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["manageAccessRole"].write(value.manageAccessRole) - try writer["name"].write(value.name) - try writer["provider"].write(value.provider) - try writer["subscriptionTargetConfig"].writeList(value.subscriptionTargetConfig, memberWritingClosure: DataZoneClientTypes.SubscriptionTargetForm.write(value:to:), memberNodeInfo: "member", isFlattened: false) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteFormTypeOutput { + return DeleteFormTypeOutput() } } -extension UpdateUserProfileInput { +extension DeleteGlossaryOutput { - static func write(value: UpdateUserProfileInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["status"].write(value.status) - try writer["type"].write(value.type) + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteGlossaryOutput { + return DeleteGlossaryOutput() } } -extension AcceptPredictionsOutput { +extension DeleteGlossaryTermOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> AcceptPredictionsOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = AcceptPredictionsOutput() - value.assetId = try reader["assetId"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.revision = try reader["revision"].readIfPresent() - return value + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteGlossaryTermOutput { + return DeleteGlossaryTermOutput() } } -extension AcceptSubscriptionRequestOutput { +extension DeleteListingOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> AcceptSubscriptionRequestOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = AcceptSubscriptionRequestOutput() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.createdBy = try reader["createdBy"].readIfPresent() - value.decisionComment = try reader["decisionComment"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.requestReason = try reader["requestReason"].readIfPresent() - value.reviewerId = try reader["reviewerId"].readIfPresent() - value.status = try reader["status"].readIfPresent() - value.subscribedListings = try reader["subscribedListings"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscribedListing.read(from:), memberNodeInfo: "member", isFlattened: false) - value.subscribedPrincipals = try reader["subscribedPrincipals"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscribedPrincipal.read(from:), memberNodeInfo: "member", isFlattened: false) - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) - value.updatedBy = try reader["updatedBy"].readIfPresent() - return value + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteListingOutput { + return DeleteListingOutput() } } -extension AssociateEnvironmentRoleOutput { +extension DeleteProjectOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> AssociateEnvironmentRoleOutput { - return AssociateEnvironmentRoleOutput() + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteProjectOutput { + return DeleteProjectOutput() } } -extension CancelMetadataGenerationRunOutput { +extension DeleteProjectMembershipOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CancelMetadataGenerationRunOutput { - return CancelMetadataGenerationRunOutput() + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteProjectMembershipOutput { + return DeleteProjectMembershipOutput() } } -extension CancelSubscriptionOutput { +extension DeleteSubscriptionGrantOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CancelSubscriptionOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteSubscriptionGrantOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = CancelSubscriptionOutput() + var value = DeleteSubscriptionGrantOutput() + value.assets = try reader["assets"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscribedAsset.read(from:), memberNodeInfo: "member", isFlattened: false) value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) value.createdBy = try reader["createdBy"].readIfPresent() value.domainId = try reader["domainId"].readIfPresent() + value.grantedEntity = try reader["grantedEntity"].readIfPresent(with: DataZoneClientTypes.GrantedEntity.read(from:)) value.id = try reader["id"].readIfPresent() - value.retainPermissions = try reader["retainPermissions"].readIfPresent() value.status = try reader["status"].readIfPresent() - value.subscribedListing = try reader["subscribedListing"].readIfPresent(with: DataZoneClientTypes.SubscribedListing.read(from:)) - value.subscribedPrincipal = try reader["subscribedPrincipal"].readIfPresent(with: DataZoneClientTypes.SubscribedPrincipal.read(from:)) - value.subscriptionRequestId = try reader["subscriptionRequestId"].readIfPresent() + value.subscriptionId = try reader["subscriptionId"].readIfPresent() + value.subscriptionTargetId = try reader["subscriptionTargetId"].readIfPresent() value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) value.updatedBy = try reader["updatedBy"].readIfPresent() return value } } -extension CreateAssetOutput { +extension DeleteSubscriptionRequestOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateAssetOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = CreateAssetOutput() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.createdBy = try reader["createdBy"].readIfPresent() - value.description = try reader["description"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.externalIdentifier = try reader["externalIdentifier"].readIfPresent() - value.firstRevisionCreatedAt = try reader["firstRevisionCreatedAt"].readTimestampIfPresent(format: .epochSeconds) - value.firstRevisionCreatedBy = try reader["firstRevisionCreatedBy"].readIfPresent() - value.formsOutput = try reader["formsOutput"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.FormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) - value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.id = try reader["id"].readIfPresent() - value.latestTimeSeriesDataPointFormsOutput = try reader["latestTimeSeriesDataPointFormsOutput"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.TimeSeriesDataPointSummaryFormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) - value.listing = try reader["listing"].readIfPresent(with: DataZoneClientTypes.AssetListingDetails.read(from:)) - value.name = try reader["name"].readIfPresent() - value.owningProjectId = try reader["owningProjectId"].readIfPresent() - value.predictionConfiguration = try reader["predictionConfiguration"].readIfPresent(with: DataZoneClientTypes.PredictionConfiguration.read(from:)) - value.readOnlyFormsOutput = try reader["readOnlyFormsOutput"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.FormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) - value.revision = try reader["revision"].readIfPresent() - value.typeIdentifier = try reader["typeIdentifier"].readIfPresent() - value.typeRevision = try reader["typeRevision"].readIfPresent() - return value + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteSubscriptionRequestOutput { + return DeleteSubscriptionRequestOutput() } } -extension CreateAssetFilterOutput { +extension DeleteSubscriptionTargetOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateAssetFilterOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = CreateAssetFilterOutput() - value.assetId = try reader["assetId"].readIfPresent() - value.configuration = try reader["configuration"].readIfPresent(with: DataZoneClientTypes.AssetFilterConfiguration.read(from:)) - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.description = try reader["description"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.effectiveColumnNames = try reader["effectiveColumnNames"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.effectiveRowFilter = try reader["effectiveRowFilter"].readIfPresent() - value.errorMessage = try reader["errorMessage"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.status = try reader["status"].readIfPresent() - return value + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteSubscriptionTargetOutput { + return DeleteSubscriptionTargetOutput() } } -extension CreateAssetRevisionOutput { +extension DeleteTimeSeriesDataPointsOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateAssetRevisionOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteTimeSeriesDataPointsOutput { + return DeleteTimeSeriesDataPointsOutput() + } +} + +extension DisassociateEnvironmentRoleOutput { + + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DisassociateEnvironmentRoleOutput { + return DisassociateEnvironmentRoleOutput() + } +} + +extension GetAssetOutput { + + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetAssetOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = CreateAssetRevisionOutput() + var value = GetAssetOutput() value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) value.createdBy = try reader["createdBy"].readIfPresent() value.description = try reader["description"].readIfPresent() @@ -18701,7 +20934,6 @@ extension CreateAssetRevisionOutput { value.listing = try reader["listing"].readIfPresent(with: DataZoneClientTypes.AssetListingDetails.read(from:)) value.name = try reader["name"].readIfPresent() value.owningProjectId = try reader["owningProjectId"].readIfPresent() - value.predictionConfiguration = try reader["predictionConfiguration"].readIfPresent(with: DataZoneClientTypes.PredictionConfiguration.read(from:)) value.readOnlyFormsOutput = try reader["readOnlyFormsOutput"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.FormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) value.revision = try reader["revision"].readIfPresent() value.typeIdentifier = try reader["typeIdentifier"].readIfPresent() @@ -18710,61 +20942,58 @@ extension CreateAssetRevisionOutput { } } -extension CreateAssetTypeOutput { +extension GetAssetFilterOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateAssetTypeOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetAssetFilterOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = CreateAssetTypeOutput() + var value = GetAssetFilterOutput() + value.assetId = try reader["assetId"].readIfPresent() + value.configuration = try reader["configuration"].readIfPresent(with: DataZoneClientTypes.AssetFilterConfiguration.read(from:)) value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.createdBy = try reader["createdBy"].readIfPresent() value.description = try reader["description"].readIfPresent() value.domainId = try reader["domainId"].readIfPresent() - value.formsOutput = try reader["formsOutput"].readMapIfPresent(valueReadingClosure: DataZoneClientTypes.FormEntryOutput.read(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) + value.effectiveColumnNames = try reader["effectiveColumnNames"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + value.effectiveRowFilter = try reader["effectiveRowFilter"].readIfPresent() + value.errorMessage = try reader["errorMessage"].readIfPresent() + value.id = try reader["id"].readIfPresent() value.name = try reader["name"].readIfPresent() - value.originDomainId = try reader["originDomainId"].readIfPresent() - value.originProjectId = try reader["originProjectId"].readIfPresent() - value.owningProjectId = try reader["owningProjectId"].readIfPresent() - value.revision = try reader["revision"].readIfPresent() - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) - value.updatedBy = try reader["updatedBy"].readIfPresent() + value.status = try reader["status"].readIfPresent() return value } } -extension CreateDataProductOutput { +extension GetAssetTypeOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateDataProductOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetAssetTypeOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = CreateDataProductOutput() + var value = GetAssetTypeOutput() value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) value.createdBy = try reader["createdBy"].readIfPresent() value.description = try reader["description"].readIfPresent() value.domainId = try reader["domainId"].readIfPresent() - value.firstRevisionCreatedAt = try reader["firstRevisionCreatedAt"].readTimestampIfPresent(format: .epochSeconds) - value.firstRevisionCreatedBy = try reader["firstRevisionCreatedBy"].readIfPresent() - value.formsOutput = try reader["formsOutput"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.FormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) - value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.id = try reader["id"].readIfPresent() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DataProductItem.read(from:), memberNodeInfo: "member", isFlattened: false) + value.formsOutput = try reader["formsOutput"].readMapIfPresent(valueReadingClosure: DataZoneClientTypes.FormEntryOutput.read(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) value.name = try reader["name"].readIfPresent() + value.originDomainId = try reader["originDomainId"].readIfPresent() + value.originProjectId = try reader["originProjectId"].readIfPresent() value.owningProjectId = try reader["owningProjectId"].readIfPresent() value.revision = try reader["revision"].readIfPresent() - value.status = try reader["status"].readIfPresent() ?? .created + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) + value.updatedBy = try reader["updatedBy"].readIfPresent() return value } } -extension CreateDataProductRevisionOutput { +extension GetDataProductOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateDataProductRevisionOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetDataProductOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = CreateDataProductRevisionOutput() + var value = GetDataProductOutput() value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) value.createdBy = try reader["createdBy"].readIfPresent() value.description = try reader["description"].readIfPresent() @@ -18783,13 +21012,13 @@ extension CreateDataProductRevisionOutput { } } -extension CreateDataSourceOutput { +extension GetDataSourceOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateDataSourceOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetDataSourceOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = CreateDataSourceOutput() + var value = GetDataSourceOutput() value.assetFormsOutput = try reader["assetFormsOutput"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.FormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) value.configuration = try reader["configuration"].readIfPresent(with: DataZoneClientTypes.DataSourceConfigurationOutput.read(from:)) value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) @@ -18799,6 +21028,7 @@ extension CreateDataSourceOutput { value.environmentId = try reader["environmentId"].readIfPresent() value.errorMessage = try reader["errorMessage"].readIfPresent(with: DataZoneClientTypes.DataSourceErrorMessage.read(from:)) value.id = try reader["id"].readIfPresent() + value.lastRunAssetCount = try reader["lastRunAssetCount"].readIfPresent() value.lastRunAt = try reader["lastRunAt"].readTimestampIfPresent(format: .dateTime) value.lastRunErrorMessage = try reader["lastRunErrorMessage"].readIfPresent(with: DataZoneClientTypes.DataSourceErrorMessage.read(from:)) value.lastRunStatus = try reader["lastRunStatus"].readIfPresent() @@ -18807,6 +21037,7 @@ extension CreateDataSourceOutput { value.publishOnImport = try reader["publishOnImport"].readIfPresent() value.recommendation = try reader["recommendation"].readIfPresent(with: DataZoneClientTypes.RecommendationConfiguration.read(from:)) value.schedule = try reader["schedule"].readIfPresent(with: DataZoneClientTypes.ScheduleConfiguration.read(from:)) + value.selfGrantStatus = try reader["selfGrantStatus"].readIfPresent(with: DataZoneClientTypes.SelfGrantStatusOutput.read(from:)) value.status = try reader["status"].readIfPresent() value.type = try reader["type"].readIfPresent() value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) @@ -18814,20 +21045,47 @@ extension CreateDataSourceOutput { } } -extension CreateDomainOutput { +extension GetDataSourceRunOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateDomainOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetDataSourceRunOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = CreateDomainOutput() + var value = GetDataSourceRunOutput() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) + value.dataSourceConfigurationSnapshot = try reader["dataSourceConfigurationSnapshot"].readIfPresent() + value.dataSourceId = try reader["dataSourceId"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.errorMessage = try reader["errorMessage"].readIfPresent(with: DataZoneClientTypes.DataSourceErrorMessage.read(from:)) + value.id = try reader["id"].readIfPresent() + value.projectId = try reader["projectId"].readIfPresent() + value.runStatisticsForAssets = try reader["runStatisticsForAssets"].readIfPresent(with: DataZoneClientTypes.RunStatisticsForAssets.read(from:)) + value.startedAt = try reader["startedAt"].readTimestampIfPresent(format: .dateTime) + value.status = try reader["status"].readIfPresent() + value.stoppedAt = try reader["stoppedAt"].readTimestampIfPresent(format: .dateTime) + value.type = try reader["type"].readIfPresent() + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) + return value + } +} + +extension GetDomainOutput { + + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetDomainOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = GetDomainOutput() value.arn = try reader["arn"].readIfPresent() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) value.description = try reader["description"].readIfPresent() value.domainExecutionRole = try reader["domainExecutionRole"].readIfPresent() value.id = try reader["id"].readIfPresent() value.kmsKeyIdentifier = try reader["kmsKeyIdentifier"].readIfPresent() + value.lastUpdatedAt = try reader["lastUpdatedAt"].readTimestampIfPresent(format: .epochSeconds) value.name = try reader["name"].readIfPresent() value.portalUrl = try reader["portalUrl"].readIfPresent() + value.rootDomainUnitId = try reader["rootDomainUnitId"].readIfPresent() value.singleSignOn = try reader["singleSignOn"].readIfPresent(with: DataZoneClientTypes.SingleSignOn.read(from:)) value.status = try reader["status"].readIfPresent() value.tags = try reader["tags"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) @@ -18835,13 +21093,34 @@ extension CreateDomainOutput { } } -extension CreateEnvironmentOutput { +extension GetDomainUnitOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateEnvironmentOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetDomainUnitOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = CreateEnvironmentOutput() + var value = GetDomainUnitOutput() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() + value.description = try reader["description"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.lastUpdatedAt = try reader["lastUpdatedAt"].readTimestampIfPresent(format: .epochSeconds) + value.lastUpdatedBy = try reader["lastUpdatedBy"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.owners = try reader["owners"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DomainUnitOwnerProperties.read(from:), memberNodeInfo: "member", isFlattened: false) + value.parentDomainUnitId = try reader["parentDomainUnitId"].readIfPresent() + return value + } +} + +extension GetEnvironmentOutput { + + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetEnvironmentOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = GetEnvironmentOutput() value.awsAccountId = try reader["awsAccountId"].readIfPresent() value.awsAccountRegion = try reader["awsAccountRegion"].readIfPresent() value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) @@ -18867,13 +21146,13 @@ extension CreateEnvironmentOutput { } } -extension CreateEnvironmentActionOutput { +extension GetEnvironmentActionOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateEnvironmentActionOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetEnvironmentActionOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = CreateEnvironmentActionOutput() + var value = GetEnvironmentActionOutput() value.description = try reader["description"].readIfPresent() value.domainId = try reader["domainId"].readIfPresent() value.environmentId = try reader["environmentId"].readIfPresent() @@ -18884,13 +21163,69 @@ extension CreateEnvironmentActionOutput { } } -extension CreateEnvironmentProfileOutput { +extension GetEnvironmentBlueprintOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateEnvironmentProfileOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetEnvironmentBlueprintOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = CreateEnvironmentProfileOutput() + var value = GetEnvironmentBlueprintOutput() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) + value.deploymentProperties = try reader["deploymentProperties"].readIfPresent(with: DataZoneClientTypes.DeploymentProperties.read(from:)) + value.description = try reader["description"].readIfPresent() + value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + value.id = try reader["id"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.provider = try reader["provider"].readIfPresent() + value.provisioningProperties = try reader["provisioningProperties"].readIfPresent(with: DataZoneClientTypes.ProvisioningProperties.read(from:)) + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) + value.userParameters = try reader["userParameters"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.CustomParameter.read(from:), memberNodeInfo: "member", isFlattened: false) + return value + } +} + +extension GetEnvironmentBlueprintConfigurationOutput { + + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetEnvironmentBlueprintConfigurationOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = GetEnvironmentBlueprintConfigurationOutput() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) + value.domainId = try reader["domainId"].readIfPresent() + value.enabledRegions = try reader["enabledRegions"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + value.environmentBlueprintId = try reader["environmentBlueprintId"].readIfPresent() + value.manageAccessRoleArn = try reader["manageAccessRoleArn"].readIfPresent() + value.provisioningConfigurations = try reader["provisioningConfigurations"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.ProvisioningConfiguration.read(from:), memberNodeInfo: "member", isFlattened: false) + value.provisioningRoleArn = try reader["provisioningRoleArn"].readIfPresent() + value.regionalParameters = try reader["regionalParameters"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.mapReadingClosure(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) + return value + } +} + +extension GetEnvironmentCredentialsOutput { + + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetEnvironmentCredentialsOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = GetEnvironmentCredentialsOutput() + value.accessKeyId = try reader["accessKeyId"].readIfPresent() + value.expiration = try reader["expiration"].readTimestampIfPresent(format: .dateTime) + value.secretAccessKey = try reader["secretAccessKey"].readIfPresent() + value.sessionToken = try reader["sessionToken"].readIfPresent() + return value + } +} + +extension GetEnvironmentProfileOutput { + + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetEnvironmentProfileOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = GetEnvironmentProfileOutput() value.awsAccountId = try reader["awsAccountId"].readIfPresent() value.awsAccountRegion = try reader["awsAccountRegion"].readIfPresent() value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) @@ -18907,100 +21242,180 @@ extension CreateEnvironmentProfileOutput { } } -extension CreateFormTypeOutput { +extension GetFormTypeOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateFormTypeOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetFormTypeOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = CreateFormTypeOutput() + var value = GetFormTypeOutput() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() value.description = try reader["description"].readIfPresent() value.domainId = try reader["domainId"].readIfPresent() + value.imports = try reader["imports"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.Import.read(from:), memberNodeInfo: "member", isFlattened: false) + value.model = try reader["model"].readIfPresent(with: DataZoneClientTypes.Model.read(from:)) value.name = try reader["name"].readIfPresent() value.originDomainId = try reader["originDomainId"].readIfPresent() value.originProjectId = try reader["originProjectId"].readIfPresent() value.owningProjectId = try reader["owningProjectId"].readIfPresent() value.revision = try reader["revision"].readIfPresent() + value.status = try reader["status"].readIfPresent() return value } } -extension CreateGlossaryOutput { +extension GetGlossaryOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateGlossaryOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetGlossaryOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = CreateGlossaryOutput() + var value = GetGlossaryOutput() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() value.description = try reader["description"].readIfPresent() value.domainId = try reader["domainId"].readIfPresent() value.id = try reader["id"].readIfPresent() value.name = try reader["name"].readIfPresent() value.owningProjectId = try reader["owningProjectId"].readIfPresent() value.status = try reader["status"].readIfPresent() + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) + value.updatedBy = try reader["updatedBy"].readIfPresent() return value } } -extension CreateGlossaryTermOutput { +extension GetGlossaryTermOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateGlossaryTermOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetGlossaryTermOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = CreateGlossaryTermOutput() + var value = GetGlossaryTermOutput() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() value.domainId = try reader["domainId"].readIfPresent() value.glossaryId = try reader["glossaryId"].readIfPresent() value.id = try reader["id"].readIfPresent() value.longDescription = try reader["longDescription"].readIfPresent() value.name = try reader["name"].readIfPresent() - value.shortDescription = try reader["shortDescription"].readIfPresent() - value.status = try reader["status"].readIfPresent() - value.termRelations = try reader["termRelations"].readIfPresent(with: DataZoneClientTypes.TermRelations.read(from:)) + value.shortDescription = try reader["shortDescription"].readIfPresent() + value.status = try reader["status"].readIfPresent() + value.termRelations = try reader["termRelations"].readIfPresent(with: DataZoneClientTypes.TermRelations.read(from:)) + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) + value.updatedBy = try reader["updatedBy"].readIfPresent() + return value + } +} + +extension GetGroupProfileOutput { + + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetGroupProfileOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = GetGroupProfileOutput() + value.domainId = try reader["domainId"].readIfPresent() + value.groupName = try reader["groupName"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.status = try reader["status"].readIfPresent() + return value + } +} + +extension GetIamPortalLoginUrlOutput { + + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetIamPortalLoginUrlOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = GetIamPortalLoginUrlOutput() + value.authCodeUrl = try reader["authCodeUrl"].readIfPresent() + value.userProfileId = try reader["userProfileId"].readIfPresent() + return value + } +} + +extension GetLineageNodeOutput { + + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetLineageNodeOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = GetLineageNodeOutput() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() + value.description = try reader["description"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.downstreamNodes = try reader["downstreamNodes"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.LineageNodeReference.read(from:), memberNodeInfo: "member", isFlattened: false) + value.eventTimestamp = try reader["eventTimestamp"].readTimestampIfPresent(format: .epochSeconds) + value.formsOutput = try reader["formsOutput"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.FormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) + value.id = try reader["id"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.sourceIdentifier = try reader["sourceIdentifier"].readIfPresent() + value.typeName = try reader["typeName"].readIfPresent() + value.typeRevision = try reader["typeRevision"].readIfPresent() + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) + value.updatedBy = try reader["updatedBy"].readIfPresent() + value.upstreamNodes = try reader["upstreamNodes"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.LineageNodeReference.read(from:), memberNodeInfo: "member", isFlattened: false) return value } } -extension CreateGroupProfileOutput { +extension GetListingOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateGroupProfileOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetListingOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = CreateGroupProfileOutput() + var value = GetListingOutput() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() + value.description = try reader["description"].readIfPresent() value.domainId = try reader["domainId"].readIfPresent() - value.groupName = try reader["groupName"].readIfPresent() value.id = try reader["id"].readIfPresent() + value.item = try reader["item"].readIfPresent(with: DataZoneClientTypes.ListingItem.read(from:)) + value.listingRevision = try reader["listingRevision"].readIfPresent() + value.name = try reader["name"].readIfPresent() value.status = try reader["status"].readIfPresent() + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) + value.updatedBy = try reader["updatedBy"].readIfPresent() return value } } -extension CreateListingChangeSetOutput { +extension GetMetadataGenerationRunOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateListingChangeSetOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetMetadataGenerationRunOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = CreateListingChangeSetOutput() - value.listingId = try reader["listingId"].readIfPresent() - value.listingRevision = try reader["listingRevision"].readIfPresent() + var value = GetMetadataGenerationRunOutput() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.owningProjectId = try reader["owningProjectId"].readIfPresent() value.status = try reader["status"].readIfPresent() + value.target = try reader["target"].readIfPresent(with: DataZoneClientTypes.MetadataGenerationRunTarget.read(from:)) + value.type = try reader["type"].readIfPresent() return value } } -extension CreateProjectOutput { +extension GetProjectOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateProjectOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetProjectOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = CreateProjectOutput() + var value = GetProjectOutput() value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) value.createdBy = try reader["createdBy"].readIfPresent() value.description = try reader["description"].readIfPresent() value.domainId = try reader["domainId"].readIfPresent() + value.domainUnitId = try reader["domainUnitId"].readIfPresent() value.failureReasons = try reader["failureReasons"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.ProjectDeletionError.read(from:), memberNodeInfo: "member", isFlattened: false) value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) value.id = try reader["id"].readIfPresent() @@ -19011,20 +21426,35 @@ extension CreateProjectOutput { } } -extension CreateProjectMembershipOutput { +extension GetSubscriptionOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateProjectMembershipOutput { - return CreateProjectMembershipOutput() + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetSubscriptionOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = GetSubscriptionOutput() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.retainPermissions = try reader["retainPermissions"].readIfPresent() + value.status = try reader["status"].readIfPresent() + value.subscribedListing = try reader["subscribedListing"].readIfPresent(with: DataZoneClientTypes.SubscribedListing.read(from:)) + value.subscribedPrincipal = try reader["subscribedPrincipal"].readIfPresent(with: DataZoneClientTypes.SubscribedPrincipal.read(from:)) + value.subscriptionRequestId = try reader["subscriptionRequestId"].readIfPresent() + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) + value.updatedBy = try reader["updatedBy"].readIfPresent() + return value } } -extension CreateSubscriptionGrantOutput { +extension GetSubscriptionGrantOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateSubscriptionGrantOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetSubscriptionGrantOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = CreateSubscriptionGrantOutput() + var value = GetSubscriptionGrantOutput() value.assets = try reader["assets"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscribedAsset.read(from:), memberNodeInfo: "member", isFlattened: false) value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) value.createdBy = try reader["createdBy"].readIfPresent() @@ -19040,13 +21470,13 @@ extension CreateSubscriptionGrantOutput { } } -extension CreateSubscriptionRequestOutput { +extension GetSubscriptionRequestDetailsOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateSubscriptionRequestOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetSubscriptionRequestDetailsOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = CreateSubscriptionRequestOutput() + var value = GetSubscriptionRequestDetailsOutput() value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) value.createdBy = try reader["createdBy"].readIfPresent() value.decisionComment = try reader["decisionComment"].readIfPresent() @@ -19063,13 +21493,13 @@ extension CreateSubscriptionRequestOutput { } } -extension CreateSubscriptionTargetOutput { +extension GetSubscriptionTargetOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateSubscriptionTargetOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetSubscriptionTargetOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = CreateSubscriptionTargetOutput() + var value = GetSubscriptionTargetOutput() value.applicableAssetTypes = try reader["applicableAssetTypes"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) value.authorizedPrincipals = try reader["authorizedPrincipals"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) @@ -19089,1665 +21519,1614 @@ extension CreateSubscriptionTargetOutput { } } -extension CreateUserProfileOutput { +extension GetTimeSeriesDataPointOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateUserProfileOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetTimeSeriesDataPointOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = CreateUserProfileOutput() - value.details = try reader["details"].readIfPresent(with: DataZoneClientTypes.UserProfileDetails.read(from:)) + var value = GetTimeSeriesDataPointOutput() value.domainId = try reader["domainId"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.status = try reader["status"].readIfPresent() - value.type = try reader["type"].readIfPresent() + value.entityId = try reader["entityId"].readIfPresent() + value.entityType = try reader["entityType"].readIfPresent() + value.form = try reader["form"].readIfPresent(with: DataZoneClientTypes.TimeSeriesDataPointFormOutput.read(from:)) + value.formName = try reader["formName"].readIfPresent() return value } } -extension DeleteAssetOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteAssetOutput { - return DeleteAssetOutput() - } -} - -extension DeleteAssetFilterOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteAssetFilterOutput { - return DeleteAssetFilterOutput() - } -} - -extension DeleteAssetTypeOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteAssetTypeOutput { - return DeleteAssetTypeOutput() - } -} - -extension DeleteDataProductOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteDataProductOutput { - return DeleteDataProductOutput() - } -} - -extension DeleteDataSourceOutput { +extension GetUserProfileOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteDataSourceOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetUserProfileOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = DeleteDataSourceOutput() - value.assetFormsOutput = try reader["assetFormsOutput"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.FormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) - value.configuration = try reader["configuration"].readIfPresent(with: DataZoneClientTypes.DataSourceConfigurationOutput.read(from:)) - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) - value.description = try reader["description"].readIfPresent() + var value = GetUserProfileOutput() + value.details = try reader["details"].readIfPresent(with: DataZoneClientTypes.UserProfileDetails.read(from:)) value.domainId = try reader["domainId"].readIfPresent() - value.enableSetting = try reader["enableSetting"].readIfPresent() - value.environmentId = try reader["environmentId"].readIfPresent() - value.errorMessage = try reader["errorMessage"].readIfPresent(with: DataZoneClientTypes.DataSourceErrorMessage.read(from:)) value.id = try reader["id"].readIfPresent() - value.lastRunAt = try reader["lastRunAt"].readTimestampIfPresent(format: .dateTime) - value.lastRunErrorMessage = try reader["lastRunErrorMessage"].readIfPresent(with: DataZoneClientTypes.DataSourceErrorMessage.read(from:)) - value.lastRunStatus = try reader["lastRunStatus"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.projectId = try reader["projectId"].readIfPresent() - value.publishOnImport = try reader["publishOnImport"].readIfPresent() - value.retainPermissionsOnRevokeFailure = try reader["retainPermissionsOnRevokeFailure"].readIfPresent() - value.schedule = try reader["schedule"].readIfPresent(with: DataZoneClientTypes.ScheduleConfiguration.read(from:)) - value.selfGrantStatus = try reader["selfGrantStatus"].readIfPresent(with: DataZoneClientTypes.SelfGrantStatusOutput.read(from:)) value.status = try reader["status"].readIfPresent() value.type = try reader["type"].readIfPresent() - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) return value } } -extension DeleteDomainOutput { +extension ListAssetFiltersOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteDomainOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListAssetFiltersOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = DeleteDomainOutput() - value.status = try reader["status"].readIfPresent() + var value = ListAssetFiltersOutput() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.AssetFilterSummary.read(from:), memberNodeInfo: "member", isFlattened: false) + value.nextToken = try reader["nextToken"].readIfPresent() return value } } -extension DeleteEnvironmentOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteEnvironmentOutput { - return DeleteEnvironmentOutput() - } -} - -extension DeleteEnvironmentActionOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteEnvironmentActionOutput { - return DeleteEnvironmentActionOutput() - } -} - -extension DeleteEnvironmentBlueprintConfigurationOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteEnvironmentBlueprintConfigurationOutput { - return DeleteEnvironmentBlueprintConfigurationOutput() - } -} - -extension DeleteEnvironmentProfileOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteEnvironmentProfileOutput { - return DeleteEnvironmentProfileOutput() - } -} - -extension DeleteFormTypeOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteFormTypeOutput { - return DeleteFormTypeOutput() - } -} - -extension DeleteGlossaryOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteGlossaryOutput { - return DeleteGlossaryOutput() - } -} - -extension DeleteGlossaryTermOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteGlossaryTermOutput { - return DeleteGlossaryTermOutput() - } -} - -extension DeleteListingOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteListingOutput { - return DeleteListingOutput() - } -} - -extension DeleteProjectOutput { +extension ListAssetRevisionsOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteProjectOutput { - return DeleteProjectOutput() + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListAssetRevisionsOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = ListAssetRevisionsOutput() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.AssetRevision.read(from:), memberNodeInfo: "member", isFlattened: false) + value.nextToken = try reader["nextToken"].readIfPresent() + return value } } -extension DeleteProjectMembershipOutput { +extension ListDataProductRevisionsOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteProjectMembershipOutput { - return DeleteProjectMembershipOutput() + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListDataProductRevisionsOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = ListDataProductRevisionsOutput() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DataProductRevision.read(from:), memberNodeInfo: "member", isFlattened: false) + value.nextToken = try reader["nextToken"].readIfPresent() + return value } } -extension DeleteSubscriptionGrantOutput { +extension ListDataSourceRunActivitiesOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteSubscriptionGrantOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListDataSourceRunActivitiesOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = DeleteSubscriptionGrantOutput() - value.assets = try reader["assets"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscribedAsset.read(from:), memberNodeInfo: "member", isFlattened: false) - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.createdBy = try reader["createdBy"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.grantedEntity = try reader["grantedEntity"].readIfPresent(with: DataZoneClientTypes.GrantedEntity.read(from:)) - value.id = try reader["id"].readIfPresent() - value.status = try reader["status"].readIfPresent() - value.subscriptionId = try reader["subscriptionId"].readIfPresent() - value.subscriptionTargetId = try reader["subscriptionTargetId"].readIfPresent() - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) - value.updatedBy = try reader["updatedBy"].readIfPresent() + var value = ListDataSourceRunActivitiesOutput() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DataSourceRunActivity.read(from:), memberNodeInfo: "member", isFlattened: false) + value.nextToken = try reader["nextToken"].readIfPresent() return value } } -extension DeleteSubscriptionRequestOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteSubscriptionRequestOutput { - return DeleteSubscriptionRequestOutput() - } -} - -extension DeleteSubscriptionTargetOutput { +extension ListDataSourceRunsOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteSubscriptionTargetOutput { - return DeleteSubscriptionTargetOutput() + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListDataSourceRunsOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = ListDataSourceRunsOutput() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DataSourceRunSummary.read(from:), memberNodeInfo: "member", isFlattened: false) + value.nextToken = try reader["nextToken"].readIfPresent() + return value } } -extension DeleteTimeSeriesDataPointsOutput { +extension ListDataSourcesOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteTimeSeriesDataPointsOutput { - return DeleteTimeSeriesDataPointsOutput() + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListDataSourcesOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = ListDataSourcesOutput() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DataSourceSummary.read(from:), memberNodeInfo: "member", isFlattened: false) + value.nextToken = try reader["nextToken"].readIfPresent() + return value } } -extension DisassociateEnvironmentRoleOutput { +extension ListDomainsOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DisassociateEnvironmentRoleOutput { - return DisassociateEnvironmentRoleOutput() + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListDomainsOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let reader = responseReader + var value = ListDomainsOutput() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DomainSummary.read(from:), memberNodeInfo: "member", isFlattened: false) + value.nextToken = try reader["nextToken"].readIfPresent() + return value } } -extension GetAssetOutput { +extension ListDomainUnitsForParentOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetAssetOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListDomainUnitsForParentOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetAssetOutput() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.createdBy = try reader["createdBy"].readIfPresent() - value.description = try reader["description"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.externalIdentifier = try reader["externalIdentifier"].readIfPresent() - value.firstRevisionCreatedAt = try reader["firstRevisionCreatedAt"].readTimestampIfPresent(format: .epochSeconds) - value.firstRevisionCreatedBy = try reader["firstRevisionCreatedBy"].readIfPresent() - value.formsOutput = try reader["formsOutput"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.FormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) - value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.id = try reader["id"].readIfPresent() - value.latestTimeSeriesDataPointFormsOutput = try reader["latestTimeSeriesDataPointFormsOutput"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.TimeSeriesDataPointSummaryFormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) - value.listing = try reader["listing"].readIfPresent(with: DataZoneClientTypes.AssetListingDetails.read(from:)) - value.name = try reader["name"].readIfPresent() - value.owningProjectId = try reader["owningProjectId"].readIfPresent() - value.readOnlyFormsOutput = try reader["readOnlyFormsOutput"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.FormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) - value.revision = try reader["revision"].readIfPresent() - value.typeIdentifier = try reader["typeIdentifier"].readIfPresent() - value.typeRevision = try reader["typeRevision"].readIfPresent() + var value = ListDomainUnitsForParentOutput() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DomainUnitSummary.read(from:), memberNodeInfo: "member", isFlattened: false) + value.nextToken = try reader["nextToken"].readIfPresent() return value } } -extension GetAssetFilterOutput { +extension ListEntityOwnersOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetAssetFilterOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListEntityOwnersOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetAssetFilterOutput() - value.assetId = try reader["assetId"].readIfPresent() - value.configuration = try reader["configuration"].readIfPresent(with: DataZoneClientTypes.AssetFilterConfiguration.read(from:)) - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.description = try reader["description"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.effectiveColumnNames = try reader["effectiveColumnNames"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.effectiveRowFilter = try reader["effectiveRowFilter"].readIfPresent() - value.errorMessage = try reader["errorMessage"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.status = try reader["status"].readIfPresent() + var value = ListEntityOwnersOutput() + value.nextToken = try reader["nextToken"].readIfPresent() + value.owners = try reader["owners"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.OwnerPropertiesOutput.read(from:), memberNodeInfo: "member", isFlattened: false) return value } } -extension GetAssetTypeOutput { +extension ListEnvironmentActionsOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetAssetTypeOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListEnvironmentActionsOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetAssetTypeOutput() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.createdBy = try reader["createdBy"].readIfPresent() - value.description = try reader["description"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.formsOutput = try reader["formsOutput"].readMapIfPresent(valueReadingClosure: DataZoneClientTypes.FormEntryOutput.read(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) - value.name = try reader["name"].readIfPresent() - value.originDomainId = try reader["originDomainId"].readIfPresent() - value.originProjectId = try reader["originProjectId"].readIfPresent() - value.owningProjectId = try reader["owningProjectId"].readIfPresent() - value.revision = try reader["revision"].readIfPresent() - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) - value.updatedBy = try reader["updatedBy"].readIfPresent() + var value = ListEnvironmentActionsOutput() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.EnvironmentActionSummary.read(from:), memberNodeInfo: "member", isFlattened: false) + value.nextToken = try reader["nextToken"].readIfPresent() return value } } -extension GetDataProductOutput { +extension ListEnvironmentBlueprintConfigurationsOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetDataProductOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListEnvironmentBlueprintConfigurationsOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetDataProductOutput() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.createdBy = try reader["createdBy"].readIfPresent() - value.description = try reader["description"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.firstRevisionCreatedAt = try reader["firstRevisionCreatedAt"].readTimestampIfPresent(format: .epochSeconds) - value.firstRevisionCreatedBy = try reader["firstRevisionCreatedBy"].readIfPresent() - value.formsOutput = try reader["formsOutput"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.FormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) - value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.id = try reader["id"].readIfPresent() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DataProductItem.read(from:), memberNodeInfo: "member", isFlattened: false) - value.name = try reader["name"].readIfPresent() - value.owningProjectId = try reader["owningProjectId"].readIfPresent() - value.revision = try reader["revision"].readIfPresent() - value.status = try reader["status"].readIfPresent() ?? .created + var value = ListEnvironmentBlueprintConfigurationsOutput() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.EnvironmentBlueprintConfigurationItem.read(from:), memberNodeInfo: "member", isFlattened: false) + value.nextToken = try reader["nextToken"].readIfPresent() return value } } -extension GetDataSourceOutput { +extension ListEnvironmentBlueprintsOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetDataSourceOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListEnvironmentBlueprintsOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetDataSourceOutput() - value.assetFormsOutput = try reader["assetFormsOutput"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.FormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) - value.configuration = try reader["configuration"].readIfPresent(with: DataZoneClientTypes.DataSourceConfigurationOutput.read(from:)) - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) - value.description = try reader["description"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.enableSetting = try reader["enableSetting"].readIfPresent() - value.environmentId = try reader["environmentId"].readIfPresent() - value.errorMessage = try reader["errorMessage"].readIfPresent(with: DataZoneClientTypes.DataSourceErrorMessage.read(from:)) - value.id = try reader["id"].readIfPresent() - value.lastRunAssetCount = try reader["lastRunAssetCount"].readIfPresent() - value.lastRunAt = try reader["lastRunAt"].readTimestampIfPresent(format: .dateTime) - value.lastRunErrorMessage = try reader["lastRunErrorMessage"].readIfPresent(with: DataZoneClientTypes.DataSourceErrorMessage.read(from:)) - value.lastRunStatus = try reader["lastRunStatus"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.projectId = try reader["projectId"].readIfPresent() - value.publishOnImport = try reader["publishOnImport"].readIfPresent() - value.recommendation = try reader["recommendation"].readIfPresent(with: DataZoneClientTypes.RecommendationConfiguration.read(from:)) - value.schedule = try reader["schedule"].readIfPresent(with: DataZoneClientTypes.ScheduleConfiguration.read(from:)) - value.selfGrantStatus = try reader["selfGrantStatus"].readIfPresent(with: DataZoneClientTypes.SelfGrantStatusOutput.read(from:)) - value.status = try reader["status"].readIfPresent() - value.type = try reader["type"].readIfPresent() - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) + var value = ListEnvironmentBlueprintsOutput() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.EnvironmentBlueprintSummary.read(from:), memberNodeInfo: "member", isFlattened: false) + value.nextToken = try reader["nextToken"].readIfPresent() return value } } -extension GetDataSourceRunOutput { +extension ListEnvironmentProfilesOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetDataSourceRunOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListEnvironmentProfilesOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetDataSourceRunOutput() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) - value.dataSourceConfigurationSnapshot = try reader["dataSourceConfigurationSnapshot"].readIfPresent() - value.dataSourceId = try reader["dataSourceId"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.errorMessage = try reader["errorMessage"].readIfPresent(with: DataZoneClientTypes.DataSourceErrorMessage.read(from:)) - value.id = try reader["id"].readIfPresent() - value.projectId = try reader["projectId"].readIfPresent() - value.runStatisticsForAssets = try reader["runStatisticsForAssets"].readIfPresent(with: DataZoneClientTypes.RunStatisticsForAssets.read(from:)) - value.startedAt = try reader["startedAt"].readTimestampIfPresent(format: .dateTime) - value.status = try reader["status"].readIfPresent() - value.stoppedAt = try reader["stoppedAt"].readTimestampIfPresent(format: .dateTime) - value.type = try reader["type"].readIfPresent() - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) + var value = ListEnvironmentProfilesOutput() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.EnvironmentProfileSummary.read(from:), memberNodeInfo: "member", isFlattened: false) + value.nextToken = try reader["nextToken"].readIfPresent() return value } } -extension GetDomainOutput { +extension ListEnvironmentsOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetDomainOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListEnvironmentsOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetDomainOutput() - value.arn = try reader["arn"].readIfPresent() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.description = try reader["description"].readIfPresent() - value.domainExecutionRole = try reader["domainExecutionRole"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.kmsKeyIdentifier = try reader["kmsKeyIdentifier"].readIfPresent() - value.lastUpdatedAt = try reader["lastUpdatedAt"].readTimestampIfPresent(format: .epochSeconds) - value.name = try reader["name"].readIfPresent() - value.portalUrl = try reader["portalUrl"].readIfPresent() - value.singleSignOn = try reader["singleSignOn"].readIfPresent(with: DataZoneClientTypes.SingleSignOn.read(from:)) - value.status = try reader["status"].readIfPresent() - value.tags = try reader["tags"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) + var value = ListEnvironmentsOutput() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.EnvironmentSummary.read(from:), memberNodeInfo: "member", isFlattened: false) + value.nextToken = try reader["nextToken"].readIfPresent() return value } } -extension GetEnvironmentOutput { +extension ListLineageNodeHistoryOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetEnvironmentOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListLineageNodeHistoryOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetEnvironmentOutput() - value.awsAccountId = try reader["awsAccountId"].readIfPresent() - value.awsAccountRegion = try reader["awsAccountRegion"].readIfPresent() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) - value.createdBy = try reader["createdBy"].readIfPresent() - value.deploymentProperties = try reader["deploymentProperties"].readIfPresent(with: DataZoneClientTypes.DeploymentProperties.read(from:)) - value.description = try reader["description"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.environmentActions = try reader["environmentActions"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.ConfigurableEnvironmentAction.read(from:), memberNodeInfo: "member", isFlattened: false) - value.environmentBlueprintId = try reader["environmentBlueprintId"].readIfPresent() - value.environmentProfileId = try reader["environmentProfileId"].readIfPresent() ?? "" - value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.id = try reader["id"].readIfPresent() - value.lastDeployment = try reader["lastDeployment"].readIfPresent(with: DataZoneClientTypes.Deployment.read(from:)) - value.name = try reader["name"].readIfPresent() - value.projectId = try reader["projectId"].readIfPresent() - value.provider = try reader["provider"].readIfPresent() - value.provisionedResources = try reader["provisionedResources"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.Resource.read(from:), memberNodeInfo: "member", isFlattened: false) - value.provisioningProperties = try reader["provisioningProperties"].readIfPresent(with: DataZoneClientTypes.ProvisioningProperties.read(from:)) - value.status = try reader["status"].readIfPresent() - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) - value.userParameters = try reader["userParameters"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.CustomParameter.read(from:), memberNodeInfo: "member", isFlattened: false) + var value = ListLineageNodeHistoryOutput() + value.nextToken = try reader["nextToken"].readIfPresent() + value.nodes = try reader["nodes"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.LineageNodeSummary.read(from:), memberNodeInfo: "member", isFlattened: false) return value } } -extension GetEnvironmentActionOutput { +extension ListMetadataGenerationRunsOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetEnvironmentActionOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListMetadataGenerationRunsOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetEnvironmentActionOutput() - value.description = try reader["description"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.environmentId = try reader["environmentId"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.parameters = try reader["parameters"].readIfPresent(with: DataZoneClientTypes.ActionParameters.read(from:)) + var value = ListMetadataGenerationRunsOutput() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.MetadataGenerationRunItem.read(from:), memberNodeInfo: "member", isFlattened: false) + value.nextToken = try reader["nextToken"].readIfPresent() return value } } -extension GetEnvironmentBlueprintOutput { +extension ListNotificationsOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetEnvironmentBlueprintOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListNotificationsOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetEnvironmentBlueprintOutput() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) - value.deploymentProperties = try reader["deploymentProperties"].readIfPresent(with: DataZoneClientTypes.DeploymentProperties.read(from:)) - value.description = try reader["description"].readIfPresent() - value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.id = try reader["id"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.provider = try reader["provider"].readIfPresent() - value.provisioningProperties = try reader["provisioningProperties"].readIfPresent(with: DataZoneClientTypes.ProvisioningProperties.read(from:)) - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) - value.userParameters = try reader["userParameters"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.CustomParameter.read(from:), memberNodeInfo: "member", isFlattened: false) + var value = ListNotificationsOutput() + value.nextToken = try reader["nextToken"].readIfPresent() + value.notifications = try reader["notifications"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.NotificationOutput.read(from:), memberNodeInfo: "member", isFlattened: false) return value } } -extension GetEnvironmentBlueprintConfigurationOutput { +extension ListPolicyGrantsOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetEnvironmentBlueprintConfigurationOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListPolicyGrantsOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetEnvironmentBlueprintConfigurationOutput() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) - value.domainId = try reader["domainId"].readIfPresent() - value.enabledRegions = try reader["enabledRegions"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.environmentBlueprintId = try reader["environmentBlueprintId"].readIfPresent() - value.manageAccessRoleArn = try reader["manageAccessRoleArn"].readIfPresent() - value.provisioningConfigurations = try reader["provisioningConfigurations"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.ProvisioningConfiguration.read(from:), memberNodeInfo: "member", isFlattened: false) - value.provisioningRoleArn = try reader["provisioningRoleArn"].readIfPresent() - value.regionalParameters = try reader["regionalParameters"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.mapReadingClosure(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) + var value = ListPolicyGrantsOutput() + value.grantList = try reader["grantList"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.PolicyGrantMember.read(from:), memberNodeInfo: "member", isFlattened: false) + value.nextToken = try reader["nextToken"].readIfPresent() return value } } -extension GetEnvironmentCredentialsOutput { +extension ListProjectMembershipsOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetEnvironmentCredentialsOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListProjectMembershipsOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetEnvironmentCredentialsOutput() - value.accessKeyId = try reader["accessKeyId"].readIfPresent() - value.expiration = try reader["expiration"].readTimestampIfPresent(format: .dateTime) - value.secretAccessKey = try reader["secretAccessKey"].readIfPresent() - value.sessionToken = try reader["sessionToken"].readIfPresent() + var value = ListProjectMembershipsOutput() + value.members = try reader["members"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.ProjectMember.read(from:), memberNodeInfo: "member", isFlattened: false) + value.nextToken = try reader["nextToken"].readIfPresent() return value } } -extension GetEnvironmentProfileOutput { +extension ListProjectsOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetEnvironmentProfileOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListProjectsOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetEnvironmentProfileOutput() - value.awsAccountId = try reader["awsAccountId"].readIfPresent() - value.awsAccountRegion = try reader["awsAccountRegion"].readIfPresent() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) - value.createdBy = try reader["createdBy"].readIfPresent() - value.description = try reader["description"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.environmentBlueprintId = try reader["environmentBlueprintId"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.projectId = try reader["projectId"].readIfPresent() - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) - value.userParameters = try reader["userParameters"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.CustomParameter.read(from:), memberNodeInfo: "member", isFlattened: false) + var value = ListProjectsOutput() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.ProjectSummary.read(from:), memberNodeInfo: "member", isFlattened: false) + value.nextToken = try reader["nextToken"].readIfPresent() return value } } -extension GetFormTypeOutput { +extension ListSubscriptionGrantsOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetFormTypeOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListSubscriptionGrantsOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetFormTypeOutput() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.createdBy = try reader["createdBy"].readIfPresent() - value.description = try reader["description"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.imports = try reader["imports"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.Import.read(from:), memberNodeInfo: "member", isFlattened: false) - value.model = try reader["model"].readIfPresent(with: DataZoneClientTypes.Model.read(from:)) - value.name = try reader["name"].readIfPresent() - value.originDomainId = try reader["originDomainId"].readIfPresent() - value.originProjectId = try reader["originProjectId"].readIfPresent() - value.owningProjectId = try reader["owningProjectId"].readIfPresent() - value.revision = try reader["revision"].readIfPresent() - value.status = try reader["status"].readIfPresent() + var value = ListSubscriptionGrantsOutput() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscriptionGrantSummary.read(from:), memberNodeInfo: "member", isFlattened: false) + value.nextToken = try reader["nextToken"].readIfPresent() return value } } -extension GetGlossaryOutput { +extension ListSubscriptionRequestsOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetGlossaryOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListSubscriptionRequestsOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetGlossaryOutput() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.createdBy = try reader["createdBy"].readIfPresent() - value.description = try reader["description"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.owningProjectId = try reader["owningProjectId"].readIfPresent() - value.status = try reader["status"].readIfPresent() - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) - value.updatedBy = try reader["updatedBy"].readIfPresent() + var value = ListSubscriptionRequestsOutput() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscriptionRequestSummary.read(from:), memberNodeInfo: "member", isFlattened: false) + value.nextToken = try reader["nextToken"].readIfPresent() return value } } -extension GetGlossaryTermOutput { +extension ListSubscriptionsOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetGlossaryTermOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListSubscriptionsOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetGlossaryTermOutput() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.createdBy = try reader["createdBy"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.glossaryId = try reader["glossaryId"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.longDescription = try reader["longDescription"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.shortDescription = try reader["shortDescription"].readIfPresent() - value.status = try reader["status"].readIfPresent() - value.termRelations = try reader["termRelations"].readIfPresent(with: DataZoneClientTypes.TermRelations.read(from:)) - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) - value.updatedBy = try reader["updatedBy"].readIfPresent() + var value = ListSubscriptionsOutput() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscriptionSummary.read(from:), memberNodeInfo: "member", isFlattened: false) + value.nextToken = try reader["nextToken"].readIfPresent() return value } } -extension GetGroupProfileOutput { +extension ListSubscriptionTargetsOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetGroupProfileOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListSubscriptionTargetsOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetGroupProfileOutput() - value.domainId = try reader["domainId"].readIfPresent() - value.groupName = try reader["groupName"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.status = try reader["status"].readIfPresent() + var value = ListSubscriptionTargetsOutput() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscriptionTargetSummary.read(from:), memberNodeInfo: "member", isFlattened: false) + value.nextToken = try reader["nextToken"].readIfPresent() return value } } -extension GetIamPortalLoginUrlOutput { +extension ListTagsForResourceOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetIamPortalLoginUrlOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListTagsForResourceOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetIamPortalLoginUrlOutput() - value.authCodeUrl = try reader["authCodeUrl"].readIfPresent() - value.userProfileId = try reader["userProfileId"].readIfPresent() + var value = ListTagsForResourceOutput() + value.tags = try reader["tags"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) return value } } -extension GetLineageNodeOutput { +extension ListTimeSeriesDataPointsOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetLineageNodeOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListTimeSeriesDataPointsOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetLineageNodeOutput() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.createdBy = try reader["createdBy"].readIfPresent() - value.description = try reader["description"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.downstreamNodes = try reader["downstreamNodes"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.LineageNodeReference.read(from:), memberNodeInfo: "member", isFlattened: false) - value.eventTimestamp = try reader["eventTimestamp"].readTimestampIfPresent(format: .epochSeconds) - value.formsOutput = try reader["formsOutput"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.FormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) - value.id = try reader["id"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.sourceIdentifier = try reader["sourceIdentifier"].readIfPresent() - value.typeName = try reader["typeName"].readIfPresent() - value.typeRevision = try reader["typeRevision"].readIfPresent() - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) - value.updatedBy = try reader["updatedBy"].readIfPresent() - value.upstreamNodes = try reader["upstreamNodes"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.LineageNodeReference.read(from:), memberNodeInfo: "member", isFlattened: false) + var value = ListTimeSeriesDataPointsOutput() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.TimeSeriesDataPointSummaryFormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) + value.nextToken = try reader["nextToken"].readIfPresent() return value } } -extension GetListingOutput { +extension PostLineageEventOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetListingOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = GetListingOutput() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.createdBy = try reader["createdBy"].readIfPresent() - value.description = try reader["description"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.item = try reader["item"].readIfPresent(with: DataZoneClientTypes.ListingItem.read(from:)) - value.listingRevision = try reader["listingRevision"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.status = try reader["status"].readIfPresent() - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) - value.updatedBy = try reader["updatedBy"].readIfPresent() - return value + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> PostLineageEventOutput { + return PostLineageEventOutput() } } -extension GetMetadataGenerationRunOutput { +extension PostTimeSeriesDataPointsOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetMetadataGenerationRunOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> PostTimeSeriesDataPointsOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetMetadataGenerationRunOutput() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.createdBy = try reader["createdBy"].readIfPresent() + var value = PostTimeSeriesDataPointsOutput() value.domainId = try reader["domainId"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.owningProjectId = try reader["owningProjectId"].readIfPresent() - value.status = try reader["status"].readIfPresent() - value.target = try reader["target"].readIfPresent(with: DataZoneClientTypes.MetadataGenerationRunTarget.read(from:)) - value.type = try reader["type"].readIfPresent() + value.entityId = try reader["entityId"].readIfPresent() + value.entityType = try reader["entityType"].readIfPresent() + value.forms = try reader["forms"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.TimeSeriesDataPointFormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) return value } } -extension GetProjectOutput { +extension PutEnvironmentBlueprintConfigurationOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetProjectOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> PutEnvironmentBlueprintConfigurationOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetProjectOutput() + var value = PutEnvironmentBlueprintConfigurationOutput() value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) - value.createdBy = try reader["createdBy"].readIfPresent() - value.description = try reader["description"].readIfPresent() value.domainId = try reader["domainId"].readIfPresent() - value.failureReasons = try reader["failureReasons"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.ProjectDeletionError.read(from:), memberNodeInfo: "member", isFlattened: false) - value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.id = try reader["id"].readIfPresent() - value.lastUpdatedAt = try reader["lastUpdatedAt"].readTimestampIfPresent(format: .dateTime) - value.name = try reader["name"].readIfPresent() - value.projectStatus = try reader["projectStatus"].readIfPresent() + value.enabledRegions = try reader["enabledRegions"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + value.environmentBlueprintId = try reader["environmentBlueprintId"].readIfPresent() + value.manageAccessRoleArn = try reader["manageAccessRoleArn"].readIfPresent() + value.provisioningConfigurations = try reader["provisioningConfigurations"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.ProvisioningConfiguration.read(from:), memberNodeInfo: "member", isFlattened: false) + value.provisioningRoleArn = try reader["provisioningRoleArn"].readIfPresent() + value.regionalParameters = try reader["regionalParameters"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.mapReadingClosure(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) return value } } -extension GetSubscriptionOutput { +extension RejectPredictionsOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetSubscriptionOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> RejectPredictionsOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetSubscriptionOutput() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.createdBy = try reader["createdBy"].readIfPresent() + var value = RejectPredictionsOutput() + value.assetId = try reader["assetId"].readIfPresent() + value.assetRevision = try reader["assetRevision"].readIfPresent() value.domainId = try reader["domainId"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.retainPermissions = try reader["retainPermissions"].readIfPresent() - value.status = try reader["status"].readIfPresent() - value.subscribedListing = try reader["subscribedListing"].readIfPresent(with: DataZoneClientTypes.SubscribedListing.read(from:)) - value.subscribedPrincipal = try reader["subscribedPrincipal"].readIfPresent(with: DataZoneClientTypes.SubscribedPrincipal.read(from:)) - value.subscriptionRequestId = try reader["subscriptionRequestId"].readIfPresent() - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) - value.updatedBy = try reader["updatedBy"].readIfPresent() return value } } -extension GetSubscriptionGrantOutput { +extension RejectSubscriptionRequestOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetSubscriptionGrantOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> RejectSubscriptionRequestOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetSubscriptionGrantOutput() - value.assets = try reader["assets"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscribedAsset.read(from:), memberNodeInfo: "member", isFlattened: false) + var value = RejectSubscriptionRequestOutput() value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) value.createdBy = try reader["createdBy"].readIfPresent() + value.decisionComment = try reader["decisionComment"].readIfPresent() value.domainId = try reader["domainId"].readIfPresent() - value.grantedEntity = try reader["grantedEntity"].readIfPresent(with: DataZoneClientTypes.GrantedEntity.read(from:)) value.id = try reader["id"].readIfPresent() + value.requestReason = try reader["requestReason"].readIfPresent() + value.reviewerId = try reader["reviewerId"].readIfPresent() value.status = try reader["status"].readIfPresent() - value.subscriptionId = try reader["subscriptionId"].readIfPresent() - value.subscriptionTargetId = try reader["subscriptionTargetId"].readIfPresent() + value.subscribedListings = try reader["subscribedListings"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscribedListing.read(from:), memberNodeInfo: "member", isFlattened: false) + value.subscribedPrincipals = try reader["subscribedPrincipals"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscribedPrincipal.read(from:), memberNodeInfo: "member", isFlattened: false) value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) value.updatedBy = try reader["updatedBy"].readIfPresent() return value } } -extension GetSubscriptionRequestDetailsOutput { +extension RemoveEntityOwnerOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetSubscriptionRequestDetailsOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> RemoveEntityOwnerOutput { + return RemoveEntityOwnerOutput() + } +} + +extension RemovePolicyGrantOutput { + + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> RemovePolicyGrantOutput { + return RemovePolicyGrantOutput() + } +} + +extension RevokeSubscriptionOutput { + + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> RevokeSubscriptionOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetSubscriptionRequestDetailsOutput() + var value = RevokeSubscriptionOutput() value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) value.createdBy = try reader["createdBy"].readIfPresent() - value.decisionComment = try reader["decisionComment"].readIfPresent() value.domainId = try reader["domainId"].readIfPresent() value.id = try reader["id"].readIfPresent() - value.requestReason = try reader["requestReason"].readIfPresent() - value.reviewerId = try reader["reviewerId"].readIfPresent() + value.retainPermissions = try reader["retainPermissions"].readIfPresent() value.status = try reader["status"].readIfPresent() - value.subscribedListings = try reader["subscribedListings"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscribedListing.read(from:), memberNodeInfo: "member", isFlattened: false) - value.subscribedPrincipals = try reader["subscribedPrincipals"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscribedPrincipal.read(from:), memberNodeInfo: "member", isFlattened: false) + value.subscribedListing = try reader["subscribedListing"].readIfPresent(with: DataZoneClientTypes.SubscribedListing.read(from:)) + value.subscribedPrincipal = try reader["subscribedPrincipal"].readIfPresent(with: DataZoneClientTypes.SubscribedPrincipal.read(from:)) + value.subscriptionRequestId = try reader["subscriptionRequestId"].readIfPresent() value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) value.updatedBy = try reader["updatedBy"].readIfPresent() return value } } -extension GetSubscriptionTargetOutput { +extension SearchOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetSubscriptionTargetOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> SearchOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetSubscriptionTargetOutput() - value.applicableAssetTypes = try reader["applicableAssetTypes"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.authorizedPrincipals = try reader["authorizedPrincipals"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.createdBy = try reader["createdBy"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.environmentId = try reader["environmentId"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.manageAccessRole = try reader["manageAccessRole"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.projectId = try reader["projectId"].readIfPresent() - value.provider = try reader["provider"].readIfPresent() - value.subscriptionTargetConfig = try reader["subscriptionTargetConfig"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscriptionTargetForm.read(from:), memberNodeInfo: "member", isFlattened: false) - value.type = try reader["type"].readIfPresent() - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) - value.updatedBy = try reader["updatedBy"].readIfPresent() + var value = SearchOutput() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SearchInventoryResultItem.read(from:), memberNodeInfo: "member", isFlattened: false) + value.nextToken = try reader["nextToken"].readIfPresent() + value.totalMatchCount = try reader["totalMatchCount"].readIfPresent() return value } } -extension GetTimeSeriesDataPointOutput { +extension SearchGroupProfilesOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetTimeSeriesDataPointOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> SearchGroupProfilesOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetTimeSeriesDataPointOutput() - value.domainId = try reader["domainId"].readIfPresent() - value.entityId = try reader["entityId"].readIfPresent() - value.entityType = try reader["entityType"].readIfPresent() - value.form = try reader["form"].readIfPresent(with: DataZoneClientTypes.TimeSeriesDataPointFormOutput.read(from:)) - value.formName = try reader["formName"].readIfPresent() + var value = SearchGroupProfilesOutput() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.GroupProfileSummary.read(from:), memberNodeInfo: "member", isFlattened: false) + value.nextToken = try reader["nextToken"].readIfPresent() return value } } -extension GetUserProfileOutput { +extension SearchListingsOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetUserProfileOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> SearchListingsOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = GetUserProfileOutput() - value.details = try reader["details"].readIfPresent(with: DataZoneClientTypes.UserProfileDetails.read(from:)) - value.domainId = try reader["domainId"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.status = try reader["status"].readIfPresent() - value.type = try reader["type"].readIfPresent() + var value = SearchListingsOutput() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SearchResultItem.read(from:), memberNodeInfo: "member", isFlattened: false) + value.nextToken = try reader["nextToken"].readIfPresent() + value.totalMatchCount = try reader["totalMatchCount"].readIfPresent() return value } } -extension ListAssetFiltersOutput { +extension SearchTypesOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListAssetFiltersOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> SearchTypesOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = ListAssetFiltersOutput() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.AssetFilterSummary.read(from:), memberNodeInfo: "member", isFlattened: false) + var value = SearchTypesOutput() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SearchTypesResultItem.read(from:), memberNodeInfo: "member", isFlattened: false) value.nextToken = try reader["nextToken"].readIfPresent() + value.totalMatchCount = try reader["totalMatchCount"].readIfPresent() return value } } -extension ListAssetRevisionsOutput { +extension SearchUserProfilesOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListAssetRevisionsOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> SearchUserProfilesOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = ListAssetRevisionsOutput() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.AssetRevision.read(from:), memberNodeInfo: "member", isFlattened: false) + var value = SearchUserProfilesOutput() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.UserProfileSummary.read(from:), memberNodeInfo: "member", isFlattened: false) value.nextToken = try reader["nextToken"].readIfPresent() return value } } -extension ListDataProductRevisionsOutput { +extension StartDataSourceRunOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListDataProductRevisionsOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> StartDataSourceRunOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = ListDataProductRevisionsOutput() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DataProductRevision.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() + var value = StartDataSourceRunOutput() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) + value.dataSourceConfigurationSnapshot = try reader["dataSourceConfigurationSnapshot"].readIfPresent() + value.dataSourceId = try reader["dataSourceId"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.errorMessage = try reader["errorMessage"].readIfPresent(with: DataZoneClientTypes.DataSourceErrorMessage.read(from:)) + value.id = try reader["id"].readIfPresent() + value.projectId = try reader["projectId"].readIfPresent() + value.runStatisticsForAssets = try reader["runStatisticsForAssets"].readIfPresent(with: DataZoneClientTypes.RunStatisticsForAssets.read(from:)) + value.startedAt = try reader["startedAt"].readTimestampIfPresent(format: .dateTime) + value.status = try reader["status"].readIfPresent() + value.stoppedAt = try reader["stoppedAt"].readTimestampIfPresent(format: .dateTime) + value.type = try reader["type"].readIfPresent() + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) return value } } -extension ListDataSourceRunActivitiesOutput { +extension StartMetadataGenerationRunOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListDataSourceRunActivitiesOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> StartMetadataGenerationRunOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = ListDataSourceRunActivitiesOutput() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DataSourceRunActivity.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() + var value = StartMetadataGenerationRunOutput() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.owningProjectId = try reader["owningProjectId"].readIfPresent() + value.status = try reader["status"].readIfPresent() + value.type = try reader["type"].readIfPresent() return value } } -extension ListDataSourceRunsOutput { +extension TagResourceOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListDataSourceRunsOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> TagResourceOutput { + return TagResourceOutput() + } +} + +extension UntagResourceOutput { + + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UntagResourceOutput { + return UntagResourceOutput() + } +} + +extension UpdateAssetFilterOutput { + + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateAssetFilterOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = ListDataSourceRunsOutput() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DataSourceRunSummary.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() + var value = UpdateAssetFilterOutput() + value.assetId = try reader["assetId"].readIfPresent() + value.configuration = try reader["configuration"].readIfPresent(with: DataZoneClientTypes.AssetFilterConfiguration.read(from:)) + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.description = try reader["description"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.effectiveColumnNames = try reader["effectiveColumnNames"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + value.effectiveRowFilter = try reader["effectiveRowFilter"].readIfPresent() + value.errorMessage = try reader["errorMessage"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.status = try reader["status"].readIfPresent() return value } } -extension ListDataSourcesOutput { +extension UpdateDataSourceOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListDataSourcesOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateDataSourceOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = ListDataSourcesOutput() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DataSourceSummary.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() + var value = UpdateDataSourceOutput() + value.assetFormsOutput = try reader["assetFormsOutput"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.FormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) + value.configuration = try reader["configuration"].readIfPresent(with: DataZoneClientTypes.DataSourceConfigurationOutput.read(from:)) + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) + value.description = try reader["description"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.enableSetting = try reader["enableSetting"].readIfPresent() + value.environmentId = try reader["environmentId"].readIfPresent() + value.errorMessage = try reader["errorMessage"].readIfPresent(with: DataZoneClientTypes.DataSourceErrorMessage.read(from:)) + value.id = try reader["id"].readIfPresent() + value.lastRunAt = try reader["lastRunAt"].readTimestampIfPresent(format: .dateTime) + value.lastRunErrorMessage = try reader["lastRunErrorMessage"].readIfPresent(with: DataZoneClientTypes.DataSourceErrorMessage.read(from:)) + value.lastRunStatus = try reader["lastRunStatus"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.projectId = try reader["projectId"].readIfPresent() + value.publishOnImport = try reader["publishOnImport"].readIfPresent() + value.recommendation = try reader["recommendation"].readIfPresent(with: DataZoneClientTypes.RecommendationConfiguration.read(from:)) + value.retainPermissionsOnRevokeFailure = try reader["retainPermissionsOnRevokeFailure"].readIfPresent() + value.schedule = try reader["schedule"].readIfPresent(with: DataZoneClientTypes.ScheduleConfiguration.read(from:)) + value.selfGrantStatus = try reader["selfGrantStatus"].readIfPresent(with: DataZoneClientTypes.SelfGrantStatusOutput.read(from:)) + value.status = try reader["status"].readIfPresent() + value.type = try reader["type"].readIfPresent() + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) return value } } -extension ListDomainsOutput { +extension UpdateDomainOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListDomainsOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateDomainOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = ListDomainsOutput() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DomainSummary.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() + var value = UpdateDomainOutput() + value.description = try reader["description"].readIfPresent() + value.domainExecutionRole = try reader["domainExecutionRole"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.lastUpdatedAt = try reader["lastUpdatedAt"].readTimestampIfPresent(format: .epochSeconds) + value.name = try reader["name"].readIfPresent() + value.rootDomainUnitId = try reader["rootDomainUnitId"].readIfPresent() + value.singleSignOn = try reader["singleSignOn"].readIfPresent(with: DataZoneClientTypes.SingleSignOn.read(from:)) return value } } -extension ListEnvironmentActionsOutput { +extension UpdateDomainUnitOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListEnvironmentActionsOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateDomainUnitOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = ListEnvironmentActionsOutput() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.EnvironmentActionSummary.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() + var value = UpdateDomainUnitOutput() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() + value.description = try reader["description"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.lastUpdatedAt = try reader["lastUpdatedAt"].readTimestampIfPresent(format: .epochSeconds) + value.lastUpdatedBy = try reader["lastUpdatedBy"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.owners = try reader["owners"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DomainUnitOwnerProperties.read(from:), memberNodeInfo: "member", isFlattened: false) + value.parentDomainUnitId = try reader["parentDomainUnitId"].readIfPresent() return value } } -extension ListEnvironmentBlueprintConfigurationsOutput { +extension UpdateEnvironmentOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListEnvironmentBlueprintConfigurationsOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateEnvironmentOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = ListEnvironmentBlueprintConfigurationsOutput() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.EnvironmentBlueprintConfigurationItem.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() + var value = UpdateEnvironmentOutput() + value.awsAccountId = try reader["awsAccountId"].readIfPresent() + value.awsAccountRegion = try reader["awsAccountRegion"].readIfPresent() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) + value.createdBy = try reader["createdBy"].readIfPresent() + value.deploymentProperties = try reader["deploymentProperties"].readIfPresent(with: DataZoneClientTypes.DeploymentProperties.read(from:)) + value.description = try reader["description"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.environmentActions = try reader["environmentActions"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.ConfigurableEnvironmentAction.read(from:), memberNodeInfo: "member", isFlattened: false) + value.environmentBlueprintId = try reader["environmentBlueprintId"].readIfPresent() + value.environmentProfileId = try reader["environmentProfileId"].readIfPresent() ?? "" + value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + value.id = try reader["id"].readIfPresent() + value.lastDeployment = try reader["lastDeployment"].readIfPresent(with: DataZoneClientTypes.Deployment.read(from:)) + value.name = try reader["name"].readIfPresent() + value.projectId = try reader["projectId"].readIfPresent() + value.provider = try reader["provider"].readIfPresent() + value.provisionedResources = try reader["provisionedResources"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.Resource.read(from:), memberNodeInfo: "member", isFlattened: false) + value.provisioningProperties = try reader["provisioningProperties"].readIfPresent(with: DataZoneClientTypes.ProvisioningProperties.read(from:)) + value.status = try reader["status"].readIfPresent() + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) + value.userParameters = try reader["userParameters"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.CustomParameter.read(from:), memberNodeInfo: "member", isFlattened: false) return value } } -extension ListEnvironmentBlueprintsOutput { +extension UpdateEnvironmentActionOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListEnvironmentBlueprintsOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateEnvironmentActionOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = ListEnvironmentBlueprintsOutput() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.EnvironmentBlueprintSummary.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() + var value = UpdateEnvironmentActionOutput() + value.description = try reader["description"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.environmentId = try reader["environmentId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.parameters = try reader["parameters"].readIfPresent(with: DataZoneClientTypes.ActionParameters.read(from:)) return value } } -extension ListEnvironmentProfilesOutput { +extension UpdateEnvironmentProfileOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListEnvironmentProfilesOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateEnvironmentProfileOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = ListEnvironmentProfilesOutput() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.EnvironmentProfileSummary.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() + var value = UpdateEnvironmentProfileOutput() + value.awsAccountId = try reader["awsAccountId"].readIfPresent() + value.awsAccountRegion = try reader["awsAccountRegion"].readIfPresent() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) + value.createdBy = try reader["createdBy"].readIfPresent() + value.description = try reader["description"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.environmentBlueprintId = try reader["environmentBlueprintId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.projectId = try reader["projectId"].readIfPresent() + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) + value.userParameters = try reader["userParameters"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.CustomParameter.read(from:), memberNodeInfo: "member", isFlattened: false) return value } } -extension ListEnvironmentsOutput { +extension UpdateGlossaryOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListEnvironmentsOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateGlossaryOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = ListEnvironmentsOutput() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.EnvironmentSummary.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() + var value = UpdateGlossaryOutput() + value.description = try reader["description"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.owningProjectId = try reader["owningProjectId"].readIfPresent() + value.status = try reader["status"].readIfPresent() return value } } -extension ListLineageNodeHistoryOutput { +extension UpdateGlossaryTermOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListLineageNodeHistoryOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateGlossaryTermOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = ListLineageNodeHistoryOutput() - value.nextToken = try reader["nextToken"].readIfPresent() - value.nodes = try reader["nodes"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.LineageNodeSummary.read(from:), memberNodeInfo: "member", isFlattened: false) + var value = UpdateGlossaryTermOutput() + value.domainId = try reader["domainId"].readIfPresent() + value.glossaryId = try reader["glossaryId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.longDescription = try reader["longDescription"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.shortDescription = try reader["shortDescription"].readIfPresent() + value.status = try reader["status"].readIfPresent() + value.termRelations = try reader["termRelations"].readIfPresent(with: DataZoneClientTypes.TermRelations.read(from:)) return value } } -extension ListMetadataGenerationRunsOutput { +extension UpdateGroupProfileOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListMetadataGenerationRunsOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateGroupProfileOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = ListMetadataGenerationRunsOutput() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.MetadataGenerationRunItem.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() + var value = UpdateGroupProfileOutput() + value.domainId = try reader["domainId"].readIfPresent() + value.groupName = try reader["groupName"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.status = try reader["status"].readIfPresent() return value } } -extension ListNotificationsOutput { +extension UpdateProjectOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListNotificationsOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateProjectOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = ListNotificationsOutput() - value.nextToken = try reader["nextToken"].readIfPresent() - value.notifications = try reader["notifications"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.NotificationOutput.read(from:), memberNodeInfo: "member", isFlattened: false) + var value = UpdateProjectOutput() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) + value.createdBy = try reader["createdBy"].readIfPresent() + value.description = try reader["description"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.domainUnitId = try reader["domainUnitId"].readIfPresent() + value.failureReasons = try reader["failureReasons"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.ProjectDeletionError.read(from:), memberNodeInfo: "member", isFlattened: false) + value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + value.id = try reader["id"].readIfPresent() + value.lastUpdatedAt = try reader["lastUpdatedAt"].readTimestampIfPresent(format: .dateTime) + value.name = try reader["name"].readIfPresent() + value.projectStatus = try reader["projectStatus"].readIfPresent() return value } } -extension ListProjectMembershipsOutput { +extension UpdateSubscriptionGrantStatusOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListProjectMembershipsOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateSubscriptionGrantStatusOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = ListProjectMembershipsOutput() - value.members = try reader["members"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.ProjectMember.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() + var value = UpdateSubscriptionGrantStatusOutput() + value.assets = try reader["assets"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscribedAsset.read(from:), memberNodeInfo: "member", isFlattened: false) + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.grantedEntity = try reader["grantedEntity"].readIfPresent(with: DataZoneClientTypes.GrantedEntity.read(from:)) + value.id = try reader["id"].readIfPresent() + value.status = try reader["status"].readIfPresent() + value.subscriptionId = try reader["subscriptionId"].readIfPresent() + value.subscriptionTargetId = try reader["subscriptionTargetId"].readIfPresent() + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) + value.updatedBy = try reader["updatedBy"].readIfPresent() return value } } -extension ListProjectsOutput { +extension UpdateSubscriptionRequestOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListProjectsOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateSubscriptionRequestOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = ListProjectsOutput() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.ProjectSummary.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() + var value = UpdateSubscriptionRequestOutput() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() + value.decisionComment = try reader["decisionComment"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.requestReason = try reader["requestReason"].readIfPresent() + value.reviewerId = try reader["reviewerId"].readIfPresent() + value.status = try reader["status"].readIfPresent() + value.subscribedListings = try reader["subscribedListings"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscribedListing.read(from:), memberNodeInfo: "member", isFlattened: false) + value.subscribedPrincipals = try reader["subscribedPrincipals"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscribedPrincipal.read(from:), memberNodeInfo: "member", isFlattened: false) + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) + value.updatedBy = try reader["updatedBy"].readIfPresent() return value } } -extension ListSubscriptionGrantsOutput { +extension UpdateSubscriptionTargetOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListSubscriptionGrantsOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateSubscriptionTargetOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = ListSubscriptionGrantsOutput() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscriptionGrantSummary.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() + var value = UpdateSubscriptionTargetOutput() + value.applicableAssetTypes = try reader["applicableAssetTypes"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + value.authorizedPrincipals = try reader["authorizedPrincipals"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.environmentId = try reader["environmentId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.manageAccessRole = try reader["manageAccessRole"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.projectId = try reader["projectId"].readIfPresent() + value.provider = try reader["provider"].readIfPresent() + value.subscriptionTargetConfig = try reader["subscriptionTargetConfig"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscriptionTargetForm.read(from:), memberNodeInfo: "member", isFlattened: false) + value.type = try reader["type"].readIfPresent() + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) + value.updatedBy = try reader["updatedBy"].readIfPresent() return value } } -extension ListSubscriptionRequestsOutput { +extension UpdateUserProfileOutput { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListSubscriptionRequestsOutput { + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateUserProfileOutput { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) let reader = responseReader - var value = ListSubscriptionRequestsOutput() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscriptionRequestSummary.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() + var value = UpdateUserProfileOutput() + value.details = try reader["details"].readIfPresent(with: DataZoneClientTypes.UserProfileDetails.read(from:)) + value.domainId = try reader["domainId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.status = try reader["status"].readIfPresent() + value.type = try reader["type"].readIfPresent() return value } } -extension ListSubscriptionsOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListSubscriptionsOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = ListSubscriptionsOutput() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscriptionSummary.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() - return value +func httpServiceError(baseError: AWSClientRuntime.RestJSONError) throws -> Swift.Error? { + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "UnauthorizedException": return try UnauthorizedException.makeError(baseError: baseError) + default: return nil } } -extension ListSubscriptionTargetsOutput { +enum AcceptPredictionsOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListSubscriptionTargetsOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = ListSubscriptionTargetsOutput() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscriptionTargetSummary.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension ListTagsForResourceOutput { +enum AcceptSubscriptionRequestOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListTagsForResourceOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = ListTagsForResourceOutput() - value.tags = try reader["tags"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension ListTimeSeriesDataPointsOutput { +enum AddEntityOwnerOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListTimeSeriesDataPointsOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = ListTimeSeriesDataPointsOutput() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.TimeSeriesDataPointSummaryFormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension PostLineageEventOutput { +enum AddPolicyGrantOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> PostLineageEventOutput { - return PostLineageEventOutput() + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension PostTimeSeriesDataPointsOutput { +enum AssociateEnvironmentRoleOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> PostTimeSeriesDataPointsOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = PostTimeSeriesDataPointsOutput() - value.domainId = try reader["domainId"].readIfPresent() - value.entityId = try reader["entityId"].readIfPresent() - value.entityType = try reader["entityType"].readIfPresent() - value.forms = try reader["forms"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.TimeSeriesDataPointFormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension PutEnvironmentBlueprintConfigurationOutput { +enum CancelMetadataGenerationRunOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> PutEnvironmentBlueprintConfigurationOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = PutEnvironmentBlueprintConfigurationOutput() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) - value.domainId = try reader["domainId"].readIfPresent() - value.enabledRegions = try reader["enabledRegions"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.environmentBlueprintId = try reader["environmentBlueprintId"].readIfPresent() - value.manageAccessRoleArn = try reader["manageAccessRoleArn"].readIfPresent() - value.provisioningConfigurations = try reader["provisioningConfigurations"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.ProvisioningConfiguration.read(from:), memberNodeInfo: "member", isFlattened: false) - value.provisioningRoleArn = try reader["provisioningRoleArn"].readIfPresent() - value.regionalParameters = try reader["regionalParameters"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.mapReadingClosure(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension RejectPredictionsOutput { +enum CancelSubscriptionOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> RejectPredictionsOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = RejectPredictionsOutput() - value.assetId = try reader["assetId"].readIfPresent() - value.assetRevision = try reader["assetRevision"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension RejectSubscriptionRequestOutput { +enum CreateAssetOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> RejectSubscriptionRequestOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = RejectSubscriptionRequestOutput() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.createdBy = try reader["createdBy"].readIfPresent() - value.decisionComment = try reader["decisionComment"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.requestReason = try reader["requestReason"].readIfPresent() - value.reviewerId = try reader["reviewerId"].readIfPresent() - value.status = try reader["status"].readIfPresent() - value.subscribedListings = try reader["subscribedListings"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscribedListing.read(from:), memberNodeInfo: "member", isFlattened: false) - value.subscribedPrincipals = try reader["subscribedPrincipals"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscribedPrincipal.read(from:), memberNodeInfo: "member", isFlattened: false) - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) - value.updatedBy = try reader["updatedBy"].readIfPresent() - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension RevokeSubscriptionOutput { +enum CreateAssetFilterOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> RevokeSubscriptionOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = RevokeSubscriptionOutput() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.createdBy = try reader["createdBy"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.retainPermissions = try reader["retainPermissions"].readIfPresent() - value.status = try reader["status"].readIfPresent() - value.subscribedListing = try reader["subscribedListing"].readIfPresent(with: DataZoneClientTypes.SubscribedListing.read(from:)) - value.subscribedPrincipal = try reader["subscribedPrincipal"].readIfPresent(with: DataZoneClientTypes.SubscribedPrincipal.read(from:)) - value.subscriptionRequestId = try reader["subscriptionRequestId"].readIfPresent() - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) - value.updatedBy = try reader["updatedBy"].readIfPresent() - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension SearchOutput { +enum CreateAssetRevisionOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> SearchOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = SearchOutput() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SearchInventoryResultItem.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() - value.totalMatchCount = try reader["totalMatchCount"].readIfPresent() - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension SearchGroupProfilesOutput { +enum CreateAssetTypeOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> SearchGroupProfilesOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = SearchGroupProfilesOutput() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.GroupProfileSummary.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension SearchListingsOutput { +enum CreateDataProductOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> SearchListingsOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = SearchListingsOutput() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SearchResultItem.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() - value.totalMatchCount = try reader["totalMatchCount"].readIfPresent() - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension SearchTypesOutput { +enum CreateDataProductRevisionOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> SearchTypesOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = SearchTypesOutput() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SearchTypesResultItem.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() - value.totalMatchCount = try reader["totalMatchCount"].readIfPresent() - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension SearchUserProfilesOutput { +enum CreateDataSourceOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> SearchUserProfilesOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = SearchUserProfilesOutput() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.UserProfileSummary.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension StartDataSourceRunOutput { +enum CreateDomainOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> StartDataSourceRunOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = StartDataSourceRunOutput() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) - value.dataSourceConfigurationSnapshot = try reader["dataSourceConfigurationSnapshot"].readIfPresent() - value.dataSourceId = try reader["dataSourceId"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.errorMessage = try reader["errorMessage"].readIfPresent(with: DataZoneClientTypes.DataSourceErrorMessage.read(from:)) - value.id = try reader["id"].readIfPresent() - value.projectId = try reader["projectId"].readIfPresent() - value.runStatisticsForAssets = try reader["runStatisticsForAssets"].readIfPresent(with: DataZoneClientTypes.RunStatisticsForAssets.read(from:)) - value.startedAt = try reader["startedAt"].readTimestampIfPresent(format: .dateTime) - value.status = try reader["status"].readIfPresent() - value.stoppedAt = try reader["stoppedAt"].readTimestampIfPresent(format: .dateTime) - value.type = try reader["type"].readIfPresent() - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension StartMetadataGenerationRunOutput { +enum CreateDomainUnitOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> StartMetadataGenerationRunOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = StartMetadataGenerationRunOutput() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.createdBy = try reader["createdBy"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.owningProjectId = try reader["owningProjectId"].readIfPresent() - value.status = try reader["status"].readIfPresent() - value.type = try reader["type"].readIfPresent() - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension TagResourceOutput { +enum CreateEnvironmentOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> TagResourceOutput { - return TagResourceOutput() + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension UntagResourceOutput { +enum CreateEnvironmentActionOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UntagResourceOutput { - return UntagResourceOutput() + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension UpdateAssetFilterOutput { +enum CreateEnvironmentProfileOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateAssetFilterOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = UpdateAssetFilterOutput() - value.assetId = try reader["assetId"].readIfPresent() - value.configuration = try reader["configuration"].readIfPresent(with: DataZoneClientTypes.AssetFilterConfiguration.read(from:)) - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.description = try reader["description"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.effectiveColumnNames = try reader["effectiveColumnNames"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.effectiveRowFilter = try reader["effectiveRowFilter"].readIfPresent() - value.errorMessage = try reader["errorMessage"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.status = try reader["status"].readIfPresent() - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension UpdateDataSourceOutput { +enum CreateFormTypeOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateDataSourceOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = UpdateDataSourceOutput() - value.assetFormsOutput = try reader["assetFormsOutput"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.FormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) - value.configuration = try reader["configuration"].readIfPresent(with: DataZoneClientTypes.DataSourceConfigurationOutput.read(from:)) - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) - value.description = try reader["description"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.enableSetting = try reader["enableSetting"].readIfPresent() - value.environmentId = try reader["environmentId"].readIfPresent() - value.errorMessage = try reader["errorMessage"].readIfPresent(with: DataZoneClientTypes.DataSourceErrorMessage.read(from:)) - value.id = try reader["id"].readIfPresent() - value.lastRunAt = try reader["lastRunAt"].readTimestampIfPresent(format: .dateTime) - value.lastRunErrorMessage = try reader["lastRunErrorMessage"].readIfPresent(with: DataZoneClientTypes.DataSourceErrorMessage.read(from:)) - value.lastRunStatus = try reader["lastRunStatus"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.projectId = try reader["projectId"].readIfPresent() - value.publishOnImport = try reader["publishOnImport"].readIfPresent() - value.recommendation = try reader["recommendation"].readIfPresent(with: DataZoneClientTypes.RecommendationConfiguration.read(from:)) - value.retainPermissionsOnRevokeFailure = try reader["retainPermissionsOnRevokeFailure"].readIfPresent() - value.schedule = try reader["schedule"].readIfPresent(with: DataZoneClientTypes.ScheduleConfiguration.read(from:)) - value.selfGrantStatus = try reader["selfGrantStatus"].readIfPresent(with: DataZoneClientTypes.SelfGrantStatusOutput.read(from:)) - value.status = try reader["status"].readIfPresent() - value.type = try reader["type"].readIfPresent() - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension UpdateDomainOutput { +enum CreateGlossaryOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateDomainOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = UpdateDomainOutput() - value.description = try reader["description"].readIfPresent() - value.domainExecutionRole = try reader["domainExecutionRole"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.lastUpdatedAt = try reader["lastUpdatedAt"].readTimestampIfPresent(format: .epochSeconds) - value.name = try reader["name"].readIfPresent() - value.singleSignOn = try reader["singleSignOn"].readIfPresent(with: DataZoneClientTypes.SingleSignOn.read(from:)) - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension UpdateEnvironmentOutput { +enum CreateGlossaryTermOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateEnvironmentOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = UpdateEnvironmentOutput() - value.awsAccountId = try reader["awsAccountId"].readIfPresent() - value.awsAccountRegion = try reader["awsAccountRegion"].readIfPresent() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) - value.createdBy = try reader["createdBy"].readIfPresent() - value.deploymentProperties = try reader["deploymentProperties"].readIfPresent(with: DataZoneClientTypes.DeploymentProperties.read(from:)) - value.description = try reader["description"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.environmentActions = try reader["environmentActions"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.ConfigurableEnvironmentAction.read(from:), memberNodeInfo: "member", isFlattened: false) - value.environmentBlueprintId = try reader["environmentBlueprintId"].readIfPresent() - value.environmentProfileId = try reader["environmentProfileId"].readIfPresent() ?? "" - value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.id = try reader["id"].readIfPresent() - value.lastDeployment = try reader["lastDeployment"].readIfPresent(with: DataZoneClientTypes.Deployment.read(from:)) - value.name = try reader["name"].readIfPresent() - value.projectId = try reader["projectId"].readIfPresent() - value.provider = try reader["provider"].readIfPresent() - value.provisionedResources = try reader["provisionedResources"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.Resource.read(from:), memberNodeInfo: "member", isFlattened: false) - value.provisioningProperties = try reader["provisioningProperties"].readIfPresent(with: DataZoneClientTypes.ProvisioningProperties.read(from:)) - value.status = try reader["status"].readIfPresent() - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) - value.userParameters = try reader["userParameters"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.CustomParameter.read(from:), memberNodeInfo: "member", isFlattened: false) - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension UpdateEnvironmentActionOutput { +enum CreateGroupProfileOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateEnvironmentActionOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = UpdateEnvironmentActionOutput() - value.description = try reader["description"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.environmentId = try reader["environmentId"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.parameters = try reader["parameters"].readIfPresent(with: DataZoneClientTypes.ActionParameters.read(from:)) - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension UpdateEnvironmentProfileOutput { +enum CreateListingChangeSetOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateEnvironmentProfileOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = UpdateEnvironmentProfileOutput() - value.awsAccountId = try reader["awsAccountId"].readIfPresent() - value.awsAccountRegion = try reader["awsAccountRegion"].readIfPresent() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) - value.createdBy = try reader["createdBy"].readIfPresent() - value.description = try reader["description"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.environmentBlueprintId = try reader["environmentBlueprintId"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.projectId = try reader["projectId"].readIfPresent() - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) - value.userParameters = try reader["userParameters"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.CustomParameter.read(from:), memberNodeInfo: "member", isFlattened: false) - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension UpdateGlossaryOutput { +enum CreateProjectOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateGlossaryOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = UpdateGlossaryOutput() - value.description = try reader["description"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.owningProjectId = try reader["owningProjectId"].readIfPresent() - value.status = try reader["status"].readIfPresent() - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension UpdateGlossaryTermOutput { +enum CreateProjectMembershipOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateGlossaryTermOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = UpdateGlossaryTermOutput() - value.domainId = try reader["domainId"].readIfPresent() - value.glossaryId = try reader["glossaryId"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.longDescription = try reader["longDescription"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.shortDescription = try reader["shortDescription"].readIfPresent() - value.status = try reader["status"].readIfPresent() - value.termRelations = try reader["termRelations"].readIfPresent(with: DataZoneClientTypes.TermRelations.read(from:)) - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension UpdateGroupProfileOutput { +enum CreateSubscriptionGrantOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateGroupProfileOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = UpdateGroupProfileOutput() - value.domainId = try reader["domainId"].readIfPresent() - value.groupName = try reader["groupName"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.status = try reader["status"].readIfPresent() - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension UpdateProjectOutput { +enum CreateSubscriptionRequestOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateProjectOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = UpdateProjectOutput() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) - value.createdBy = try reader["createdBy"].readIfPresent() - value.description = try reader["description"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.failureReasons = try reader["failureReasons"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.ProjectDeletionError.read(from:), memberNodeInfo: "member", isFlattened: false) - value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.id = try reader["id"].readIfPresent() - value.lastUpdatedAt = try reader["lastUpdatedAt"].readTimestampIfPresent(format: .dateTime) - value.name = try reader["name"].readIfPresent() - value.projectStatus = try reader["projectStatus"].readIfPresent() - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension UpdateSubscriptionGrantStatusOutput { +enum CreateSubscriptionTargetOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateSubscriptionGrantStatusOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = UpdateSubscriptionGrantStatusOutput() - value.assets = try reader["assets"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscribedAsset.read(from:), memberNodeInfo: "member", isFlattened: false) - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.createdBy = try reader["createdBy"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.grantedEntity = try reader["grantedEntity"].readIfPresent(with: DataZoneClientTypes.GrantedEntity.read(from:)) - value.id = try reader["id"].readIfPresent() - value.status = try reader["status"].readIfPresent() - value.subscriptionId = try reader["subscriptionId"].readIfPresent() - value.subscriptionTargetId = try reader["subscriptionTargetId"].readIfPresent() - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) - value.updatedBy = try reader["updatedBy"].readIfPresent() - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension UpdateSubscriptionRequestOutput { +enum CreateUserProfileOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateSubscriptionRequestOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = UpdateSubscriptionRequestOutput() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.createdBy = try reader["createdBy"].readIfPresent() - value.decisionComment = try reader["decisionComment"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.requestReason = try reader["requestReason"].readIfPresent() - value.reviewerId = try reader["reviewerId"].readIfPresent() - value.status = try reader["status"].readIfPresent() - value.subscribedListings = try reader["subscribedListings"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscribedListing.read(from:), memberNodeInfo: "member", isFlattened: false) - value.subscribedPrincipals = try reader["subscribedPrincipals"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscribedPrincipal.read(from:), memberNodeInfo: "member", isFlattened: false) - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) - value.updatedBy = try reader["updatedBy"].readIfPresent() - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension UpdateSubscriptionTargetOutput { +enum DeleteAssetOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateSubscriptionTargetOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = UpdateSubscriptionTargetOutput() - value.applicableAssetTypes = try reader["applicableAssetTypes"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.authorizedPrincipals = try reader["authorizedPrincipals"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.createdBy = try reader["createdBy"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.environmentId = try reader["environmentId"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.manageAccessRole = try reader["manageAccessRole"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.projectId = try reader["projectId"].readIfPresent() - value.provider = try reader["provider"].readIfPresent() - value.subscriptionTargetConfig = try reader["subscriptionTargetConfig"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SubscriptionTargetForm.read(from:), memberNodeInfo: "member", isFlattened: false) - value.type = try reader["type"].readIfPresent() - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) - value.updatedBy = try reader["updatedBy"].readIfPresent() - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -extension UpdateUserProfileOutput { +enum DeleteAssetFilterOutputError { - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateUserProfileOutput { + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = UpdateUserProfileOutput() - value.details = try reader["details"].readIfPresent(with: DataZoneClientTypes.UserProfileDetails.read(from:)) - value.domainId = try reader["domainId"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.status = try reader["status"].readIfPresent() - value.type = try reader["type"].readIfPresent() - return value + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -func httpServiceError(baseError: AWSClientRuntime.RestJSONError) throws -> Swift.Error? { - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) - case "UnauthorizedException": return try UnauthorizedException.makeError(baseError: baseError) - default: return nil +enum DeleteAssetTypeOutputError { + + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { + let data = try await httpResponse.data() + let responseReader = try SmithyJSON.Reader.from(data: data) + let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + if let error = try httpServiceError(baseError: baseError) { return error } + switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ValidationException": return try ValidationException.makeError(baseError: baseError) + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } } } -enum AcceptPredictionsOutputError { +enum DeleteDataProductOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -20767,7 +23146,7 @@ enum AcceptPredictionsOutputError { } } -enum AcceptSubscriptionRequestOutputError { +enum DeleteDataSourceOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -20780,6 +23159,7 @@ enum AcceptSubscriptionRequestOutputError { case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -20787,7 +23167,7 @@ enum AcceptSubscriptionRequestOutputError { } } -enum AssociateEnvironmentRoleOutputError { +enum DeleteDomainOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -20807,7 +23187,7 @@ enum AssociateEnvironmentRoleOutputError { } } -enum CancelMetadataGenerationRunOutputError { +enum DeleteDomainUnitOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -20827,7 +23207,7 @@ enum CancelMetadataGenerationRunOutputError { } } -enum CancelSubscriptionOutputError { +enum DeleteEnvironmentOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -20837,7 +23217,6 @@ enum CancelSubscriptionOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) @@ -20847,7 +23226,7 @@ enum CancelSubscriptionOutputError { } } -enum CreateAssetOutputError { +enum DeleteEnvironmentActionOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -20860,7 +23239,6 @@ enum CreateAssetOutputError { case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -20868,7 +23246,7 @@ enum CreateAssetOutputError { } } -enum CreateAssetFilterOutputError { +enum DeleteEnvironmentBlueprintConfigurationOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -20878,18 +23256,14 @@ enum CreateAssetFilterOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) } } } -enum CreateAssetRevisionOutputError { +enum DeleteEnvironmentProfileOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -20899,7 +23273,6 @@ enum CreateAssetRevisionOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) @@ -20909,7 +23282,7 @@ enum CreateAssetRevisionOutputError { } } -enum CreateAssetTypeOutputError { +enum DeleteFormTypeOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -20921,7 +23294,7 @@ enum CreateAssetTypeOutputError { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -20929,7 +23302,7 @@ enum CreateAssetTypeOutputError { } } -enum CreateDataProductOutputError { +enum DeleteGlossaryOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -20942,7 +23315,6 @@ enum CreateDataProductOutputError { case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -20950,7 +23322,7 @@ enum CreateDataProductOutputError { } } -enum CreateDataProductRevisionOutputError { +enum DeleteGlossaryTermOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -20970,7 +23342,7 @@ enum CreateDataProductRevisionOutputError { } } -enum CreateDataSourceOutputError { +enum DeleteListingOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -20983,7 +23355,6 @@ enum CreateDataSourceOutputError { case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -20991,7 +23362,7 @@ enum CreateDataSourceOutputError { } } -enum CreateDomainOutputError { +enum DeleteProjectOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21001,10 +23372,8 @@ enum CreateDomainOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -21012,7 +23381,7 @@ enum CreateDomainOutputError { } } -enum CreateEnvironmentOutputError { +enum DeleteProjectMembershipOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21022,9 +23391,9 @@ enum CreateEnvironmentOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -21032,7 +23401,7 @@ enum CreateEnvironmentOutputError { } } -enum CreateEnvironmentActionOutputError { +enum DeleteSubscriptionGrantOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21052,7 +23421,7 @@ enum CreateEnvironmentActionOutputError { } } -enum CreateEnvironmentProfileOutputError { +enum DeleteSubscriptionRequestOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21065,7 +23434,6 @@ enum CreateEnvironmentProfileOutputError { case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -21073,7 +23441,7 @@ enum CreateEnvironmentProfileOutputError { } } -enum CreateFormTypeOutputError { +enum DeleteSubscriptionTargetOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21085,7 +23453,7 @@ enum CreateFormTypeOutputError { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -21093,7 +23461,7 @@ enum CreateFormTypeOutputError { } } -enum CreateGlossaryOutputError { +enum DeleteTimeSeriesDataPointsOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21103,9 +23471,8 @@ enum CreateGlossaryOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -21113,7 +23480,7 @@ enum CreateGlossaryOutputError { } } -enum CreateGlossaryTermOutputError { +enum DisassociateEnvironmentRoleOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21126,7 +23493,6 @@ enum CreateGlossaryTermOutputError { case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -21134,7 +23500,7 @@ enum CreateGlossaryTermOutputError { } } -enum CreateGroupProfileOutputError { +enum GetAssetOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21146,13 +23512,14 @@ enum CreateGroupProfileOutputError { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) } } } -enum CreateListingChangeSetOutputError { +enum GetAssetFilterOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21162,10 +23529,8 @@ enum CreateListingChangeSetOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -21173,7 +23538,7 @@ enum CreateListingChangeSetOutputError { } } -enum CreateProjectOutputError { +enum GetAssetTypeOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21183,10 +23548,8 @@ enum CreateProjectOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -21194,7 +23557,7 @@ enum CreateProjectOutputError { } } -enum CreateProjectMembershipOutputError { +enum GetDataProductOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21206,13 +23569,14 @@ enum CreateProjectMembershipOutputError { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) } } } -enum CreateSubscriptionGrantOutputError { +enum GetDataSourceOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21225,6 +23589,7 @@ enum CreateSubscriptionGrantOutputError { case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -21232,7 +23597,7 @@ enum CreateSubscriptionGrantOutputError { } } -enum CreateSubscriptionRequestOutputError { +enum GetDataSourceRunOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21245,6 +23610,7 @@ enum CreateSubscriptionRequestOutputError { case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -21252,7 +23618,7 @@ enum CreateSubscriptionRequestOutputError { } } -enum CreateSubscriptionTargetOutputError { +enum GetDomainOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21262,9 +23628,9 @@ enum CreateSubscriptionTargetOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -21272,7 +23638,7 @@ enum CreateSubscriptionTargetOutputError { } } -enum CreateUserProfileOutputError { +enum GetDomainUnitOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21284,13 +23650,14 @@ enum CreateUserProfileOutputError { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) } } } -enum DeleteAssetOutputError { +enum GetEnvironmentOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21300,7 +23667,6 @@ enum DeleteAssetOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) @@ -21310,7 +23676,7 @@ enum DeleteAssetOutputError { } } -enum DeleteAssetFilterOutputError { +enum GetEnvironmentActionOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21320,7 +23686,6 @@ enum DeleteAssetFilterOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) @@ -21330,7 +23695,7 @@ enum DeleteAssetFilterOutputError { } } -enum DeleteAssetTypeOutputError { +enum GetEnvironmentBlueprintOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21340,7 +23705,6 @@ enum DeleteAssetTypeOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) @@ -21350,7 +23714,7 @@ enum DeleteAssetTypeOutputError { } } -enum DeleteDataProductOutputError { +enum GetEnvironmentBlueprintConfigurationOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21360,17 +23724,15 @@ enum DeleteDataProductOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) } } } -enum DeleteDataSourceOutputError { +enum GetEnvironmentCredentialsOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21380,10 +23742,8 @@ enum DeleteDataSourceOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -21391,7 +23751,7 @@ enum DeleteDataSourceOutputError { } } -enum DeleteDomainOutputError { +enum GetEnvironmentProfileOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21401,7 +23761,6 @@ enum DeleteDomainOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) @@ -21411,7 +23770,7 @@ enum DeleteDomainOutputError { } } -enum DeleteEnvironmentOutputError { +enum GetFormTypeOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21430,7 +23789,7 @@ enum DeleteEnvironmentOutputError { } } -enum DeleteEnvironmentActionOutputError { +enum GetGlossaryOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21440,7 +23799,6 @@ enum DeleteEnvironmentActionOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) @@ -21450,7 +23808,7 @@ enum DeleteEnvironmentActionOutputError { } } -enum DeleteEnvironmentBlueprintConfigurationOutputError { +enum GetGlossaryTermOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21461,13 +23819,15 @@ enum DeleteEnvironmentBlueprintConfigurationOutputError { switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) } } } -enum DeleteEnvironmentProfileOutputError { +enum GetGroupProfileOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21479,14 +23839,13 @@ enum DeleteEnvironmentProfileOutputError { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) } } } -enum DeleteFormTypeOutputError { +enum GetIamPortalLoginUrlOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21506,7 +23865,7 @@ enum DeleteFormTypeOutputError { } } -enum DeleteGlossaryOutputError { +enum GetLineageNodeOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21516,7 +23875,6 @@ enum DeleteGlossaryOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) @@ -21526,7 +23884,7 @@ enum DeleteGlossaryOutputError { } } -enum DeleteGlossaryTermOutputError { +enum GetListingOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21536,7 +23894,6 @@ enum DeleteGlossaryTermOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) @@ -21546,7 +23903,7 @@ enum DeleteGlossaryTermOutputError { } } -enum DeleteListingOutputError { +enum GetMetadataGenerationRunOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21556,7 +23913,6 @@ enum DeleteListingOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) @@ -21566,7 +23922,7 @@ enum DeleteListingOutputError { } } -enum DeleteProjectOutputError { +enum GetProjectOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21585,7 +23941,7 @@ enum DeleteProjectOutputError { } } -enum DeleteProjectMembershipOutputError { +enum GetSubscriptionOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21597,7 +23953,6 @@ enum DeleteProjectMembershipOutputError { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -21605,7 +23960,7 @@ enum DeleteProjectMembershipOutputError { } } -enum DeleteSubscriptionGrantOutputError { +enum GetSubscriptionGrantOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21615,7 +23970,6 @@ enum DeleteSubscriptionGrantOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) @@ -21625,7 +23979,7 @@ enum DeleteSubscriptionGrantOutputError { } } -enum DeleteSubscriptionRequestOutputError { +enum GetSubscriptionRequestDetailsOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21635,7 +23989,6 @@ enum DeleteSubscriptionRequestOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) @@ -21645,7 +23998,7 @@ enum DeleteSubscriptionRequestOutputError { } } -enum DeleteSubscriptionTargetOutputError { +enum GetSubscriptionTargetOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21655,7 +24008,6 @@ enum DeleteSubscriptionTargetOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) @@ -21665,7 +24017,7 @@ enum DeleteSubscriptionTargetOutputError { } } -enum DeleteTimeSeriesDataPointsOutputError { +enum GetTimeSeriesDataPointOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21684,7 +24036,7 @@ enum DeleteTimeSeriesDataPointsOutputError { } } -enum DisassociateEnvironmentRoleOutputError { +enum GetUserProfileOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21694,17 +24046,15 @@ enum DisassociateEnvironmentRoleOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) } } } -enum GetAssetOutputError { +enum ListAssetFiltersOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21723,7 +24073,7 @@ enum GetAssetOutputError { } } -enum GetAssetFilterOutputError { +enum ListAssetRevisionsOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21742,7 +24092,7 @@ enum GetAssetFilterOutputError { } } -enum GetAssetTypeOutputError { +enum ListDataProductRevisionsOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21761,7 +24111,7 @@ enum GetAssetTypeOutputError { } } -enum GetDataProductOutputError { +enum ListDataSourceRunActivitiesOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21771,8 +24121,10 @@ enum GetDataProductOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -21780,7 +24132,7 @@ enum GetDataProductOutputError { } } -enum GetDataSourceOutputError { +enum ListDataSourceRunsOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21801,7 +24153,7 @@ enum GetDataSourceOutputError { } } -enum GetDataSourceRunOutputError { +enum ListDataSourcesOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21822,7 +24174,7 @@ enum GetDataSourceRunOutputError { } } -enum GetDomainOutputError { +enum ListDomainsOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21832,6 +24184,7 @@ enum GetDomainOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) @@ -21842,7 +24195,7 @@ enum GetDomainOutputError { } } -enum GetEnvironmentOutputError { +enum ListDomainUnitsForParentOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21853,7 +24206,6 @@ enum GetEnvironmentOutputError { switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -21861,7 +24213,7 @@ enum GetEnvironmentOutputError { } } -enum GetEnvironmentActionOutputError { +enum ListEntityOwnersOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21872,7 +24224,6 @@ enum GetEnvironmentActionOutputError { switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -21880,7 +24231,7 @@ enum GetEnvironmentActionOutputError { } } -enum GetEnvironmentBlueprintOutputError { +enum ListEnvironmentActionsOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21891,7 +24242,6 @@ enum GetEnvironmentBlueprintOutputError { switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -21899,7 +24249,7 @@ enum GetEnvironmentBlueprintOutputError { } } -enum GetEnvironmentBlueprintConfigurationOutputError { +enum ListEnvironmentBlueprintConfigurationsOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21917,7 +24267,7 @@ enum GetEnvironmentBlueprintConfigurationOutputError { } } -enum GetEnvironmentCredentialsOutputError { +enum ListEnvironmentBlueprintsOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21936,7 +24286,7 @@ enum GetEnvironmentCredentialsOutputError { } } -enum GetEnvironmentProfileOutputError { +enum ListEnvironmentProfilesOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21947,7 +24297,6 @@ enum GetEnvironmentProfileOutputError { switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -21955,7 +24304,7 @@ enum GetEnvironmentProfileOutputError { } } -enum GetFormTypeOutputError { +enum ListEnvironmentsOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21966,7 +24315,6 @@ enum GetFormTypeOutputError { switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -21974,7 +24322,7 @@ enum GetFormTypeOutputError { } } -enum GetGlossaryOutputError { +enum ListLineageNodeHistoryOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -21993,7 +24341,7 @@ enum GetGlossaryOutputError { } } -enum GetGlossaryTermOutputError { +enum ListMetadataGenerationRunsOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22012,7 +24360,7 @@ enum GetGlossaryTermOutputError { } } -enum GetGroupProfileOutputError { +enum ListNotificationsOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22030,7 +24378,7 @@ enum GetGroupProfileOutputError { } } -enum GetIamPortalLoginUrlOutputError { +enum ListPolicyGrantsOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22040,9 +24388,7 @@ enum GetIamPortalLoginUrlOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -22050,7 +24396,7 @@ enum GetIamPortalLoginUrlOutputError { } } -enum GetLineageNodeOutputError { +enum ListProjectMembershipsOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22069,7 +24415,7 @@ enum GetLineageNodeOutputError { } } -enum GetListingOutputError { +enum ListProjectsOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22080,7 +24426,6 @@ enum GetListingOutputError { switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -22088,7 +24433,7 @@ enum GetListingOutputError { } } -enum GetMetadataGenerationRunOutputError { +enum ListSubscriptionGrantsOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22107,7 +24452,7 @@ enum GetMetadataGenerationRunOutputError { } } -enum GetProjectOutputError { +enum ListSubscriptionRequestsOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22126,7 +24471,7 @@ enum GetProjectOutputError { } } -enum GetSubscriptionOutputError { +enum ListSubscriptionsOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22145,7 +24490,7 @@ enum GetSubscriptionOutputError { } } -enum GetSubscriptionGrantOutputError { +enum ListSubscriptionTargetsOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22164,7 +24509,7 @@ enum GetSubscriptionGrantOutputError { } } -enum GetSubscriptionRequestDetailsOutputError { +enum ListTagsForResourceOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22173,17 +24518,15 @@ enum GetSubscriptionRequestDetailsOutputError { if let error = baseError.customError() { return error } if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) } } } -enum GetSubscriptionTargetOutputError { +enum ListTimeSeriesDataPointsOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22202,7 +24545,7 @@ enum GetSubscriptionTargetOutputError { } } -enum GetTimeSeriesDataPointOutputError { +enum PostLineageEventOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22212,8 +24555,10 @@ enum GetTimeSeriesDataPointOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -22221,7 +24566,7 @@ enum GetTimeSeriesDataPointOutputError { } } -enum GetUserProfileOutputError { +enum PostTimeSeriesDataPointsOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22231,15 +24576,18 @@ enum GetUserProfileOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) } } } -enum ListAssetFiltersOutputError { +enum PutEnvironmentBlueprintConfigurationOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22249,16 +24597,16 @@ enum ListAssetFiltersOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) } } } -enum ListAssetRevisionsOutputError { +enum RejectPredictionsOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22268,6 +24616,7 @@ enum ListAssetRevisionsOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) @@ -22277,7 +24626,7 @@ enum ListAssetRevisionsOutputError { } } -enum ListDataProductRevisionsOutputError { +enum RejectSubscriptionRequestOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22287,6 +24636,7 @@ enum ListDataProductRevisionsOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) @@ -22296,7 +24646,7 @@ enum ListDataProductRevisionsOutputError { } } -enum ListDataSourceRunActivitiesOutputError { +enum RemoveEntityOwnerOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22306,10 +24656,8 @@ enum ListDataSourceRunActivitiesOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -22317,7 +24665,7 @@ enum ListDataSourceRunActivitiesOutputError { } } -enum ListDataSourceRunsOutputError { +enum RemovePolicyGrantOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22327,10 +24675,7 @@ enum ListDataSourceRunsOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -22338,7 +24683,7 @@ enum ListDataSourceRunsOutputError { } } -enum ListDataSourcesOutputError { +enum RevokeSubscriptionOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22351,7 +24696,6 @@ enum ListDataSourcesOutputError { case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -22359,7 +24703,7 @@ enum ListDataSourcesOutputError { } } -enum ListDomainsOutputError { +enum SearchOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22369,10 +24713,7 @@ enum ListDomainsOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -22380,7 +24721,7 @@ enum ListDomainsOutputError { } } -enum ListEnvironmentActionsOutputError { +enum SearchGroupProfilesOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22391,14 +24732,14 @@ enum ListEnvironmentActionsOutputError { switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) } } } -enum ListEnvironmentBlueprintConfigurationsOutputError { +enum SearchListingsOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22409,14 +24750,14 @@ enum ListEnvironmentBlueprintConfigurationsOutputError { switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) } } } -enum ListEnvironmentBlueprintsOutputError { +enum SearchTypesOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22427,7 +24768,6 @@ enum ListEnvironmentBlueprintsOutputError { switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -22435,7 +24775,7 @@ enum ListEnvironmentBlueprintsOutputError { } } -enum ListEnvironmentProfilesOutputError { +enum SearchUserProfilesOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22446,14 +24786,14 @@ enum ListEnvironmentProfilesOutputError { switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) } } } -enum ListEnvironmentsOutputError { +enum StartDataSourceRunOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22463,7 +24803,10 @@ enum ListEnvironmentsOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -22471,7 +24814,7 @@ enum ListEnvironmentsOutputError { } } -enum ListLineageNodeHistoryOutputError { +enum StartMetadataGenerationRunOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22481,8 +24824,10 @@ enum ListLineageNodeHistoryOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -22490,7 +24835,7 @@ enum ListLineageNodeHistoryOutputError { } } -enum ListMetadataGenerationRunsOutputError { +enum TagResourceOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22499,17 +24844,15 @@ enum ListMetadataGenerationRunsOutputError { if let error = baseError.customError() { return error } if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) } } } -enum ListNotificationsOutputError { +enum UntagResourceOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22518,16 +24861,14 @@ enum ListNotificationsOutputError { if let error = baseError.customError() { return error } if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) } } } -enum ListProjectMembershipsOutputError { +enum UpdateAssetFilterOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22537,6 +24878,7 @@ enum ListProjectMembershipsOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) @@ -22546,7 +24888,7 @@ enum ListProjectMembershipsOutputError { } } -enum ListProjectsOutputError { +enum UpdateDataSourceOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22556,7 +24898,10 @@ enum ListProjectsOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -22564,7 +24909,7 @@ enum ListProjectsOutputError { } } -enum ListSubscriptionGrantsOutputError { +enum UpdateDomainOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22574,8 +24919,10 @@ enum ListSubscriptionGrantsOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -22583,7 +24930,7 @@ enum ListSubscriptionGrantsOutputError { } } -enum ListSubscriptionRequestsOutputError { +enum UpdateDomainUnitOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22593,6 +24940,7 @@ enum ListSubscriptionRequestsOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) @@ -22602,7 +24950,7 @@ enum ListSubscriptionRequestsOutputError { } } -enum ListSubscriptionsOutputError { +enum UpdateEnvironmentOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22612,8 +24960,9 @@ enum ListSubscriptionsOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -22621,7 +24970,7 @@ enum ListSubscriptionsOutputError { } } -enum ListSubscriptionTargetsOutputError { +enum UpdateEnvironmentActionOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22631,6 +24980,7 @@ enum ListSubscriptionTargetsOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) @@ -22640,7 +24990,7 @@ enum ListSubscriptionTargetsOutputError { } } -enum ListTagsForResourceOutputError { +enum UpdateEnvironmentProfileOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22649,15 +24999,19 @@ enum ListTagsForResourceOutputError { if let error = baseError.customError() { return error } if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { + case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) } } } -enum ListTimeSeriesDataPointsOutputError { +enum UpdateGlossaryOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22667,6 +25021,7 @@ enum ListTimeSeriesDataPointsOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) + case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) @@ -22676,7 +25031,7 @@ enum ListTimeSeriesDataPointsOutputError { } } -enum PostLineageEventOutputError { +enum UpdateGlossaryTermOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22689,7 +25044,6 @@ enum PostLineageEventOutputError { case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) @@ -22697,7 +25051,7 @@ enum PostLineageEventOutputError { } } -enum PostTimeSeriesDataPointsOutputError { +enum UpdateGroupProfileOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22707,18 +25061,15 @@ enum PostTimeSeriesDataPointsOutputError { if let error = try httpServiceError(baseError: baseError) { return error } switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) } } } -enum PutEnvironmentBlueprintConfigurationOutputError { +enum UpdateProjectOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22731,13 +25082,15 @@ enum PutEnvironmentBlueprintConfigurationOutputError { case "ConflictException": return try ConflictException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) + case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) + case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) } } } -enum RejectPredictionsOutputError { +enum UpdateSubscriptionGrantStatusOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22757,7 +25110,7 @@ enum RejectPredictionsOutputError { } } -enum RejectSubscriptionRequestOutputError { +enum UpdateSubscriptionRequestOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22777,7 +25130,7 @@ enum RejectSubscriptionRequestOutputError { } } -enum RevokeSubscriptionOutputError { +enum UpdateSubscriptionTargetOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22797,7 +25150,7 @@ enum RevokeSubscriptionOutputError { } } -enum SearchOutputError { +enum UpdateUserProfileOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { let data = try await httpResponse.data() @@ -22808,2161 +25161,2259 @@ enum SearchOutputError { switch baseError.code { case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) + case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) } } } -enum SearchGroupProfilesOutputError { +extension InternalServerException { + + static func makeError(baseError: AWSClientRuntime.RestJSONError) throws -> InternalServerException { + let reader = baseError.errorBodyReader + var value = InternalServerException() + value.properties.message = try reader["message"].readIfPresent() + value.httpResponse = baseError.httpResponse + value.requestID = baseError.requestID + value.message = baseError.message + return value + } +} + +extension AccessDeniedException { + + static func makeError(baseError: AWSClientRuntime.RestJSONError) throws -> AccessDeniedException { + let reader = baseError.errorBodyReader + var value = AccessDeniedException() + value.properties.message = try reader["message"].readIfPresent() + value.httpResponse = baseError.httpResponse + value.requestID = baseError.requestID + value.message = baseError.message + return value + } +} + +extension ResourceNotFoundException { + + static func makeError(baseError: AWSClientRuntime.RestJSONError) throws -> ResourceNotFoundException { + let reader = baseError.errorBodyReader + var value = ResourceNotFoundException() + value.properties.message = try reader["message"].readIfPresent() + value.httpResponse = baseError.httpResponse + value.requestID = baseError.requestID + value.message = baseError.message + return value + } +} + +extension ThrottlingException { + + static func makeError(baseError: AWSClientRuntime.RestJSONError) throws -> ThrottlingException { + let reader = baseError.errorBodyReader + var value = ThrottlingException() + value.properties.message = try reader["message"].readIfPresent() + value.httpResponse = baseError.httpResponse + value.requestID = baseError.requestID + value.message = baseError.message + return value + } +} + +extension ValidationException { + + static func makeError(baseError: AWSClientRuntime.RestJSONError) throws -> ValidationException { + let reader = baseError.errorBodyReader + var value = ValidationException() + value.properties.message = try reader["message"].readIfPresent() + value.httpResponse = baseError.httpResponse + value.requestID = baseError.requestID + value.message = baseError.message + return value + } +} + +extension ConflictException { + + static func makeError(baseError: AWSClientRuntime.RestJSONError) throws -> ConflictException { + let reader = baseError.errorBodyReader + var value = ConflictException() + value.properties.message = try reader["message"].readIfPresent() + value.httpResponse = baseError.httpResponse + value.requestID = baseError.requestID + value.message = baseError.message + return value + } +} + +extension ServiceQuotaExceededException { + + static func makeError(baseError: AWSClientRuntime.RestJSONError) throws -> ServiceQuotaExceededException { + let reader = baseError.errorBodyReader + var value = ServiceQuotaExceededException() + value.properties.message = try reader["message"].readIfPresent() + value.httpResponse = baseError.httpResponse + value.requestID = baseError.requestID + value.message = baseError.message + return value + } +} + +extension UnauthorizedException { + + static func makeError(baseError: AWSClientRuntime.RestJSONError) throws -> UnauthorizedException { + let reader = baseError.errorBodyReader + var value = UnauthorizedException() + value.properties.message = try reader["message"].readIfPresent() + value.httpResponse = baseError.httpResponse + value.requestID = baseError.requestID + value.message = baseError.message + return value + } +} + +extension DataZoneClientTypes.SubscribedPrincipal { + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.SubscribedPrincipal { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name + switch name { + case "project": + return .project(try reader["project"].read(with: DataZoneClientTypes.SubscribedProject.read(from:))) + default: + return .sdkUnknown(name ?? "") + } + } +} + +extension DataZoneClientTypes.SubscribedProject { + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.SubscribedProject { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.SubscribedProject() + value.id = try reader["id"].readIfPresent() + value.name = try reader["name"].readIfPresent() + return value + } +} + +extension DataZoneClientTypes.SubscribedListing { + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.SubscribedListing { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.SubscribedListing() + value.id = try reader["id"].readIfPresent() + value.revision = try reader["revision"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.description = try reader["description"].readIfPresent() + value.item = try reader["item"].readIfPresent(with: DataZoneClientTypes.SubscribedListingItem.read(from:)) + value.ownerProjectId = try reader["ownerProjectId"].readIfPresent() + value.ownerProjectName = try reader["ownerProjectName"].readIfPresent() + return value + } +} + +extension DataZoneClientTypes.SubscribedListingItem { + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.SubscribedListingItem { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name + switch name { + case "assetListing": + return .assetlisting(try reader["assetListing"].read(with: DataZoneClientTypes.SubscribedAssetListing.read(from:))) + case "productListing": + return .productlisting(try reader["productListing"].read(with: DataZoneClientTypes.SubscribedProductListing.read(from:))) + default: + return .sdkUnknown(name ?? "") + } + } +} + +extension DataZoneClientTypes.SubscribedProductListing { + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.SubscribedProductListing { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.SubscribedProductListing() + value.entityId = try reader["entityId"].readIfPresent() + value.entityRevision = try reader["entityRevision"].readIfPresent() + value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DetailedGlossaryTerm.read(from:), memberNodeInfo: "member", isFlattened: false) + value.name = try reader["name"].readIfPresent() + value.description = try reader["description"].readIfPresent() + value.assetListings = try reader["assetListings"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.AssetInDataProductListingItem.read(from:), memberNodeInfo: "member", isFlattened: false) + return value + } +} + +extension DataZoneClientTypes.AssetInDataProductListingItem { + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.AssetInDataProductListingItem { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.AssetInDataProductListingItem() + value.entityId = try reader["entityId"].readIfPresent() + value.entityRevision = try reader["entityRevision"].readIfPresent() + value.entityType = try reader["entityType"].readIfPresent() + return value + } +} + +extension DataZoneClientTypes.DetailedGlossaryTerm { + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DetailedGlossaryTerm { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.DetailedGlossaryTerm() + value.name = try reader["name"].readIfPresent() + value.shortDescription = try reader["shortDescription"].readIfPresent() + return value + } +} + +extension DataZoneClientTypes.SubscribedAssetListing { - static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) - if let error = baseError.customError() { return error } - if let error = try httpServiceError(baseError: baseError) { return error } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ValidationException": return try ValidationException.makeError(baseError: baseError) - default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) - } + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.SubscribedAssetListing { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.SubscribedAssetListing() + value.entityId = try reader["entityId"].readIfPresent() + value.entityRevision = try reader["entityRevision"].readIfPresent() + value.entityType = try reader["entityType"].readIfPresent() + value.forms = try reader["forms"].readIfPresent() + value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DetailedGlossaryTerm.read(from:), memberNodeInfo: "member", isFlattened: false) + return value } } -enum SearchListingsOutputError { +extension DataZoneClientTypes.AssetListingDetails { - static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) - if let error = baseError.customError() { return error } - if let error = try httpServiceError(baseError: baseError) { return error } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) - case "ValidationException": return try ValidationException.makeError(baseError: baseError) - default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) - } + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.AssetListingDetails { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.AssetListingDetails() + value.listingId = try reader["listingId"].readIfPresent() + value.listingStatus = try reader["listingStatus"].readIfPresent() + return value } } -enum SearchTypesOutputError { +extension DataZoneClientTypes.FormOutput { - static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) - if let error = baseError.customError() { return error } - if let error = try httpServiceError(baseError: baseError) { return error } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) - case "ValidationException": return try ValidationException.makeError(baseError: baseError) - default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) - } + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.FormOutput { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.FormOutput() + value.formName = try reader["formName"].readIfPresent() + value.typeName = try reader["typeName"].readIfPresent() + value.typeRevision = try reader["typeRevision"].readIfPresent() + value.content = try reader["content"].readIfPresent() + return value } } -enum SearchUserProfilesOutputError { +extension DataZoneClientTypes.TimeSeriesDataPointSummaryFormOutput { - static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) - if let error = baseError.customError() { return error } - if let error = try httpServiceError(baseError: baseError) { return error } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ValidationException": return try ValidationException.makeError(baseError: baseError) - default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) - } + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.TimeSeriesDataPointSummaryFormOutput { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.TimeSeriesDataPointSummaryFormOutput() + value.formName = try reader["formName"].readIfPresent() + value.typeIdentifier = try reader["typeIdentifier"].readIfPresent() + value.typeRevision = try reader["typeRevision"].readIfPresent() + value.timestamp = try reader["timestamp"].readTimestampIfPresent(format: .epochSeconds) + value.contentSummary = try reader["contentSummary"].readIfPresent() + value.id = try reader["id"].readIfPresent() + return value } } -enum StartDataSourceRunOutputError { +extension DataZoneClientTypes.PredictionConfiguration { - static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) - if let error = baseError.customError() { return error } - if let error = try httpServiceError(baseError: baseError) { return error } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) - case "ValidationException": return try ValidationException.makeError(baseError: baseError) - default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) - } + static func write(value: DataZoneClientTypes.PredictionConfiguration?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["businessNameGeneration"].write(value.businessNameGeneration, with: DataZoneClientTypes.BusinessNameGenerationConfiguration.write(value:to:)) + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.PredictionConfiguration { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.PredictionConfiguration() + value.businessNameGeneration = try reader["businessNameGeneration"].readIfPresent(with: DataZoneClientTypes.BusinessNameGenerationConfiguration.read(from:)) + return value } } -enum StartMetadataGenerationRunOutputError { +extension DataZoneClientTypes.BusinessNameGenerationConfiguration { - static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) - if let error = baseError.customError() { return error } - if let error = try httpServiceError(baseError: baseError) { return error } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) - case "ValidationException": return try ValidationException.makeError(baseError: baseError) - default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) - } + static func write(value: DataZoneClientTypes.BusinessNameGenerationConfiguration?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["enabled"].write(value.enabled) + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.BusinessNameGenerationConfiguration { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.BusinessNameGenerationConfiguration() + value.enabled = try reader["enabled"].readIfPresent() + return value } } -enum TagResourceOutputError { +extension DataZoneClientTypes.AssetFilterConfiguration { - static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) - if let error = baseError.customError() { return error } - if let error = try httpServiceError(baseError: baseError) { return error } - switch baseError.code { - case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ValidationException": return try ValidationException.makeError(baseError: baseError) - default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + static func write(value: DataZoneClientTypes.AssetFilterConfiguration?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + switch value { + case let .columnconfiguration(columnconfiguration): + try writer["columnConfiguration"].write(columnconfiguration, with: DataZoneClientTypes.ColumnFilterConfiguration.write(value:to:)) + case let .rowconfiguration(rowconfiguration): + try writer["rowConfiguration"].write(rowconfiguration, with: DataZoneClientTypes.RowFilterConfiguration.write(value:to:)) + case let .sdkUnknown(sdkUnknown): + try writer["sdkUnknown"].write(sdkUnknown) } } -} - -enum UntagResourceOutputError { - static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) - if let error = baseError.customError() { return error } - if let error = try httpServiceError(baseError: baseError) { return error } - switch baseError.code { - case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.AssetFilterConfiguration { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name + switch name { + case "columnConfiguration": + return .columnconfiguration(try reader["columnConfiguration"].read(with: DataZoneClientTypes.ColumnFilterConfiguration.read(from:))) + case "rowConfiguration": + return .rowconfiguration(try reader["rowConfiguration"].read(with: DataZoneClientTypes.RowFilterConfiguration.read(from:))) + default: + return .sdkUnknown(name ?? "") } } } -enum UpdateAssetFilterOutputError { +extension DataZoneClientTypes.RowFilterConfiguration { - static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) - if let error = baseError.customError() { return error } - if let error = try httpServiceError(baseError: baseError) { return error } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) - case "ValidationException": return try ValidationException.makeError(baseError: baseError) - default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) - } + static func write(value: DataZoneClientTypes.RowFilterConfiguration?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["rowFilter"].write(value.rowFilter, with: DataZoneClientTypes.RowFilter.write(value:to:)) + try writer["sensitive"].write(value.sensitive) + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.RowFilterConfiguration { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.RowFilterConfiguration() + value.rowFilter = try reader["rowFilter"].readIfPresent(with: DataZoneClientTypes.RowFilter.read(from:)) + value.sensitive = try reader["sensitive"].readIfPresent() ?? true + return value } } -enum UpdateDataSourceOutputError { +extension DataZoneClientTypes.RowFilter { - static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) - if let error = baseError.customError() { return error } - if let error = try httpServiceError(baseError: baseError) { return error } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) - case "ValidationException": return try ValidationException.makeError(baseError: baseError) - default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + static func write(value: DataZoneClientTypes.RowFilter?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + switch value { + case let .and(and): + try writer["and"].writeList(and, memberWritingClosure: DataZoneClientTypes.RowFilter.write(value:to:), memberNodeInfo: "member", isFlattened: false) + case let .expression(expression): + try writer["expression"].write(expression, with: DataZoneClientTypes.RowFilterExpression.write(value:to:)) + case let .or(or): + try writer["or"].writeList(or, memberWritingClosure: DataZoneClientTypes.RowFilter.write(value:to:), memberNodeInfo: "member", isFlattened: false) + case let .sdkUnknown(sdkUnknown): + try writer["sdkUnknown"].write(sdkUnknown) } } -} - -enum UpdateDomainOutputError { - static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) - if let error = baseError.customError() { return error } - if let error = try httpServiceError(baseError: baseError) { return error } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) - case "ValidationException": return try ValidationException.makeError(baseError: baseError) - default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.RowFilter { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name + switch name { + case "expression": + return .expression(try reader["expression"].read(with: DataZoneClientTypes.RowFilterExpression.read(from:))) + case "and": + return .and(try reader["and"].readList(memberReadingClosure: DataZoneClientTypes.RowFilter.read(from:), memberNodeInfo: "member", isFlattened: false)) + case "or": + return .or(try reader["or"].readList(memberReadingClosure: DataZoneClientTypes.RowFilter.read(from:), memberNodeInfo: "member", isFlattened: false)) + default: + return .sdkUnknown(name ?? "") } } } -enum UpdateEnvironmentOutputError { +extension DataZoneClientTypes.RowFilterExpression { - static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) - if let error = baseError.customError() { return error } - if let error = try httpServiceError(baseError: baseError) { return error } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) - case "ValidationException": return try ValidationException.makeError(baseError: baseError) - default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + static func write(value: DataZoneClientTypes.RowFilterExpression?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + switch value { + case let .equalto(equalto): + try writer["equalTo"].write(equalto, with: DataZoneClientTypes.EqualToExpression.write(value:to:)) + case let .greaterthan(greaterthan): + try writer["greaterThan"].write(greaterthan, with: DataZoneClientTypes.GreaterThanExpression.write(value:to:)) + case let .greaterthanorequalto(greaterthanorequalto): + try writer["greaterThanOrEqualTo"].write(greaterthanorequalto, with: DataZoneClientTypes.GreaterThanOrEqualToExpression.write(value:to:)) + case let .`in`(`in`): + try writer["in"].write(`in`, with: DataZoneClientTypes.InExpression.write(value:to:)) + case let .isnotnull(isnotnull): + try writer["isNotNull"].write(isnotnull, with: DataZoneClientTypes.IsNotNullExpression.write(value:to:)) + case let .isnull(isnull): + try writer["isNull"].write(isnull, with: DataZoneClientTypes.IsNullExpression.write(value:to:)) + case let .lessthan(lessthan): + try writer["lessThan"].write(lessthan, with: DataZoneClientTypes.LessThanExpression.write(value:to:)) + case let .lessthanorequalto(lessthanorequalto): + try writer["lessThanOrEqualTo"].write(lessthanorequalto, with: DataZoneClientTypes.LessThanOrEqualToExpression.write(value:to:)) + case let .like(like): + try writer["like"].write(like, with: DataZoneClientTypes.LikeExpression.write(value:to:)) + case let .notequalto(notequalto): + try writer["notEqualTo"].write(notequalto, with: DataZoneClientTypes.NotEqualToExpression.write(value:to:)) + case let .notin(notin): + try writer["notIn"].write(notin, with: DataZoneClientTypes.NotInExpression.write(value:to:)) + case let .notlike(notlike): + try writer["notLike"].write(notlike, with: DataZoneClientTypes.NotLikeExpression.write(value:to:)) + case let .sdkUnknown(sdkUnknown): + try writer["sdkUnknown"].write(sdkUnknown) } } -} - -enum UpdateEnvironmentActionOutputError { - static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) - if let error = baseError.customError() { return error } - if let error = try httpServiceError(baseError: baseError) { return error } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) - case "ValidationException": return try ValidationException.makeError(baseError: baseError) - default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.RowFilterExpression { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name + switch name { + case "equalTo": + return .equalto(try reader["equalTo"].read(with: DataZoneClientTypes.EqualToExpression.read(from:))) + case "notEqualTo": + return .notequalto(try reader["notEqualTo"].read(with: DataZoneClientTypes.NotEqualToExpression.read(from:))) + case "greaterThan": + return .greaterthan(try reader["greaterThan"].read(with: DataZoneClientTypes.GreaterThanExpression.read(from:))) + case "lessThan": + return .lessthan(try reader["lessThan"].read(with: DataZoneClientTypes.LessThanExpression.read(from:))) + case "greaterThanOrEqualTo": + return .greaterthanorequalto(try reader["greaterThanOrEqualTo"].read(with: DataZoneClientTypes.GreaterThanOrEqualToExpression.read(from:))) + case "lessThanOrEqualTo": + return .lessthanorequalto(try reader["lessThanOrEqualTo"].read(with: DataZoneClientTypes.LessThanOrEqualToExpression.read(from:))) + case "isNull": + return .isnull(try reader["isNull"].read(with: DataZoneClientTypes.IsNullExpression.read(from:))) + case "isNotNull": + return .isnotnull(try reader["isNotNull"].read(with: DataZoneClientTypes.IsNotNullExpression.read(from:))) + case "in": + return .`in`(try reader["in"].read(with: DataZoneClientTypes.InExpression.read(from:))) + case "notIn": + return .notin(try reader["notIn"].read(with: DataZoneClientTypes.NotInExpression.read(from:))) + case "like": + return .like(try reader["like"].read(with: DataZoneClientTypes.LikeExpression.read(from:))) + case "notLike": + return .notlike(try reader["notLike"].read(with: DataZoneClientTypes.NotLikeExpression.read(from:))) + default: + return .sdkUnknown(name ?? "") } } } -enum UpdateEnvironmentProfileOutputError { +extension DataZoneClientTypes.NotLikeExpression { - static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) - if let error = baseError.customError() { return error } - if let error = try httpServiceError(baseError: baseError) { return error } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) - case "ValidationException": return try ValidationException.makeError(baseError: baseError) - default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) - } + static func write(value: DataZoneClientTypes.NotLikeExpression?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["columnName"].write(value.columnName) + try writer["value"].write(value.value) } -} - -enum UpdateGlossaryOutputError { - static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) - if let error = baseError.customError() { return error } - if let error = try httpServiceError(baseError: baseError) { return error } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) - case "ValidationException": return try ValidationException.makeError(baseError: baseError) - default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) - } + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.NotLikeExpression { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.NotLikeExpression() + value.columnName = try reader["columnName"].readIfPresent() + value.value = try reader["value"].readIfPresent() + return value } } -enum UpdateGlossaryTermOutputError { +extension DataZoneClientTypes.LikeExpression { - static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) - if let error = baseError.customError() { return error } - if let error = try httpServiceError(baseError: baseError) { return error } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) - case "ValidationException": return try ValidationException.makeError(baseError: baseError) - default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) - } + static func write(value: DataZoneClientTypes.LikeExpression?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["columnName"].write(value.columnName) + try writer["value"].write(value.value) + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.LikeExpression { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.LikeExpression() + value.columnName = try reader["columnName"].readIfPresent() + value.value = try reader["value"].readIfPresent() + return value } } -enum UpdateGroupProfileOutputError { +extension DataZoneClientTypes.NotInExpression { - static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) - if let error = baseError.customError() { return error } - if let error = try httpServiceError(baseError: baseError) { return error } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ValidationException": return try ValidationException.makeError(baseError: baseError) - default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) - } + static func write(value: DataZoneClientTypes.NotInExpression?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["columnName"].write(value.columnName) + try writer["values"].writeList(value.values, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.NotInExpression { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.NotInExpression() + value.columnName = try reader["columnName"].readIfPresent() + value.values = try reader["values"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + return value } } -enum UpdateProjectOutputError { +extension DataZoneClientTypes.InExpression { - static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) - if let error = baseError.customError() { return error } - if let error = try httpServiceError(baseError: baseError) { return error } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ServiceQuotaExceededException": return try ServiceQuotaExceededException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) - case "ValidationException": return try ValidationException.makeError(baseError: baseError) - default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) - } + static func write(value: DataZoneClientTypes.InExpression?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["columnName"].write(value.columnName) + try writer["values"].writeList(value.values, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.InExpression { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.InExpression() + value.columnName = try reader["columnName"].readIfPresent() + value.values = try reader["values"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + return value } } -enum UpdateSubscriptionGrantStatusOutputError { +extension DataZoneClientTypes.IsNotNullExpression { - static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) - if let error = baseError.customError() { return error } - if let error = try httpServiceError(baseError: baseError) { return error } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) - case "ValidationException": return try ValidationException.makeError(baseError: baseError) - default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) - } + static func write(value: DataZoneClientTypes.IsNotNullExpression?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["columnName"].write(value.columnName) } -} - -enum UpdateSubscriptionRequestOutputError { - static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) - if let error = baseError.customError() { return error } - if let error = try httpServiceError(baseError: baseError) { return error } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) - case "ValidationException": return try ValidationException.makeError(baseError: baseError) - default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) - } + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.IsNotNullExpression { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.IsNotNullExpression() + value.columnName = try reader["columnName"].readIfPresent() + return value } } -enum UpdateSubscriptionTargetOutputError { +extension DataZoneClientTypes.IsNullExpression { - static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) - if let error = baseError.customError() { return error } - if let error = try httpServiceError(baseError: baseError) { return error } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ThrottlingException": return try ThrottlingException.makeError(baseError: baseError) - case "ValidationException": return try ValidationException.makeError(baseError: baseError) - default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) - } + static func write(value: DataZoneClientTypes.IsNullExpression?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["columnName"].write(value.columnName) + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.IsNullExpression { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.IsNullExpression() + value.columnName = try reader["columnName"].readIfPresent() + return value } } -enum UpdateUserProfileOutputError { +extension DataZoneClientTypes.LessThanOrEqualToExpression { - static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let baseError = try AWSClientRuntime.RestJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) - if let error = baseError.customError() { return error } - if let error = try httpServiceError(baseError: baseError) { return error } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) - case "ResourceNotFoundException": return try ResourceNotFoundException.makeError(baseError: baseError) - case "ValidationException": return try ValidationException.makeError(baseError: baseError) - default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) - } + static func write(value: DataZoneClientTypes.LessThanOrEqualToExpression?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["columnName"].write(value.columnName) + try writer["value"].write(value.value) + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.LessThanOrEqualToExpression { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.LessThanOrEqualToExpression() + value.columnName = try reader["columnName"].readIfPresent() + value.value = try reader["value"].readIfPresent() + return value } } -extension InternalServerException { +extension DataZoneClientTypes.GreaterThanOrEqualToExpression { - static func makeError(baseError: AWSClientRuntime.RestJSONError) throws -> InternalServerException { - let reader = baseError.errorBodyReader - var value = InternalServerException() - value.properties.message = try reader["message"].readIfPresent() - value.httpResponse = baseError.httpResponse - value.requestID = baseError.requestID - value.message = baseError.message + static func write(value: DataZoneClientTypes.GreaterThanOrEqualToExpression?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["columnName"].write(value.columnName) + try writer["value"].write(value.value) + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.GreaterThanOrEqualToExpression { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.GreaterThanOrEqualToExpression() + value.columnName = try reader["columnName"].readIfPresent() + value.value = try reader["value"].readIfPresent() return value } } -extension AccessDeniedException { +extension DataZoneClientTypes.LessThanExpression { - static func makeError(baseError: AWSClientRuntime.RestJSONError) throws -> AccessDeniedException { - let reader = baseError.errorBodyReader - var value = AccessDeniedException() - value.properties.message = try reader["message"].readIfPresent() - value.httpResponse = baseError.httpResponse - value.requestID = baseError.requestID - value.message = baseError.message + static func write(value: DataZoneClientTypes.LessThanExpression?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["columnName"].write(value.columnName) + try writer["value"].write(value.value) + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.LessThanExpression { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.LessThanExpression() + value.columnName = try reader["columnName"].readIfPresent() + value.value = try reader["value"].readIfPresent() return value } } -extension ResourceNotFoundException { +extension DataZoneClientTypes.GreaterThanExpression { - static func makeError(baseError: AWSClientRuntime.RestJSONError) throws -> ResourceNotFoundException { - let reader = baseError.errorBodyReader - var value = ResourceNotFoundException() - value.properties.message = try reader["message"].readIfPresent() - value.httpResponse = baseError.httpResponse - value.requestID = baseError.requestID - value.message = baseError.message + static func write(value: DataZoneClientTypes.GreaterThanExpression?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["columnName"].write(value.columnName) + try writer["value"].write(value.value) + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.GreaterThanExpression { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.GreaterThanExpression() + value.columnName = try reader["columnName"].readIfPresent() + value.value = try reader["value"].readIfPresent() return value } } -extension ThrottlingException { +extension DataZoneClientTypes.NotEqualToExpression { - static func makeError(baseError: AWSClientRuntime.RestJSONError) throws -> ThrottlingException { - let reader = baseError.errorBodyReader - var value = ThrottlingException() - value.properties.message = try reader["message"].readIfPresent() - value.httpResponse = baseError.httpResponse - value.requestID = baseError.requestID - value.message = baseError.message + static func write(value: DataZoneClientTypes.NotEqualToExpression?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["columnName"].write(value.columnName) + try writer["value"].write(value.value) + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.NotEqualToExpression { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.NotEqualToExpression() + value.columnName = try reader["columnName"].readIfPresent() + value.value = try reader["value"].readIfPresent() return value } } -extension ValidationException { +extension DataZoneClientTypes.EqualToExpression { - static func makeError(baseError: AWSClientRuntime.RestJSONError) throws -> ValidationException { - let reader = baseError.errorBodyReader - var value = ValidationException() - value.properties.message = try reader["message"].readIfPresent() - value.httpResponse = baseError.httpResponse - value.requestID = baseError.requestID - value.message = baseError.message + static func write(value: DataZoneClientTypes.EqualToExpression?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["columnName"].write(value.columnName) + try writer["value"].write(value.value) + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.EqualToExpression { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.EqualToExpression() + value.columnName = try reader["columnName"].readIfPresent() + value.value = try reader["value"].readIfPresent() return value } } -extension ConflictException { +extension DataZoneClientTypes.ColumnFilterConfiguration { - static func makeError(baseError: AWSClientRuntime.RestJSONError) throws -> ConflictException { - let reader = baseError.errorBodyReader - var value = ConflictException() - value.properties.message = try reader["message"].readIfPresent() - value.httpResponse = baseError.httpResponse - value.requestID = baseError.requestID - value.message = baseError.message + static func write(value: DataZoneClientTypes.ColumnFilterConfiguration?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["includedColumnNames"].writeList(value.includedColumnNames, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.ColumnFilterConfiguration { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.ColumnFilterConfiguration() + value.includedColumnNames = try reader["includedColumnNames"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) return value } } -extension ServiceQuotaExceededException { +extension DataZoneClientTypes.FormEntryOutput { - static func makeError(baseError: AWSClientRuntime.RestJSONError) throws -> ServiceQuotaExceededException { - let reader = baseError.errorBodyReader - var value = ServiceQuotaExceededException() - value.properties.message = try reader["message"].readIfPresent() - value.httpResponse = baseError.httpResponse - value.requestID = baseError.requestID - value.message = baseError.message + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.FormEntryOutput { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.FormEntryOutput() + value.typeName = try reader["typeName"].readIfPresent() + value.typeRevision = try reader["typeRevision"].readIfPresent() + value.`required` = try reader["required"].readIfPresent() return value } } -extension UnauthorizedException { +extension DataZoneClientTypes.DataProductItem { - static func makeError(baseError: AWSClientRuntime.RestJSONError) throws -> UnauthorizedException { - let reader = baseError.errorBodyReader - var value = UnauthorizedException() - value.properties.message = try reader["message"].readIfPresent() - value.httpResponse = baseError.httpResponse - value.requestID = baseError.requestID - value.message = baseError.message + static func write(value: DataZoneClientTypes.DataProductItem?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["glossaryTerms"].writeList(value.glossaryTerms, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["identifier"].write(value.identifier) + try writer["itemType"].write(value.itemType) + try writer["revision"].write(value.revision) + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DataProductItem { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.DataProductItem() + value.itemType = try reader["itemType"].readIfPresent() + value.identifier = try reader["identifier"].readIfPresent() + value.revision = try reader["revision"].readIfPresent() + value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) return value } } -extension DataZoneClientTypes.SubscribedPrincipal { +extension DataZoneClientTypes.DataSourceConfigurationOutput { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.SubscribedPrincipal { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DataSourceConfigurationOutput { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name switch name { - case "project": - return .project(try reader["project"].read(with: DataZoneClientTypes.SubscribedProject.read(from:))) + case "glueRunConfiguration": + return .gluerunconfiguration(try reader["glueRunConfiguration"].read(with: DataZoneClientTypes.GlueRunConfigurationOutput.read(from:))) + case "redshiftRunConfiguration": + return .redshiftrunconfiguration(try reader["redshiftRunConfiguration"].read(with: DataZoneClientTypes.RedshiftRunConfigurationOutput.read(from:))) default: return .sdkUnknown(name ?? "") } } } -extension DataZoneClientTypes.SubscribedProject { +extension DataZoneClientTypes.RedshiftRunConfigurationOutput { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.SubscribedProject { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.RedshiftRunConfigurationOutput { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.SubscribedProject() - value.id = try reader["id"].readIfPresent() - value.name = try reader["name"].readIfPresent() + var value = DataZoneClientTypes.RedshiftRunConfigurationOutput() + value.accountId = try reader["accountId"].readIfPresent() + value.region = try reader["region"].readIfPresent() + value.dataAccessRole = try reader["dataAccessRole"].readIfPresent() + value.relationalFilterConfigurations = try reader["relationalFilterConfigurations"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.RelationalFilterConfiguration.read(from:), memberNodeInfo: "member", isFlattened: false) + value.redshiftCredentialConfiguration = try reader["redshiftCredentialConfiguration"].readIfPresent(with: DataZoneClientTypes.RedshiftCredentialConfiguration.read(from:)) + value.redshiftStorage = try reader["redshiftStorage"].readIfPresent(with: DataZoneClientTypes.RedshiftStorage.read(from:)) return value } } -extension DataZoneClientTypes.SubscribedListing { +extension DataZoneClientTypes.RedshiftStorage { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.SubscribedListing { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.SubscribedListing() - value.id = try reader["id"].readIfPresent() - value.revision = try reader["revision"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.description = try reader["description"].readIfPresent() - value.item = try reader["item"].readIfPresent(with: DataZoneClientTypes.SubscribedListingItem.read(from:)) - value.ownerProjectId = try reader["ownerProjectId"].readIfPresent() - value.ownerProjectName = try reader["ownerProjectName"].readIfPresent() - return value + static func write(value: DataZoneClientTypes.RedshiftStorage?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + switch value { + case let .redshiftclustersource(redshiftclustersource): + try writer["redshiftClusterSource"].write(redshiftclustersource, with: DataZoneClientTypes.RedshiftClusterStorage.write(value:to:)) + case let .redshiftserverlesssource(redshiftserverlesssource): + try writer["redshiftServerlessSource"].write(redshiftserverlesssource, with: DataZoneClientTypes.RedshiftServerlessStorage.write(value:to:)) + case let .sdkUnknown(sdkUnknown): + try writer["sdkUnknown"].write(sdkUnknown) + } } -} - -extension DataZoneClientTypes.SubscribedListingItem { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.SubscribedListingItem { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.RedshiftStorage { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name switch name { - case "assetListing": - return .assetlisting(try reader["assetListing"].read(with: DataZoneClientTypes.SubscribedAssetListing.read(from:))) - case "productListing": - return .productlisting(try reader["productListing"].read(with: DataZoneClientTypes.SubscribedProductListing.read(from:))) + case "redshiftClusterSource": + return .redshiftclustersource(try reader["redshiftClusterSource"].read(with: DataZoneClientTypes.RedshiftClusterStorage.read(from:))) + case "redshiftServerlessSource": + return .redshiftserverlesssource(try reader["redshiftServerlessSource"].read(with: DataZoneClientTypes.RedshiftServerlessStorage.read(from:))) default: return .sdkUnknown(name ?? "") } } } -extension DataZoneClientTypes.SubscribedProductListing { +extension DataZoneClientTypes.RedshiftServerlessStorage { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.SubscribedProductListing { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.SubscribedProductListing() - value.entityId = try reader["entityId"].readIfPresent() - value.entityRevision = try reader["entityRevision"].readIfPresent() - value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DetailedGlossaryTerm.read(from:), memberNodeInfo: "member", isFlattened: false) - value.name = try reader["name"].readIfPresent() - value.description = try reader["description"].readIfPresent() - value.assetListings = try reader["assetListings"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.AssetInDataProductListingItem.read(from:), memberNodeInfo: "member", isFlattened: false) - return value + static func write(value: DataZoneClientTypes.RedshiftServerlessStorage?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["workgroupName"].write(value.workgroupName) } -} - -extension DataZoneClientTypes.AssetInDataProductListingItem { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.AssetInDataProductListingItem { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.RedshiftServerlessStorage { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.AssetInDataProductListingItem() - value.entityId = try reader["entityId"].readIfPresent() - value.entityRevision = try reader["entityRevision"].readIfPresent() - value.entityType = try reader["entityType"].readIfPresent() + var value = DataZoneClientTypes.RedshiftServerlessStorage() + value.workgroupName = try reader["workgroupName"].readIfPresent() return value } } -extension DataZoneClientTypes.DetailedGlossaryTerm { +extension DataZoneClientTypes.RedshiftClusterStorage { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DetailedGlossaryTerm { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.DetailedGlossaryTerm() - value.name = try reader["name"].readIfPresent() - value.shortDescription = try reader["shortDescription"].readIfPresent() - return value + static func write(value: DataZoneClientTypes.RedshiftClusterStorage?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["clusterName"].write(value.clusterName) } -} -extension DataZoneClientTypes.SubscribedAssetListing { - - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.SubscribedAssetListing { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.RedshiftClusterStorage { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.SubscribedAssetListing() - value.entityId = try reader["entityId"].readIfPresent() - value.entityRevision = try reader["entityRevision"].readIfPresent() - value.entityType = try reader["entityType"].readIfPresent() - value.forms = try reader["forms"].readIfPresent() - value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DetailedGlossaryTerm.read(from:), memberNodeInfo: "member", isFlattened: false) + var value = DataZoneClientTypes.RedshiftClusterStorage() + value.clusterName = try reader["clusterName"].readIfPresent() return value } } -extension DataZoneClientTypes.AssetListingDetails { +extension DataZoneClientTypes.RedshiftCredentialConfiguration { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.AssetListingDetails { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.AssetListingDetails() - value.listingId = try reader["listingId"].readIfPresent() - value.listingStatus = try reader["listingStatus"].readIfPresent() - return value + static func write(value: DataZoneClientTypes.RedshiftCredentialConfiguration?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["secretManagerArn"].write(value.secretManagerArn) } -} -extension DataZoneClientTypes.FormOutput { - - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.FormOutput { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.RedshiftCredentialConfiguration { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.FormOutput() - value.formName = try reader["formName"].readIfPresent() - value.typeName = try reader["typeName"].readIfPresent() - value.typeRevision = try reader["typeRevision"].readIfPresent() - value.content = try reader["content"].readIfPresent() + var value = DataZoneClientTypes.RedshiftCredentialConfiguration() + value.secretManagerArn = try reader["secretManagerArn"].readIfPresent() return value } } -extension DataZoneClientTypes.TimeSeriesDataPointSummaryFormOutput { +extension DataZoneClientTypes.RelationalFilterConfiguration { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.TimeSeriesDataPointSummaryFormOutput { + static func write(value: DataZoneClientTypes.RelationalFilterConfiguration?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["databaseName"].write(value.databaseName) + try writer["filterExpressions"].writeList(value.filterExpressions, memberWritingClosure: DataZoneClientTypes.FilterExpression.write(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["schemaName"].write(value.schemaName) + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.RelationalFilterConfiguration { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.TimeSeriesDataPointSummaryFormOutput() - value.formName = try reader["formName"].readIfPresent() - value.typeIdentifier = try reader["typeIdentifier"].readIfPresent() - value.typeRevision = try reader["typeRevision"].readIfPresent() - value.timestamp = try reader["timestamp"].readTimestampIfPresent(format: .epochSeconds) - value.contentSummary = try reader["contentSummary"].readIfPresent() - value.id = try reader["id"].readIfPresent() + var value = DataZoneClientTypes.RelationalFilterConfiguration() + value.databaseName = try reader["databaseName"].readIfPresent() + value.schemaName = try reader["schemaName"].readIfPresent() + value.filterExpressions = try reader["filterExpressions"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.FilterExpression.read(from:), memberNodeInfo: "member", isFlattened: false) return value } } -extension DataZoneClientTypes.PredictionConfiguration { +extension DataZoneClientTypes.FilterExpression { - static func write(value: DataZoneClientTypes.PredictionConfiguration?, to writer: SmithyJSON.Writer) throws { + static func write(value: DataZoneClientTypes.FilterExpression?, to writer: SmithyJSON.Writer) throws { guard let value else { return } - try writer["businessNameGeneration"].write(value.businessNameGeneration, with: DataZoneClientTypes.BusinessNameGenerationConfiguration.write(value:to:)) + try writer["expression"].write(value.expression) + try writer["type"].write(value.type) } - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.PredictionConfiguration { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.FilterExpression { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.PredictionConfiguration() - value.businessNameGeneration = try reader["businessNameGeneration"].readIfPresent(with: DataZoneClientTypes.BusinessNameGenerationConfiguration.read(from:)) + var value = DataZoneClientTypes.FilterExpression() + value.type = try reader["type"].readIfPresent() + value.expression = try reader["expression"].readIfPresent() return value } } -extension DataZoneClientTypes.BusinessNameGenerationConfiguration { - - static func write(value: DataZoneClientTypes.BusinessNameGenerationConfiguration?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["enabled"].write(value.enabled) - } +extension DataZoneClientTypes.GlueRunConfigurationOutput { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.BusinessNameGenerationConfiguration { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.GlueRunConfigurationOutput { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.BusinessNameGenerationConfiguration() - value.enabled = try reader["enabled"].readIfPresent() + var value = DataZoneClientTypes.GlueRunConfigurationOutput() + value.accountId = try reader["accountId"].readIfPresent() + value.region = try reader["region"].readIfPresent() + value.dataAccessRole = try reader["dataAccessRole"].readIfPresent() + value.relationalFilterConfigurations = try reader["relationalFilterConfigurations"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.RelationalFilterConfiguration.read(from:), memberNodeInfo: "member", isFlattened: false) + value.autoImportDataQualityResult = try reader["autoImportDataQualityResult"].readIfPresent() return value } } -extension DataZoneClientTypes.AssetFilterConfiguration { +extension DataZoneClientTypes.RecommendationConfiguration { - static func write(value: DataZoneClientTypes.AssetFilterConfiguration?, to writer: SmithyJSON.Writer) throws { + static func write(value: DataZoneClientTypes.RecommendationConfiguration?, to writer: SmithyJSON.Writer) throws { guard let value else { return } - switch value { - case let .columnconfiguration(columnconfiguration): - try writer["columnConfiguration"].write(columnconfiguration, with: DataZoneClientTypes.ColumnFilterConfiguration.write(value:to:)) - case let .rowconfiguration(rowconfiguration): - try writer["rowConfiguration"].write(rowconfiguration, with: DataZoneClientTypes.RowFilterConfiguration.write(value:to:)) - case let .sdkUnknown(sdkUnknown): - try writer["sdkUnknown"].write(sdkUnknown) - } + try writer["enableBusinessNameGeneration"].write(value.enableBusinessNameGeneration) } - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.AssetFilterConfiguration { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.RecommendationConfiguration { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name - switch name { - case "columnConfiguration": - return .columnconfiguration(try reader["columnConfiguration"].read(with: DataZoneClientTypes.ColumnFilterConfiguration.read(from:))) - case "rowConfiguration": - return .rowconfiguration(try reader["rowConfiguration"].read(with: DataZoneClientTypes.RowFilterConfiguration.read(from:))) - default: - return .sdkUnknown(name ?? "") - } + var value = DataZoneClientTypes.RecommendationConfiguration() + value.enableBusinessNameGeneration = try reader["enableBusinessNameGeneration"].readIfPresent() + return value } } -extension DataZoneClientTypes.RowFilterConfiguration { +extension DataZoneClientTypes.ScheduleConfiguration { - static func write(value: DataZoneClientTypes.RowFilterConfiguration?, to writer: SmithyJSON.Writer) throws { + static func write(value: DataZoneClientTypes.ScheduleConfiguration?, to writer: SmithyJSON.Writer) throws { guard let value else { return } - try writer["rowFilter"].write(value.rowFilter, with: DataZoneClientTypes.RowFilter.write(value:to:)) - try writer["sensitive"].write(value.sensitive) + try writer["schedule"].write(value.schedule) + try writer["timezone"].write(value.timezone) } - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.RowFilterConfiguration { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.ScheduleConfiguration { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.RowFilterConfiguration() - value.rowFilter = try reader["rowFilter"].readIfPresent(with: DataZoneClientTypes.RowFilter.read(from:)) - value.sensitive = try reader["sensitive"].readIfPresent() ?? true + var value = DataZoneClientTypes.ScheduleConfiguration() + value.timezone = try reader["timezone"].readIfPresent() + value.schedule = try reader["schedule"].readIfPresent() return value } } -extension DataZoneClientTypes.RowFilter { - - static func write(value: DataZoneClientTypes.RowFilter?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - switch value { - case let .and(and): - try writer["and"].writeList(and, memberWritingClosure: DataZoneClientTypes.RowFilter.write(value:to:), memberNodeInfo: "member", isFlattened: false) - case let .expression(expression): - try writer["expression"].write(expression, with: DataZoneClientTypes.RowFilterExpression.write(value:to:)) - case let .or(or): - try writer["or"].writeList(or, memberWritingClosure: DataZoneClientTypes.RowFilter.write(value:to:), memberNodeInfo: "member", isFlattened: false) - case let .sdkUnknown(sdkUnknown): - try writer["sdkUnknown"].write(sdkUnknown) - } - } - - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.RowFilter { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name - switch name { - case "expression": - return .expression(try reader["expression"].read(with: DataZoneClientTypes.RowFilterExpression.read(from:))) - case "and": - return .and(try reader["and"].readList(memberReadingClosure: DataZoneClientTypes.RowFilter.read(from:), memberNodeInfo: "member", isFlattened: false)) - case "or": - return .or(try reader["or"].readList(memberReadingClosure: DataZoneClientTypes.RowFilter.read(from:), memberNodeInfo: "member", isFlattened: false)) - default: - return .sdkUnknown(name ?? "") - } +extension DataZoneClientTypes.DataSourceErrorMessage { + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DataSourceErrorMessage { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.DataSourceErrorMessage() + value.errorType = try reader["errorType"].readIfPresent() + value.errorDetail = try reader["errorDetail"].readIfPresent() + return value } } -extension DataZoneClientTypes.RowFilterExpression { +extension DataZoneClientTypes.SingleSignOn { - static func write(value: DataZoneClientTypes.RowFilterExpression?, to writer: SmithyJSON.Writer) throws { + static func write(value: DataZoneClientTypes.SingleSignOn?, to writer: SmithyJSON.Writer) throws { guard let value else { return } - switch value { - case let .equalto(equalto): - try writer["equalTo"].write(equalto, with: DataZoneClientTypes.EqualToExpression.write(value:to:)) - case let .greaterthan(greaterthan): - try writer["greaterThan"].write(greaterthan, with: DataZoneClientTypes.GreaterThanExpression.write(value:to:)) - case let .greaterthanorequalto(greaterthanorequalto): - try writer["greaterThanOrEqualTo"].write(greaterthanorequalto, with: DataZoneClientTypes.GreaterThanOrEqualToExpression.write(value:to:)) - case let .`in`(`in`): - try writer["in"].write(`in`, with: DataZoneClientTypes.InExpression.write(value:to:)) - case let .isnotnull(isnotnull): - try writer["isNotNull"].write(isnotnull, with: DataZoneClientTypes.IsNotNullExpression.write(value:to:)) - case let .isnull(isnull): - try writer["isNull"].write(isnull, with: DataZoneClientTypes.IsNullExpression.write(value:to:)) - case let .lessthan(lessthan): - try writer["lessThan"].write(lessthan, with: DataZoneClientTypes.LessThanExpression.write(value:to:)) - case let .lessthanorequalto(lessthanorequalto): - try writer["lessThanOrEqualTo"].write(lessthanorequalto, with: DataZoneClientTypes.LessThanOrEqualToExpression.write(value:to:)) - case let .like(like): - try writer["like"].write(like, with: DataZoneClientTypes.LikeExpression.write(value:to:)) - case let .notequalto(notequalto): - try writer["notEqualTo"].write(notequalto, with: DataZoneClientTypes.NotEqualToExpression.write(value:to:)) - case let .notin(notin): - try writer["notIn"].write(notin, with: DataZoneClientTypes.NotInExpression.write(value:to:)) - case let .notlike(notlike): - try writer["notLike"].write(notlike, with: DataZoneClientTypes.NotLikeExpression.write(value:to:)) - case let .sdkUnknown(sdkUnknown): - try writer["sdkUnknown"].write(sdkUnknown) - } + try writer["type"].write(value.type) + try writer["userAssignment"].write(value.userAssignment) } - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.RowFilterExpression { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.SingleSignOn { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.SingleSignOn() + value.type = try reader["type"].readIfPresent() + value.userAssignment = try reader["userAssignment"].readIfPresent() + return value + } +} + +extension DataZoneClientTypes.DomainUnitOwnerProperties { + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DomainUnitOwnerProperties { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name switch name { - case "equalTo": - return .equalto(try reader["equalTo"].read(with: DataZoneClientTypes.EqualToExpression.read(from:))) - case "notEqualTo": - return .notequalto(try reader["notEqualTo"].read(with: DataZoneClientTypes.NotEqualToExpression.read(from:))) - case "greaterThan": - return .greaterthan(try reader["greaterThan"].read(with: DataZoneClientTypes.GreaterThanExpression.read(from:))) - case "lessThan": - return .lessthan(try reader["lessThan"].read(with: DataZoneClientTypes.LessThanExpression.read(from:))) - case "greaterThanOrEqualTo": - return .greaterthanorequalto(try reader["greaterThanOrEqualTo"].read(with: DataZoneClientTypes.GreaterThanOrEqualToExpression.read(from:))) - case "lessThanOrEqualTo": - return .lessthanorequalto(try reader["lessThanOrEqualTo"].read(with: DataZoneClientTypes.LessThanOrEqualToExpression.read(from:))) - case "isNull": - return .isnull(try reader["isNull"].read(with: DataZoneClientTypes.IsNullExpression.read(from:))) - case "isNotNull": - return .isnotnull(try reader["isNotNull"].read(with: DataZoneClientTypes.IsNotNullExpression.read(from:))) - case "in": - return .`in`(try reader["in"].read(with: DataZoneClientTypes.InExpression.read(from:))) - case "notIn": - return .notin(try reader["notIn"].read(with: DataZoneClientTypes.NotInExpression.read(from:))) - case "like": - return .like(try reader["like"].read(with: DataZoneClientTypes.LikeExpression.read(from:))) - case "notLike": - return .notlike(try reader["notLike"].read(with: DataZoneClientTypes.NotLikeExpression.read(from:))) + case "user": + return .user(try reader["user"].read(with: DataZoneClientTypes.DomainUnitUserProperties.read(from:))) + case "group": + return .group(try reader["group"].read(with: DataZoneClientTypes.DomainUnitGroupProperties.read(from:))) default: return .sdkUnknown(name ?? "") } } } -extension DataZoneClientTypes.NotLikeExpression { - - static func write(value: DataZoneClientTypes.NotLikeExpression?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["columnName"].write(value.columnName) - try writer["value"].write(value.value) - } +extension DataZoneClientTypes.DomainUnitGroupProperties { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.NotLikeExpression { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DomainUnitGroupProperties { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.NotLikeExpression() - value.columnName = try reader["columnName"].readIfPresent() - value.value = try reader["value"].readIfPresent() + var value = DataZoneClientTypes.DomainUnitGroupProperties() + value.groupId = try reader["groupId"].readIfPresent() return value } } -extension DataZoneClientTypes.LikeExpression { +extension DataZoneClientTypes.DomainUnitUserProperties { - static func write(value: DataZoneClientTypes.LikeExpression?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["columnName"].write(value.columnName) - try writer["value"].write(value.value) + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DomainUnitUserProperties { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.DomainUnitUserProperties() + value.userId = try reader["userId"].readIfPresent() + return value } +} - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.LikeExpression { +extension DataZoneClientTypes.Resource { + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.Resource { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.LikeExpression() - value.columnName = try reader["columnName"].readIfPresent() + var value = DataZoneClientTypes.Resource() + value.provider = try reader["provider"].readIfPresent() + value.name = try reader["name"].readIfPresent() value.value = try reader["value"].readIfPresent() + value.type = try reader["type"].readIfPresent() return value } } -extension DataZoneClientTypes.NotInExpression { - - static func write(value: DataZoneClientTypes.NotInExpression?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["columnName"].write(value.columnName) - try writer["values"].writeList(value.values, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) - } +extension DataZoneClientTypes.ConfigurableEnvironmentAction { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.NotInExpression { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.ConfigurableEnvironmentAction { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.NotInExpression() - value.columnName = try reader["columnName"].readIfPresent() - value.values = try reader["values"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + var value = DataZoneClientTypes.ConfigurableEnvironmentAction() + value.type = try reader["type"].readIfPresent() + value.auth = try reader["auth"].readIfPresent() + value.parameters = try reader["parameters"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.ConfigurableActionParameter.read(from:), memberNodeInfo: "member", isFlattened: false) return value } } -extension DataZoneClientTypes.InExpression { +extension DataZoneClientTypes.ConfigurableActionParameter { - static func write(value: DataZoneClientTypes.InExpression?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["columnName"].write(value.columnName) - try writer["values"].writeList(value.values, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.ConfigurableActionParameter { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.ConfigurableActionParameter() + value.key = try reader["key"].readIfPresent() + value.value = try reader["value"].readIfPresent() + return value } +} - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.InExpression { +extension DataZoneClientTypes.CustomParameter { + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.CustomParameter { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.InExpression() - value.columnName = try reader["columnName"].readIfPresent() - value.values = try reader["values"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + var value = DataZoneClientTypes.CustomParameter() + value.keyName = try reader["keyName"].readIfPresent() + value.description = try reader["description"].readIfPresent() + value.fieldType = try reader["fieldType"].readIfPresent() + value.defaultValue = try reader["defaultValue"].readIfPresent() + value.isEditable = try reader["isEditable"].readIfPresent() + value.isOptional = try reader["isOptional"].readIfPresent() return value } } -extension DataZoneClientTypes.IsNotNullExpression { +extension DataZoneClientTypes.Deployment { - static func write(value: DataZoneClientTypes.IsNotNullExpression?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["columnName"].write(value.columnName) + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.Deployment { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.Deployment() + value.deploymentId = try reader["deploymentId"].readIfPresent() + value.deploymentType = try reader["deploymentType"].readIfPresent() + value.deploymentStatus = try reader["deploymentStatus"].readIfPresent() + value.failureReason = try reader["failureReason"].readIfPresent(with: DataZoneClientTypes.EnvironmentError.read(from:)) + value.messages = try reader["messages"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + value.isDeploymentComplete = try reader["isDeploymentComplete"].readIfPresent() + return value } +} - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.IsNotNullExpression { +extension DataZoneClientTypes.EnvironmentError { + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.EnvironmentError { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.IsNotNullExpression() - value.columnName = try reader["columnName"].readIfPresent() + var value = DataZoneClientTypes.EnvironmentError() + value.code = try reader["code"].readIfPresent() + value.message = try reader["message"].readIfPresent() return value } } -extension DataZoneClientTypes.IsNullExpression { +extension DataZoneClientTypes.ProvisioningProperties { - static func write(value: DataZoneClientTypes.IsNullExpression?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["columnName"].write(value.columnName) + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.ProvisioningProperties { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name + switch name { + case "cloudFormation": + return .cloudformation(try reader["cloudFormation"].read(with: DataZoneClientTypes.CloudFormationProperties.read(from:))) + default: + return .sdkUnknown(name ?? "") + } } +} - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.IsNullExpression { +extension DataZoneClientTypes.CloudFormationProperties { + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.CloudFormationProperties { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.IsNullExpression() - value.columnName = try reader["columnName"].readIfPresent() + var value = DataZoneClientTypes.CloudFormationProperties() + value.templateUrl = try reader["templateUrl"].readIfPresent() return value } } -extension DataZoneClientTypes.LessThanOrEqualToExpression { - - static func write(value: DataZoneClientTypes.LessThanOrEqualToExpression?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["columnName"].write(value.columnName) - try writer["value"].write(value.value) - } +extension DataZoneClientTypes.DeploymentProperties { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.LessThanOrEqualToExpression { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DeploymentProperties { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.LessThanOrEqualToExpression() - value.columnName = try reader["columnName"].readIfPresent() - value.value = try reader["value"].readIfPresent() + var value = DataZoneClientTypes.DeploymentProperties() + value.startTimeoutMinutes = try reader["startTimeoutMinutes"].readIfPresent() + value.endTimeoutMinutes = try reader["endTimeoutMinutes"].readIfPresent() return value } } -extension DataZoneClientTypes.GreaterThanOrEqualToExpression { +extension DataZoneClientTypes.ActionParameters { - static func write(value: DataZoneClientTypes.GreaterThanOrEqualToExpression?, to writer: SmithyJSON.Writer) throws { + static func write(value: DataZoneClientTypes.ActionParameters?, to writer: SmithyJSON.Writer) throws { guard let value else { return } - try writer["columnName"].write(value.columnName) - try writer["value"].write(value.value) + switch value { + case let .awsconsolelink(awsconsolelink): + try writer["awsConsoleLink"].write(awsconsolelink, with: DataZoneClientTypes.AwsConsoleLinkParameters.write(value:to:)) + case let .sdkUnknown(sdkUnknown): + try writer["sdkUnknown"].write(sdkUnknown) + } } - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.GreaterThanOrEqualToExpression { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.ActionParameters { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.GreaterThanOrEqualToExpression() - value.columnName = try reader["columnName"].readIfPresent() - value.value = try reader["value"].readIfPresent() - return value + let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name + switch name { + case "awsConsoleLink": + return .awsconsolelink(try reader["awsConsoleLink"].read(with: DataZoneClientTypes.AwsConsoleLinkParameters.read(from:))) + default: + return .sdkUnknown(name ?? "") + } } } -extension DataZoneClientTypes.LessThanExpression { +extension DataZoneClientTypes.AwsConsoleLinkParameters { - static func write(value: DataZoneClientTypes.LessThanExpression?, to writer: SmithyJSON.Writer) throws { + static func write(value: DataZoneClientTypes.AwsConsoleLinkParameters?, to writer: SmithyJSON.Writer) throws { guard let value else { return } - try writer["columnName"].write(value.columnName) - try writer["value"].write(value.value) + try writer["uri"].write(value.uri) } - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.LessThanExpression { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.AwsConsoleLinkParameters { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.LessThanExpression() - value.columnName = try reader["columnName"].readIfPresent() - value.value = try reader["value"].readIfPresent() + var value = DataZoneClientTypes.AwsConsoleLinkParameters() + value.uri = try reader["uri"].readIfPresent() return value } } -extension DataZoneClientTypes.GreaterThanExpression { +extension DataZoneClientTypes.TermRelations { - static func write(value: DataZoneClientTypes.GreaterThanExpression?, to writer: SmithyJSON.Writer) throws { + static func write(value: DataZoneClientTypes.TermRelations?, to writer: SmithyJSON.Writer) throws { guard let value else { return } - try writer["columnName"].write(value.columnName) - try writer["value"].write(value.value) + try writer["classifies"].writeList(value.classifies, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["isA"].writeList(value.isa, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) } - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.GreaterThanExpression { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.TermRelations { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.GreaterThanExpression() - value.columnName = try reader["columnName"].readIfPresent() - value.value = try reader["value"].readIfPresent() + var value = DataZoneClientTypes.TermRelations() + value.isa = try reader["isA"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + value.classifies = try reader["classifies"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) return value } } -extension DataZoneClientTypes.NotEqualToExpression { - - static func write(value: DataZoneClientTypes.NotEqualToExpression?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["columnName"].write(value.columnName) - try writer["value"].write(value.value) - } +extension DataZoneClientTypes.ProjectDeletionError { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.NotEqualToExpression { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.ProjectDeletionError { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.NotEqualToExpression() - value.columnName = try reader["columnName"].readIfPresent() - value.value = try reader["value"].readIfPresent() + var value = DataZoneClientTypes.ProjectDeletionError() + value.code = try reader["code"].readIfPresent() + value.message = try reader["message"].readIfPresent() return value } } -extension DataZoneClientTypes.EqualToExpression { +extension DataZoneClientTypes.GrantedEntity { - static func write(value: DataZoneClientTypes.EqualToExpression?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["columnName"].write(value.columnName) - try writer["value"].write(value.value) + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.GrantedEntity { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name + switch name { + case "listing": + return .listing(try reader["listing"].read(with: DataZoneClientTypes.ListingRevision.read(from:))) + default: + return .sdkUnknown(name ?? "") + } } +} - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.EqualToExpression { +extension DataZoneClientTypes.ListingRevision { + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.ListingRevision { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.EqualToExpression() - value.columnName = try reader["columnName"].readIfPresent() - value.value = try reader["value"].readIfPresent() + var value = DataZoneClientTypes.ListingRevision() + value.id = try reader["id"].readIfPresent() + value.revision = try reader["revision"].readIfPresent() return value } } -extension DataZoneClientTypes.ColumnFilterConfiguration { - - static func write(value: DataZoneClientTypes.ColumnFilterConfiguration?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["includedColumnNames"].writeList(value.includedColumnNames, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) - } +extension DataZoneClientTypes.SubscribedAsset { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.ColumnFilterConfiguration { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.SubscribedAsset { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.ColumnFilterConfiguration() - value.includedColumnNames = try reader["includedColumnNames"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + var value = DataZoneClientTypes.SubscribedAsset() + value.assetId = try reader["assetId"].readIfPresent() + value.assetRevision = try reader["assetRevision"].readIfPresent() + value.status = try reader["status"].readIfPresent() + value.targetName = try reader["targetName"].readIfPresent() + value.failureCause = try reader["failureCause"].readIfPresent(with: DataZoneClientTypes.FailureCause.read(from:)) + value.grantedTimestamp = try reader["grantedTimestamp"].readTimestampIfPresent(format: .epochSeconds) + value.failureTimestamp = try reader["failureTimestamp"].readTimestampIfPresent(format: .epochSeconds) return value } } -extension DataZoneClientTypes.FormEntryOutput { +extension DataZoneClientTypes.FailureCause { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.FormEntryOutput { + static func write(value: DataZoneClientTypes.FailureCause?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["message"].write(value.message) + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.FailureCause { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.FormEntryOutput() - value.typeName = try reader["typeName"].readIfPresent() - value.typeRevision = try reader["typeRevision"].readIfPresent() - value.`required` = try reader["required"].readIfPresent() + var value = DataZoneClientTypes.FailureCause() + value.message = try reader["message"].readIfPresent() return value } } -extension DataZoneClientTypes.DataProductItem { +extension DataZoneClientTypes.SubscriptionTargetForm { - static func write(value: DataZoneClientTypes.DataProductItem?, to writer: SmithyJSON.Writer) throws { + static func write(value: DataZoneClientTypes.SubscriptionTargetForm?, to writer: SmithyJSON.Writer) throws { guard let value else { return } - try writer["glossaryTerms"].writeList(value.glossaryTerms, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["identifier"].write(value.identifier) - try writer["itemType"].write(value.itemType) - try writer["revision"].write(value.revision) + try writer["content"].write(value.content) + try writer["formName"].write(value.formName) } - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DataProductItem { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.SubscriptionTargetForm { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.DataProductItem() - value.itemType = try reader["itemType"].readIfPresent() - value.identifier = try reader["identifier"].readIfPresent() - value.revision = try reader["revision"].readIfPresent() - value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + var value = DataZoneClientTypes.SubscriptionTargetForm() + value.formName = try reader["formName"].readIfPresent() + value.content = try reader["content"].readIfPresent() return value } } -extension DataZoneClientTypes.DataSourceConfigurationOutput { +extension DataZoneClientTypes.UserProfileDetails { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DataSourceConfigurationOutput { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.UserProfileDetails { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name switch name { - case "glueRunConfiguration": - return .gluerunconfiguration(try reader["glueRunConfiguration"].read(with: DataZoneClientTypes.GlueRunConfigurationOutput.read(from:))) - case "redshiftRunConfiguration": - return .redshiftrunconfiguration(try reader["redshiftRunConfiguration"].read(with: DataZoneClientTypes.RedshiftRunConfigurationOutput.read(from:))) + case "iam": + return .iam(try reader["iam"].read(with: DataZoneClientTypes.IamUserProfileDetails.read(from:))) + case "sso": + return .sso(try reader["sso"].read(with: DataZoneClientTypes.SsoUserProfileDetails.read(from:))) default: return .sdkUnknown(name ?? "") } } } -extension DataZoneClientTypes.RedshiftRunConfigurationOutput { +extension DataZoneClientTypes.SsoUserProfileDetails { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.RedshiftRunConfigurationOutput { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.SsoUserProfileDetails { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.RedshiftRunConfigurationOutput() - value.accountId = try reader["accountId"].readIfPresent() - value.region = try reader["region"].readIfPresent() - value.dataAccessRole = try reader["dataAccessRole"].readIfPresent() - value.relationalFilterConfigurations = try reader["relationalFilterConfigurations"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.RelationalFilterConfiguration.read(from:), memberNodeInfo: "member", isFlattened: false) - value.redshiftCredentialConfiguration = try reader["redshiftCredentialConfiguration"].readIfPresent(with: DataZoneClientTypes.RedshiftCredentialConfiguration.read(from:)) - value.redshiftStorage = try reader["redshiftStorage"].readIfPresent(with: DataZoneClientTypes.RedshiftStorage.read(from:)) + var value = DataZoneClientTypes.SsoUserProfileDetails() + value.username = try reader["username"].readIfPresent() + value.firstName = try reader["firstName"].readIfPresent() + value.lastName = try reader["lastName"].readIfPresent() return value } } -extension DataZoneClientTypes.RedshiftStorage { +extension DataZoneClientTypes.IamUserProfileDetails { - static func write(value: DataZoneClientTypes.RedshiftStorage?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - switch value { - case let .redshiftclustersource(redshiftclustersource): - try writer["redshiftClusterSource"].write(redshiftclustersource, with: DataZoneClientTypes.RedshiftClusterStorage.write(value:to:)) - case let .redshiftserverlesssource(redshiftserverlesssource): - try writer["redshiftServerlessSource"].write(redshiftserverlesssource, with: DataZoneClientTypes.RedshiftServerlessStorage.write(value:to:)) - case let .sdkUnknown(sdkUnknown): - try writer["sdkUnknown"].write(sdkUnknown) - } + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.IamUserProfileDetails { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.IamUserProfileDetails() + value.arn = try reader["arn"].readIfPresent() + return value } +} - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.RedshiftStorage { +extension DataZoneClientTypes.SelfGrantStatusOutput { + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.SelfGrantStatusOutput { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name switch name { - case "redshiftClusterSource": - return .redshiftclustersource(try reader["redshiftClusterSource"].read(with: DataZoneClientTypes.RedshiftClusterStorage.read(from:))) - case "redshiftServerlessSource": - return .redshiftserverlesssource(try reader["redshiftServerlessSource"].read(with: DataZoneClientTypes.RedshiftServerlessStorage.read(from:))) + case "glueSelfGrantStatus": + return .glueselfgrantstatus(try reader["glueSelfGrantStatus"].read(with: DataZoneClientTypes.GlueSelfGrantStatusOutput.read(from:))) + case "redshiftSelfGrantStatus": + return .redshiftselfgrantstatus(try reader["redshiftSelfGrantStatus"].read(with: DataZoneClientTypes.RedshiftSelfGrantStatusOutput.read(from:))) default: return .sdkUnknown(name ?? "") } } } -extension DataZoneClientTypes.RedshiftServerlessStorage { - - static func write(value: DataZoneClientTypes.RedshiftServerlessStorage?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["workgroupName"].write(value.workgroupName) - } +extension DataZoneClientTypes.RedshiftSelfGrantStatusOutput { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.RedshiftServerlessStorage { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.RedshiftSelfGrantStatusOutput { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.RedshiftServerlessStorage() - value.workgroupName = try reader["workgroupName"].readIfPresent() + var value = DataZoneClientTypes.RedshiftSelfGrantStatusOutput() + value.selfGrantStatusDetails = try reader["selfGrantStatusDetails"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SelfGrantStatusDetail.read(from:), memberNodeInfo: "member", isFlattened: false) return value } } -extension DataZoneClientTypes.RedshiftClusterStorage { - - static func write(value: DataZoneClientTypes.RedshiftClusterStorage?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["clusterName"].write(value.clusterName) - } +extension DataZoneClientTypes.SelfGrantStatusDetail { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.RedshiftClusterStorage { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.SelfGrantStatusDetail { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.RedshiftClusterStorage() - value.clusterName = try reader["clusterName"].readIfPresent() + var value = DataZoneClientTypes.SelfGrantStatusDetail() + value.databaseName = try reader["databaseName"].readIfPresent() + value.schemaName = try reader["schemaName"].readIfPresent() + value.status = try reader["status"].readIfPresent() + value.failureCause = try reader["failureCause"].readIfPresent() return value } } -extension DataZoneClientTypes.RedshiftCredentialConfiguration { - - static func write(value: DataZoneClientTypes.RedshiftCredentialConfiguration?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["secretManagerArn"].write(value.secretManagerArn) - } +extension DataZoneClientTypes.GlueSelfGrantStatusOutput { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.RedshiftCredentialConfiguration { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.GlueSelfGrantStatusOutput { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.RedshiftCredentialConfiguration() - value.secretManagerArn = try reader["secretManagerArn"].readIfPresent() + var value = DataZoneClientTypes.GlueSelfGrantStatusOutput() + value.selfGrantStatusDetails = try reader["selfGrantStatusDetails"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SelfGrantStatusDetail.read(from:), memberNodeInfo: "member", isFlattened: false) return value } } -extension DataZoneClientTypes.RelationalFilterConfiguration { - - static func write(value: DataZoneClientTypes.RelationalFilterConfiguration?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["databaseName"].write(value.databaseName) - try writer["filterExpressions"].writeList(value.filterExpressions, memberWritingClosure: DataZoneClientTypes.FilterExpression.write(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["schemaName"].write(value.schemaName) - } +extension DataZoneClientTypes.RunStatisticsForAssets { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.RelationalFilterConfiguration { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.RunStatisticsForAssets { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.RelationalFilterConfiguration() - value.databaseName = try reader["databaseName"].readIfPresent() - value.schemaName = try reader["schemaName"].readIfPresent() - value.filterExpressions = try reader["filterExpressions"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.FilterExpression.read(from:), memberNodeInfo: "member", isFlattened: false) + var value = DataZoneClientTypes.RunStatisticsForAssets() + value.added = try reader["added"].readIfPresent() + value.updated = try reader["updated"].readIfPresent() + value.unchanged = try reader["unchanged"].readIfPresent() + value.skipped = try reader["skipped"].readIfPresent() + value.failed = try reader["failed"].readIfPresent() return value } } -extension DataZoneClientTypes.FilterExpression { +extension DataZoneClientTypes.ProvisioningConfiguration { - static func write(value: DataZoneClientTypes.FilterExpression?, to writer: SmithyJSON.Writer) throws { + static func write(value: DataZoneClientTypes.ProvisioningConfiguration?, to writer: SmithyJSON.Writer) throws { guard let value else { return } - try writer["expression"].write(value.expression) - try writer["type"].write(value.type) - } - - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.FilterExpression { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.FilterExpression() - value.type = try reader["type"].readIfPresent() - value.expression = try reader["expression"].readIfPresent() - return value + switch value { + case let .lakeformationconfiguration(lakeformationconfiguration): + try writer["lakeFormationConfiguration"].write(lakeformationconfiguration, with: DataZoneClientTypes.LakeFormationConfiguration.write(value:to:)) + case let .sdkUnknown(sdkUnknown): + try writer["sdkUnknown"].write(sdkUnknown) + } } -} - -extension DataZoneClientTypes.GlueRunConfigurationOutput { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.GlueRunConfigurationOutput { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.ProvisioningConfiguration { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.GlueRunConfigurationOutput() - value.accountId = try reader["accountId"].readIfPresent() - value.region = try reader["region"].readIfPresent() - value.dataAccessRole = try reader["dataAccessRole"].readIfPresent() - value.relationalFilterConfigurations = try reader["relationalFilterConfigurations"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.RelationalFilterConfiguration.read(from:), memberNodeInfo: "member", isFlattened: false) - value.autoImportDataQualityResult = try reader["autoImportDataQualityResult"].readIfPresent() - return value + let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name + switch name { + case "lakeFormationConfiguration": + return .lakeformationconfiguration(try reader["lakeFormationConfiguration"].read(with: DataZoneClientTypes.LakeFormationConfiguration.read(from:))) + default: + return .sdkUnknown(name ?? "") + } } } -extension DataZoneClientTypes.RecommendationConfiguration { +extension DataZoneClientTypes.LakeFormationConfiguration { - static func write(value: DataZoneClientTypes.RecommendationConfiguration?, to writer: SmithyJSON.Writer) throws { + static func write(value: DataZoneClientTypes.LakeFormationConfiguration?, to writer: SmithyJSON.Writer) throws { guard let value else { return } - try writer["enableBusinessNameGeneration"].write(value.enableBusinessNameGeneration) + try writer["locationRegistrationExcludeS3Locations"].writeList(value.locationRegistrationExcludeS3Locations, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) + try writer["locationRegistrationRole"].write(value.locationRegistrationRole) } - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.RecommendationConfiguration { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.LakeFormationConfiguration { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.RecommendationConfiguration() - value.enableBusinessNameGeneration = try reader["enableBusinessNameGeneration"].readIfPresent() + var value = DataZoneClientTypes.LakeFormationConfiguration() + value.locationRegistrationRole = try reader["locationRegistrationRole"].readIfPresent() + value.locationRegistrationExcludeS3Locations = try reader["locationRegistrationExcludeS3Locations"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) return value } } -extension DataZoneClientTypes.ScheduleConfiguration { +extension DataZoneClientTypes.Model { - static func write(value: DataZoneClientTypes.ScheduleConfiguration?, to writer: SmithyJSON.Writer) throws { + static func write(value: DataZoneClientTypes.Model?, to writer: SmithyJSON.Writer) throws { guard let value else { return } - try writer["schedule"].write(value.schedule) - try writer["timezone"].write(value.timezone) + switch value { + case let .smithy(smithy): + try writer["smithy"].write(smithy) + case let .sdkUnknown(sdkUnknown): + try writer["sdkUnknown"].write(sdkUnknown) + } } - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.ScheduleConfiguration { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.Model { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.ScheduleConfiguration() - value.timezone = try reader["timezone"].readIfPresent() - value.schedule = try reader["schedule"].readIfPresent() - return value + let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name + switch name { + case "smithy": + return .smithy(try reader["smithy"].read()) + default: + return .sdkUnknown(name ?? "") + } } } -extension DataZoneClientTypes.DataSourceErrorMessage { +extension DataZoneClientTypes.Import { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DataSourceErrorMessage { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.Import { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.DataSourceErrorMessage() - value.errorType = try reader["errorType"].readIfPresent() - value.errorDetail = try reader["errorDetail"].readIfPresent() + var value = DataZoneClientTypes.Import() + value.name = try reader["name"].readIfPresent() + value.revision = try reader["revision"].readIfPresent() return value } } -extension DataZoneClientTypes.SingleSignOn { - - static func write(value: DataZoneClientTypes.SingleSignOn?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["type"].write(value.type) - try writer["userAssignment"].write(value.userAssignment) - } +extension DataZoneClientTypes.LineageNodeReference { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.SingleSignOn { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.LineageNodeReference { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.SingleSignOn() - value.type = try reader["type"].readIfPresent() - value.userAssignment = try reader["userAssignment"].readIfPresent() + var value = DataZoneClientTypes.LineageNodeReference() + value.id = try reader["id"].readIfPresent() + value.eventTimestamp = try reader["eventTimestamp"].readTimestampIfPresent(format: .epochSeconds) return value } } -extension DataZoneClientTypes.Resource { +extension DataZoneClientTypes.ListingItem { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.Resource { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.ListingItem { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.Resource() - value.provider = try reader["provider"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.value = try reader["value"].readIfPresent() - value.type = try reader["type"].readIfPresent() - return value + let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name + switch name { + case "assetListing": + return .assetlisting(try reader["assetListing"].read(with: DataZoneClientTypes.AssetListing.read(from:))) + case "dataProductListing": + return .dataproductlisting(try reader["dataProductListing"].read(with: DataZoneClientTypes.DataProductListing.read(from:))) + default: + return .sdkUnknown(name ?? "") + } } } -extension DataZoneClientTypes.ConfigurableEnvironmentAction { +extension DataZoneClientTypes.DataProductListing { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.ConfigurableEnvironmentAction { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DataProductListing { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.ConfigurableEnvironmentAction() - value.type = try reader["type"].readIfPresent() - value.auth = try reader["auth"].readIfPresent() - value.parameters = try reader["parameters"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.ConfigurableActionParameter.read(from:), memberNodeInfo: "member", isFlattened: false) + var value = DataZoneClientTypes.DataProductListing() + value.dataProductId = try reader["dataProductId"].readIfPresent() + value.dataProductRevision = try reader["dataProductRevision"].readIfPresent() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.forms = try reader["forms"].readIfPresent() + value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DetailedGlossaryTerm.read(from:), memberNodeInfo: "member", isFlattened: false) + value.owningProjectId = try reader["owningProjectId"].readIfPresent() + value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.ListingSummary.read(from:), memberNodeInfo: "member", isFlattened: false) return value } } -extension DataZoneClientTypes.ConfigurableActionParameter { +extension DataZoneClientTypes.ListingSummary { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.ConfigurableActionParameter { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.ListingSummary { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.ConfigurableActionParameter() - value.key = try reader["key"].readIfPresent() - value.value = try reader["value"].readIfPresent() + var value = DataZoneClientTypes.ListingSummary() + value.listingId = try reader["listingId"].readIfPresent() + value.listingRevision = try reader["listingRevision"].readIfPresent() + value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DetailedGlossaryTerm.read(from:), memberNodeInfo: "member", isFlattened: false) return value } } -extension DataZoneClientTypes.CustomParameter { +extension DataZoneClientTypes.AssetListing { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.CustomParameter { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.AssetListing { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.CustomParameter() - value.keyName = try reader["keyName"].readIfPresent() - value.description = try reader["description"].readIfPresent() - value.fieldType = try reader["fieldType"].readIfPresent() - value.defaultValue = try reader["defaultValue"].readIfPresent() - value.isEditable = try reader["isEditable"].readIfPresent() - value.isOptional = try reader["isOptional"].readIfPresent() + var value = DataZoneClientTypes.AssetListing() + value.assetId = try reader["assetId"].readIfPresent() + value.assetRevision = try reader["assetRevision"].readIfPresent() + value.assetType = try reader["assetType"].readIfPresent() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.forms = try reader["forms"].readIfPresent() + value.latestTimeSeriesDataPointForms = try reader["latestTimeSeriesDataPointForms"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.TimeSeriesDataPointSummaryFormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) + value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DetailedGlossaryTerm.read(from:), memberNodeInfo: "member", isFlattened: false) + value.owningProjectId = try reader["owningProjectId"].readIfPresent() return value } } -extension DataZoneClientTypes.Deployment { +extension DataZoneClientTypes.MetadataGenerationRunTarget { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.Deployment { + static func write(value: DataZoneClientTypes.MetadataGenerationRunTarget?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["identifier"].write(value.identifier) + try writer["revision"].write(value.revision) + try writer["type"].write(value.type) + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.MetadataGenerationRunTarget { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.Deployment() - value.deploymentId = try reader["deploymentId"].readIfPresent() - value.deploymentType = try reader["deploymentType"].readIfPresent() - value.deploymentStatus = try reader["deploymentStatus"].readIfPresent() - value.failureReason = try reader["failureReason"].readIfPresent(with: DataZoneClientTypes.EnvironmentError.read(from:)) - value.messages = try reader["messages"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.isDeploymentComplete = try reader["isDeploymentComplete"].readIfPresent() + var value = DataZoneClientTypes.MetadataGenerationRunTarget() + value.type = try reader["type"].readIfPresent() + value.identifier = try reader["identifier"].readIfPresent() + value.revision = try reader["revision"].readIfPresent() return value } } -extension DataZoneClientTypes.EnvironmentError { +extension DataZoneClientTypes.TimeSeriesDataPointFormOutput { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.EnvironmentError { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.TimeSeriesDataPointFormOutput { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.EnvironmentError() - value.code = try reader["code"].readIfPresent() - value.message = try reader["message"].readIfPresent() + var value = DataZoneClientTypes.TimeSeriesDataPointFormOutput() + value.formName = try reader["formName"].readIfPresent() + value.typeIdentifier = try reader["typeIdentifier"].readIfPresent() + value.typeRevision = try reader["typeRevision"].readIfPresent() + value.timestamp = try reader["timestamp"].readTimestampIfPresent(format: .epochSeconds) + value.content = try reader["content"].readIfPresent() + value.id = try reader["id"].readIfPresent() return value } } -extension DataZoneClientTypes.ProvisioningProperties { +extension DataZoneClientTypes.AssetFilterSummary { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.ProvisioningProperties { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.AssetFilterSummary { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name - switch name { - case "cloudFormation": - return .cloudformation(try reader["cloudFormation"].read(with: DataZoneClientTypes.CloudFormationProperties.read(from:))) - default: - return .sdkUnknown(name ?? "") - } + var value = DataZoneClientTypes.AssetFilterSummary() + value.id = try reader["id"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.assetId = try reader["assetId"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.description = try reader["description"].readIfPresent() + value.status = try reader["status"].readIfPresent() + value.effectiveColumnNames = try reader["effectiveColumnNames"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + value.effectiveRowFilter = try reader["effectiveRowFilter"].readIfPresent() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.errorMessage = try reader["errorMessage"].readIfPresent() + return value } } -extension DataZoneClientTypes.CloudFormationProperties { +extension DataZoneClientTypes.AssetRevision { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.CloudFormationProperties { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.AssetRevision { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.CloudFormationProperties() - value.templateUrl = try reader["templateUrl"].readIfPresent() + var value = DataZoneClientTypes.AssetRevision() + value.domainId = try reader["domainId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.revision = try reader["revision"].readIfPresent() + value.createdBy = try reader["createdBy"].readIfPresent() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) return value } } -extension DataZoneClientTypes.DeploymentProperties { +extension DataZoneClientTypes.DataProductRevision { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DeploymentProperties { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DataProductRevision { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.DeploymentProperties() - value.startTimeoutMinutes = try reader["startTimeoutMinutes"].readIfPresent() - value.endTimeoutMinutes = try reader["endTimeoutMinutes"].readIfPresent() + var value = DataZoneClientTypes.DataProductRevision() + value.domainId = try reader["domainId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.revision = try reader["revision"].readIfPresent() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() return value } } -extension DataZoneClientTypes.ActionParameters { - - static func write(value: DataZoneClientTypes.ActionParameters?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - switch value { - case let .awsconsolelink(awsconsolelink): - try writer["awsConsoleLink"].write(awsconsolelink, with: DataZoneClientTypes.AwsConsoleLinkParameters.write(value:to:)) - case let .sdkUnknown(sdkUnknown): - try writer["sdkUnknown"].write(sdkUnknown) - } - } +extension DataZoneClientTypes.DataSourceRunActivity { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.ActionParameters { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DataSourceRunActivity { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name - switch name { - case "awsConsoleLink": - return .awsconsolelink(try reader["awsConsoleLink"].read(with: DataZoneClientTypes.AwsConsoleLinkParameters.read(from:))) - default: - return .sdkUnknown(name ?? "") - } + var value = DataZoneClientTypes.DataSourceRunActivity() + value.database = try reader["database"].readIfPresent() + value.dataSourceRunId = try reader["dataSourceRunId"].readIfPresent() + value.technicalName = try reader["technicalName"].readIfPresent() + value.dataAssetStatus = try reader["dataAssetStatus"].readIfPresent() + value.projectId = try reader["projectId"].readIfPresent() + value.dataAssetId = try reader["dataAssetId"].readIfPresent() + value.technicalDescription = try reader["technicalDescription"].readIfPresent() + value.errorMessage = try reader["errorMessage"].readIfPresent(with: DataZoneClientTypes.DataSourceErrorMessage.read(from:)) + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) + return value } } -extension DataZoneClientTypes.AwsConsoleLinkParameters { - - static func write(value: DataZoneClientTypes.AwsConsoleLinkParameters?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["uri"].write(value.uri) - } +extension DataZoneClientTypes.DataSourceRunSummary { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.AwsConsoleLinkParameters { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DataSourceRunSummary { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.AwsConsoleLinkParameters() - value.uri = try reader["uri"].readIfPresent() + var value = DataZoneClientTypes.DataSourceRunSummary() + value.id = try reader["id"].readIfPresent() + value.dataSourceId = try reader["dataSourceId"].readIfPresent() + value.type = try reader["type"].readIfPresent() + value.status = try reader["status"].readIfPresent() + value.projectId = try reader["projectId"].readIfPresent() + value.runStatisticsForAssets = try reader["runStatisticsForAssets"].readIfPresent(with: DataZoneClientTypes.RunStatisticsForAssets.read(from:)) + value.errorMessage = try reader["errorMessage"].readIfPresent(with: DataZoneClientTypes.DataSourceErrorMessage.read(from:)) + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) + value.startedAt = try reader["startedAt"].readTimestampIfPresent(format: .dateTime) + value.stoppedAt = try reader["stoppedAt"].readTimestampIfPresent(format: .dateTime) return value } } -extension DataZoneClientTypes.TermRelations { +extension DataZoneClientTypes.DataSourceSummary { - static func write(value: DataZoneClientTypes.TermRelations?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["classifies"].writeList(value.classifies, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["isA"].writeList(value.isa, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DataSourceSummary { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.DataSourceSummary() + value.domainId = try reader["domainId"].readIfPresent() + value.environmentId = try reader["environmentId"].readIfPresent() + value.dataSourceId = try reader["dataSourceId"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.type = try reader["type"].readIfPresent() + value.status = try reader["status"].readIfPresent() + value.enableSetting = try reader["enableSetting"].readIfPresent() + value.schedule = try reader["schedule"].readIfPresent(with: DataZoneClientTypes.ScheduleConfiguration.read(from:)) + value.lastRunStatus = try reader["lastRunStatus"].readIfPresent() + value.lastRunAt = try reader["lastRunAt"].readTimestampIfPresent(format: .dateTime) + value.lastRunErrorMessage = try reader["lastRunErrorMessage"].readIfPresent(with: DataZoneClientTypes.DataSourceErrorMessage.read(from:)) + value.lastRunAssetCount = try reader["lastRunAssetCount"].readIfPresent() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) + return value } +} - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.TermRelations { +extension DataZoneClientTypes.DomainSummary { + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DomainSummary { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.TermRelations() - value.isa = try reader["isA"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.classifies = try reader["classifies"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + var value = DataZoneClientTypes.DomainSummary() + value.id = try reader["id"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.description = try reader["description"].readIfPresent() + value.arn = try reader["arn"].readIfPresent() + value.managedAccountId = try reader["managedAccountId"].readIfPresent() + value.status = try reader["status"].readIfPresent() + value.portalUrl = try reader["portalUrl"].readIfPresent() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.lastUpdatedAt = try reader["lastUpdatedAt"].readTimestampIfPresent(format: .epochSeconds) return value } } -extension DataZoneClientTypes.ProjectDeletionError { +extension DataZoneClientTypes.DomainUnitSummary { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.ProjectDeletionError { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DomainUnitSummary { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.ProjectDeletionError() - value.code = try reader["code"].readIfPresent() - value.message = try reader["message"].readIfPresent() + var value = DataZoneClientTypes.DomainUnitSummary() + value.name = try reader["name"].readIfPresent() + value.id = try reader["id"].readIfPresent() return value } } -extension DataZoneClientTypes.GrantedEntity { +extension DataZoneClientTypes.OwnerPropertiesOutput { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.GrantedEntity { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.OwnerPropertiesOutput { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name switch name { - case "listing": - return .listing(try reader["listing"].read(with: DataZoneClientTypes.ListingRevision.read(from:))) + case "user": + return .user(try reader["user"].read(with: DataZoneClientTypes.OwnerUserPropertiesOutput.read(from:))) + case "group": + return .group(try reader["group"].read(with: DataZoneClientTypes.OwnerGroupPropertiesOutput.read(from:))) default: return .sdkUnknown(name ?? "") } } } -extension DataZoneClientTypes.ListingRevision { +extension DataZoneClientTypes.OwnerGroupPropertiesOutput { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.ListingRevision { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.OwnerGroupPropertiesOutput { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.ListingRevision() - value.id = try reader["id"].readIfPresent() - value.revision = try reader["revision"].readIfPresent() + var value = DataZoneClientTypes.OwnerGroupPropertiesOutput() + value.groupId = try reader["groupId"].readIfPresent() return value } } -extension DataZoneClientTypes.SubscribedAsset { +extension DataZoneClientTypes.OwnerUserPropertiesOutput { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.SubscribedAsset { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.OwnerUserPropertiesOutput { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.SubscribedAsset() - value.assetId = try reader["assetId"].readIfPresent() - value.assetRevision = try reader["assetRevision"].readIfPresent() - value.status = try reader["status"].readIfPresent() - value.targetName = try reader["targetName"].readIfPresent() - value.failureCause = try reader["failureCause"].readIfPresent(with: DataZoneClientTypes.FailureCause.read(from:)) - value.grantedTimestamp = try reader["grantedTimestamp"].readTimestampIfPresent(format: .epochSeconds) - value.failureTimestamp = try reader["failureTimestamp"].readTimestampIfPresent(format: .epochSeconds) + var value = DataZoneClientTypes.OwnerUserPropertiesOutput() + value.userId = try reader["userId"].readIfPresent() return value } } -extension DataZoneClientTypes.FailureCause { - - static func write(value: DataZoneClientTypes.FailureCause?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["message"].write(value.message) - } +extension DataZoneClientTypes.EnvironmentActionSummary { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.FailureCause { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.EnvironmentActionSummary { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.FailureCause() - value.message = try reader["message"].readIfPresent() + var value = DataZoneClientTypes.EnvironmentActionSummary() + value.domainId = try reader["domainId"].readIfPresent() + value.environmentId = try reader["environmentId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.parameters = try reader["parameters"].readIfPresent(with: DataZoneClientTypes.ActionParameters.read(from:)) + value.description = try reader["description"].readIfPresent() return value } } -extension DataZoneClientTypes.SubscriptionTargetForm { - - static func write(value: DataZoneClientTypes.SubscriptionTargetForm?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["content"].write(value.content) - try writer["formName"].write(value.formName) - } +extension DataZoneClientTypes.EnvironmentBlueprintConfigurationItem { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.SubscriptionTargetForm { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.EnvironmentBlueprintConfigurationItem { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.SubscriptionTargetForm() - value.formName = try reader["formName"].readIfPresent() - value.content = try reader["content"].readIfPresent() + var value = DataZoneClientTypes.EnvironmentBlueprintConfigurationItem() + value.domainId = try reader["domainId"].readIfPresent() + value.environmentBlueprintId = try reader["environmentBlueprintId"].readIfPresent() + value.provisioningRoleArn = try reader["provisioningRoleArn"].readIfPresent() + value.manageAccessRoleArn = try reader["manageAccessRoleArn"].readIfPresent() + value.enabledRegions = try reader["enabledRegions"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + value.regionalParameters = try reader["regionalParameters"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.mapReadingClosure(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) + value.provisioningConfigurations = try reader["provisioningConfigurations"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.ProvisioningConfiguration.read(from:), memberNodeInfo: "member", isFlattened: false) return value } } -extension DataZoneClientTypes.UserProfileDetails { - - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.UserProfileDetails { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name - switch name { - case "iam": - return .iam(try reader["iam"].read(with: DataZoneClientTypes.IamUserProfileDetails.read(from:))) - case "sso": - return .sso(try reader["sso"].read(with: DataZoneClientTypes.SsoUserProfileDetails.read(from:))) - default: - return .sdkUnknown(name ?? "") - } - } -} - -extension DataZoneClientTypes.SsoUserProfileDetails { +extension DataZoneClientTypes.EnvironmentBlueprintSummary { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.SsoUserProfileDetails { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.EnvironmentBlueprintSummary { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.SsoUserProfileDetails() - value.username = try reader["username"].readIfPresent() - value.firstName = try reader["firstName"].readIfPresent() - value.lastName = try reader["lastName"].readIfPresent() + var value = DataZoneClientTypes.EnvironmentBlueprintSummary() + value.id = try reader["id"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.description = try reader["description"].readIfPresent() + value.provider = try reader["provider"].readIfPresent() + value.provisioningProperties = try reader["provisioningProperties"].readIfPresent(with: DataZoneClientTypes.ProvisioningProperties.read(from:)) + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) return value } } -extension DataZoneClientTypes.IamUserProfileDetails { +extension DataZoneClientTypes.EnvironmentProfileSummary { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.IamUserProfileDetails { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.EnvironmentProfileSummary { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.IamUserProfileDetails() - value.arn = try reader["arn"].readIfPresent() + var value = DataZoneClientTypes.EnvironmentProfileSummary() + value.id = try reader["id"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.awsAccountId = try reader["awsAccountId"].readIfPresent() + value.awsAccountRegion = try reader["awsAccountRegion"].readIfPresent() + value.createdBy = try reader["createdBy"].readIfPresent() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) + value.name = try reader["name"].readIfPresent() + value.description = try reader["description"].readIfPresent() + value.environmentBlueprintId = try reader["environmentBlueprintId"].readIfPresent() + value.projectId = try reader["projectId"].readIfPresent() return value } } -extension DataZoneClientTypes.SelfGrantStatusOutput { +extension DataZoneClientTypes.EnvironmentSummary { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.SelfGrantStatusOutput { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.EnvironmentSummary { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name - switch name { - case "glueSelfGrantStatus": - return .glueselfgrantstatus(try reader["glueSelfGrantStatus"].read(with: DataZoneClientTypes.GlueSelfGrantStatusOutput.read(from:))) - case "redshiftSelfGrantStatus": - return .redshiftselfgrantstatus(try reader["redshiftSelfGrantStatus"].read(with: DataZoneClientTypes.RedshiftSelfGrantStatusOutput.read(from:))) - default: - return .sdkUnknown(name ?? "") - } + var value = DataZoneClientTypes.EnvironmentSummary() + value.projectId = try reader["projectId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.domainId = try reader["domainId"].readIfPresent() + value.createdBy = try reader["createdBy"].readIfPresent() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) + value.name = try reader["name"].readIfPresent() + value.description = try reader["description"].readIfPresent() + value.environmentProfileId = try reader["environmentProfileId"].readIfPresent() ?? "" + value.awsAccountId = try reader["awsAccountId"].readIfPresent() + value.awsAccountRegion = try reader["awsAccountRegion"].readIfPresent() + value.provider = try reader["provider"].readIfPresent() + value.status = try reader["status"].readIfPresent() + return value } } -extension DataZoneClientTypes.RedshiftSelfGrantStatusOutput { +extension DataZoneClientTypes.LineageNodeSummary { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.RedshiftSelfGrantStatusOutput { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.LineageNodeSummary { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.RedshiftSelfGrantStatusOutput() - value.selfGrantStatusDetails = try reader["selfGrantStatusDetails"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SelfGrantStatusDetail.read(from:), memberNodeInfo: "member", isFlattened: false) + var value = DataZoneClientTypes.LineageNodeSummary() + value.domainId = try reader["domainId"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.description = try reader["description"].readIfPresent() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() + value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) + value.updatedBy = try reader["updatedBy"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.typeName = try reader["typeName"].readIfPresent() + value.typeRevision = try reader["typeRevision"].readIfPresent() + value.sourceIdentifier = try reader["sourceIdentifier"].readIfPresent() + value.eventTimestamp = try reader["eventTimestamp"].readTimestampIfPresent(format: .epochSeconds) return value } } -extension DataZoneClientTypes.SelfGrantStatusDetail { +extension DataZoneClientTypes.MetadataGenerationRunItem { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.SelfGrantStatusDetail { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.MetadataGenerationRunItem { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.SelfGrantStatusDetail() - value.databaseName = try reader["databaseName"].readIfPresent() - value.schemaName = try reader["schemaName"].readIfPresent() + var value = DataZoneClientTypes.MetadataGenerationRunItem() + value.domainId = try reader["domainId"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.target = try reader["target"].readIfPresent(with: DataZoneClientTypes.MetadataGenerationRunTarget.read(from:)) value.status = try reader["status"].readIfPresent() - value.failureCause = try reader["failureCause"].readIfPresent() + value.type = try reader["type"].readIfPresent() + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() + value.owningProjectId = try reader["owningProjectId"].readIfPresent() return value } } -extension DataZoneClientTypes.GlueSelfGrantStatusOutput { +extension DataZoneClientTypes.NotificationOutput { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.GlueSelfGrantStatusOutput { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.NotificationOutput { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.GlueSelfGrantStatusOutput() - value.selfGrantStatusDetails = try reader["selfGrantStatusDetails"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.SelfGrantStatusDetail.read(from:), memberNodeInfo: "member", isFlattened: false) + var value = DataZoneClientTypes.NotificationOutput() + value.identifier = try reader["identifier"].readIfPresent() + value.domainIdentifier = try reader["domainIdentifier"].readIfPresent() + value.type = try reader["type"].readIfPresent() + value.topic = try reader["topic"].readIfPresent(with: DataZoneClientTypes.Topic.read(from:)) + value.title = try reader["title"].readIfPresent() + value.message = try reader["message"].readIfPresent() + value.status = try reader["status"].readIfPresent() + value.actionLink = try reader["actionLink"].readIfPresent() + value.creationTimestamp = try reader["creationTimestamp"].readTimestampIfPresent(format: .epochSeconds) + value.lastUpdatedTimestamp = try reader["lastUpdatedTimestamp"].readTimestampIfPresent(format: .epochSeconds) + value.metadata = try reader["metadata"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) return value } } -extension DataZoneClientTypes.RunStatisticsForAssets { +extension DataZoneClientTypes.Topic { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.RunStatisticsForAssets { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.Topic { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.RunStatisticsForAssets() - value.added = try reader["added"].readIfPresent() - value.updated = try reader["updated"].readIfPresent() - value.unchanged = try reader["unchanged"].readIfPresent() - value.skipped = try reader["skipped"].readIfPresent() - value.failed = try reader["failed"].readIfPresent() + var value = DataZoneClientTypes.Topic() + value.subject = try reader["subject"].readIfPresent() + value.resource = try reader["resource"].readIfPresent(with: DataZoneClientTypes.NotificationResource.read(from:)) + value.role = try reader["role"].readIfPresent() return value } } -extension DataZoneClientTypes.ProvisioningConfiguration { - - static func write(value: DataZoneClientTypes.ProvisioningConfiguration?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - switch value { - case let .lakeformationconfiguration(lakeformationconfiguration): - try writer["lakeFormationConfiguration"].write(lakeformationconfiguration, with: DataZoneClientTypes.LakeFormationConfiguration.write(value:to:)) - case let .sdkUnknown(sdkUnknown): - try writer["sdkUnknown"].write(sdkUnknown) - } - } +extension DataZoneClientTypes.NotificationResource { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.ProvisioningConfiguration { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.NotificationResource { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name - switch name { - case "lakeFormationConfiguration": - return .lakeformationconfiguration(try reader["lakeFormationConfiguration"].read(with: DataZoneClientTypes.LakeFormationConfiguration.read(from:))) - default: - return .sdkUnknown(name ?? "") - } + var value = DataZoneClientTypes.NotificationResource() + value.type = try reader["type"].readIfPresent() + value.id = try reader["id"].readIfPresent() + value.name = try reader["name"].readIfPresent() + return value } } -extension DataZoneClientTypes.LakeFormationConfiguration { - - static func write(value: DataZoneClientTypes.LakeFormationConfiguration?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["locationRegistrationExcludeS3Locations"].writeList(value.locationRegistrationExcludeS3Locations, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["locationRegistrationRole"].write(value.locationRegistrationRole) - } +extension DataZoneClientTypes.PolicyGrantMember { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.LakeFormationConfiguration { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.PolicyGrantMember { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.LakeFormationConfiguration() - value.locationRegistrationRole = try reader["locationRegistrationRole"].readIfPresent() - value.locationRegistrationExcludeS3Locations = try reader["locationRegistrationExcludeS3Locations"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) + var value = DataZoneClientTypes.PolicyGrantMember() + value.principal = try reader["principal"].readIfPresent(with: DataZoneClientTypes.PolicyGrantPrincipal.read(from:)) + value.detail = try reader["detail"].readIfPresent(with: DataZoneClientTypes.PolicyGrantDetail.read(from:)) + value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) + value.createdBy = try reader["createdBy"].readIfPresent() return value } } -extension DataZoneClientTypes.Model { +extension DataZoneClientTypes.PolicyGrantDetail { - static func write(value: DataZoneClientTypes.Model?, to writer: SmithyJSON.Writer) throws { + static func write(value: DataZoneClientTypes.PolicyGrantDetail?, to writer: SmithyJSON.Writer) throws { guard let value else { return } switch value { - case let .smithy(smithy): - try writer["smithy"].write(smithy) + case let .addtoprojectmemberpool(addtoprojectmemberpool): + try writer["addToProjectMemberPool"].write(addtoprojectmemberpool, with: DataZoneClientTypes.AddToProjectMemberPoolPolicyGrantDetail.write(value:to:)) + case let .createassettype(createassettype): + try writer["createAssetType"].write(createassettype, with: DataZoneClientTypes.CreateAssetTypePolicyGrantDetail.write(value:to:)) + case let .createdomainunit(createdomainunit): + try writer["createDomainUnit"].write(createdomainunit, with: DataZoneClientTypes.CreateDomainUnitPolicyGrantDetail.write(value:to:)) + case let .createenvironment(createenvironment): + try writer["createEnvironment"].write(createenvironment, with: DataZoneClientTypes.Unit.write(value:to:)) + case let .createenvironmentprofile(createenvironmentprofile): + try writer["createEnvironmentProfile"].write(createenvironmentprofile, with: DataZoneClientTypes.CreateEnvironmentProfilePolicyGrantDetail.write(value:to:)) + case let .createformtype(createformtype): + try writer["createFormType"].write(createformtype, with: DataZoneClientTypes.CreateFormTypePolicyGrantDetail.write(value:to:)) + case let .createglossary(createglossary): + try writer["createGlossary"].write(createglossary, with: DataZoneClientTypes.CreateGlossaryPolicyGrantDetail.write(value:to:)) + case let .createproject(createproject): + try writer["createProject"].write(createproject, with: DataZoneClientTypes.CreateProjectPolicyGrantDetail.write(value:to:)) + case let .delegatecreateenvironmentprofile(delegatecreateenvironmentprofile): + try writer["delegateCreateEnvironmentProfile"].write(delegatecreateenvironmentprofile, with: DataZoneClientTypes.Unit.write(value:to:)) + case let .overridedomainunitowners(overridedomainunitowners): + try writer["overrideDomainUnitOwners"].write(overridedomainunitowners, with: DataZoneClientTypes.OverrideDomainUnitOwnersPolicyGrantDetail.write(value:to:)) + case let .overrideprojectowners(overrideprojectowners): + try writer["overrideProjectOwners"].write(overrideprojectowners, with: DataZoneClientTypes.OverrideProjectOwnersPolicyGrantDetail.write(value:to:)) case let .sdkUnknown(sdkUnknown): try writer["sdkUnknown"].write(sdkUnknown) } } - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.Model { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.PolicyGrantDetail { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name switch name { - case "smithy": - return .smithy(try reader["smithy"].read()) + case "createDomainUnit": + return .createdomainunit(try reader["createDomainUnit"].read(with: DataZoneClientTypes.CreateDomainUnitPolicyGrantDetail.read(from:))) + case "overrideDomainUnitOwners": + return .overridedomainunitowners(try reader["overrideDomainUnitOwners"].read(with: DataZoneClientTypes.OverrideDomainUnitOwnersPolicyGrantDetail.read(from:))) + case "addToProjectMemberPool": + return .addtoprojectmemberpool(try reader["addToProjectMemberPool"].read(with: DataZoneClientTypes.AddToProjectMemberPoolPolicyGrantDetail.read(from:))) + case "overrideProjectOwners": + return .overrideprojectowners(try reader["overrideProjectOwners"].read(with: DataZoneClientTypes.OverrideProjectOwnersPolicyGrantDetail.read(from:))) + case "createGlossary": + return .createglossary(try reader["createGlossary"].read(with: DataZoneClientTypes.CreateGlossaryPolicyGrantDetail.read(from:))) + case "createFormType": + return .createformtype(try reader["createFormType"].read(with: DataZoneClientTypes.CreateFormTypePolicyGrantDetail.read(from:))) + case "createAssetType": + return .createassettype(try reader["createAssetType"].read(with: DataZoneClientTypes.CreateAssetTypePolicyGrantDetail.read(from:))) + case "createProject": + return .createproject(try reader["createProject"].read(with: DataZoneClientTypes.CreateProjectPolicyGrantDetail.read(from:))) + case "createEnvironmentProfile": + return .createenvironmentprofile(try reader["createEnvironmentProfile"].read(with: DataZoneClientTypes.CreateEnvironmentProfilePolicyGrantDetail.read(from:))) + case "delegateCreateEnvironmentProfile": + return .delegatecreateenvironmentprofile(try reader["delegateCreateEnvironmentProfile"].read(with: DataZoneClientTypes.Unit.read(from:))) + case "createEnvironment": + return .createenvironment(try reader["createEnvironment"].read(with: DataZoneClientTypes.Unit.read(from:))) default: return .sdkUnknown(name ?? "") } } } -extension DataZoneClientTypes.Import { - - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.Import { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.Import() - value.name = try reader["name"].readIfPresent() - value.revision = try reader["revision"].readIfPresent() - return value - } -} - -extension DataZoneClientTypes.LineageNodeReference { - - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.LineageNodeReference { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.LineageNodeReference() - value.id = try reader["id"].readIfPresent() - value.eventTimestamp = try reader["eventTimestamp"].readTimestampIfPresent(format: .epochSeconds) - return value - } -} - -extension DataZoneClientTypes.ListingItem { +extension DataZoneClientTypes.Unit { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.ListingItem { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name - switch name { - case "assetListing": - return .assetlisting(try reader["assetListing"].read(with: DataZoneClientTypes.AssetListing.read(from:))) - case "dataProductListing": - return .dataproductlisting(try reader["dataProductListing"].read(with: DataZoneClientTypes.DataProductListing.read(from:))) - default: - return .sdkUnknown(name ?? "") - } + static func write(value: DataZoneClientTypes.Unit?, to writer: SmithyJSON.Writer) throws { + guard value != nil else { return } + _ = writer[""] // create an empty structure } -} - -extension DataZoneClientTypes.DataProductListing { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DataProductListing { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.Unit { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.DataProductListing() - value.dataProductId = try reader["dataProductId"].readIfPresent() - value.dataProductRevision = try reader["dataProductRevision"].readIfPresent() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.forms = try reader["forms"].readIfPresent() - value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DetailedGlossaryTerm.read(from:), memberNodeInfo: "member", isFlattened: false) - value.owningProjectId = try reader["owningProjectId"].readIfPresent() - value.items = try reader["items"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.ListingSummary.read(from:), memberNodeInfo: "member", isFlattened: false) - return value + return DataZoneClientTypes.Unit() } } -extension DataZoneClientTypes.ListingSummary { +extension DataZoneClientTypes.CreateEnvironmentProfilePolicyGrantDetail { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.ListingSummary { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.ListingSummary() - value.listingId = try reader["listingId"].readIfPresent() - value.listingRevision = try reader["listingRevision"].readIfPresent() - value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DetailedGlossaryTerm.read(from:), memberNodeInfo: "member", isFlattened: false) - return value + static func write(value: DataZoneClientTypes.CreateEnvironmentProfilePolicyGrantDetail?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["domainUnitId"].write(value.domainUnitId) } -} -extension DataZoneClientTypes.AssetListing { - - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.AssetListing { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.CreateEnvironmentProfilePolicyGrantDetail { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.AssetListing() - value.assetId = try reader["assetId"].readIfPresent() - value.assetRevision = try reader["assetRevision"].readIfPresent() - value.assetType = try reader["assetType"].readIfPresent() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.forms = try reader["forms"].readIfPresent() - value.latestTimeSeriesDataPointForms = try reader["latestTimeSeriesDataPointForms"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.TimeSeriesDataPointSummaryFormOutput.read(from:), memberNodeInfo: "member", isFlattened: false) - value.glossaryTerms = try reader["glossaryTerms"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.DetailedGlossaryTerm.read(from:), memberNodeInfo: "member", isFlattened: false) - value.owningProjectId = try reader["owningProjectId"].readIfPresent() + var value = DataZoneClientTypes.CreateEnvironmentProfilePolicyGrantDetail() + value.domainUnitId = try reader["domainUnitId"].readIfPresent() return value } } -extension DataZoneClientTypes.MetadataGenerationRunTarget { +extension DataZoneClientTypes.CreateProjectPolicyGrantDetail { - static func write(value: DataZoneClientTypes.MetadataGenerationRunTarget?, to writer: SmithyJSON.Writer) throws { + static func write(value: DataZoneClientTypes.CreateProjectPolicyGrantDetail?, to writer: SmithyJSON.Writer) throws { guard let value else { return } - try writer["identifier"].write(value.identifier) - try writer["revision"].write(value.revision) - try writer["type"].write(value.type) + try writer["includeChildDomainUnits"].write(value.includeChildDomainUnits) } - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.MetadataGenerationRunTarget { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.CreateProjectPolicyGrantDetail { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.MetadataGenerationRunTarget() - value.type = try reader["type"].readIfPresent() - value.identifier = try reader["identifier"].readIfPresent() - value.revision = try reader["revision"].readIfPresent() + var value = DataZoneClientTypes.CreateProjectPolicyGrantDetail() + value.includeChildDomainUnits = try reader["includeChildDomainUnits"].readIfPresent() return value } } -extension DataZoneClientTypes.TimeSeriesDataPointFormOutput { +extension DataZoneClientTypes.CreateAssetTypePolicyGrantDetail { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.TimeSeriesDataPointFormOutput { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.TimeSeriesDataPointFormOutput() - value.formName = try reader["formName"].readIfPresent() - value.typeIdentifier = try reader["typeIdentifier"].readIfPresent() - value.typeRevision = try reader["typeRevision"].readIfPresent() - value.timestamp = try reader["timestamp"].readTimestampIfPresent(format: .epochSeconds) - value.content = try reader["content"].readIfPresent() - value.id = try reader["id"].readIfPresent() - return value + static func write(value: DataZoneClientTypes.CreateAssetTypePolicyGrantDetail?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["includeChildDomainUnits"].write(value.includeChildDomainUnits) } -} - -extension DataZoneClientTypes.AssetFilterSummary { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.AssetFilterSummary { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.CreateAssetTypePolicyGrantDetail { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.AssetFilterSummary() - value.id = try reader["id"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.assetId = try reader["assetId"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.description = try reader["description"].readIfPresent() - value.status = try reader["status"].readIfPresent() - value.effectiveColumnNames = try reader["effectiveColumnNames"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.effectiveRowFilter = try reader["effectiveRowFilter"].readIfPresent() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.errorMessage = try reader["errorMessage"].readIfPresent() + var value = DataZoneClientTypes.CreateAssetTypePolicyGrantDetail() + value.includeChildDomainUnits = try reader["includeChildDomainUnits"].readIfPresent() return value } } -extension DataZoneClientTypes.AssetRevision { +extension DataZoneClientTypes.CreateFormTypePolicyGrantDetail { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.AssetRevision { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.AssetRevision() - value.domainId = try reader["domainId"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.revision = try reader["revision"].readIfPresent() - value.createdBy = try reader["createdBy"].readIfPresent() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - return value + static func write(value: DataZoneClientTypes.CreateFormTypePolicyGrantDetail?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["includeChildDomainUnits"].write(value.includeChildDomainUnits) } -} - -extension DataZoneClientTypes.DataProductRevision { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DataProductRevision { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.CreateFormTypePolicyGrantDetail { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.DataProductRevision() - value.domainId = try reader["domainId"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.revision = try reader["revision"].readIfPresent() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.createdBy = try reader["createdBy"].readIfPresent() + var value = DataZoneClientTypes.CreateFormTypePolicyGrantDetail() + value.includeChildDomainUnits = try reader["includeChildDomainUnits"].readIfPresent() return value } } -extension DataZoneClientTypes.DataSourceRunActivity { +extension DataZoneClientTypes.CreateGlossaryPolicyGrantDetail { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DataSourceRunActivity { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.DataSourceRunActivity() - value.database = try reader["database"].readIfPresent() - value.dataSourceRunId = try reader["dataSourceRunId"].readIfPresent() - value.technicalName = try reader["technicalName"].readIfPresent() - value.dataAssetStatus = try reader["dataAssetStatus"].readIfPresent() - value.projectId = try reader["projectId"].readIfPresent() - value.dataAssetId = try reader["dataAssetId"].readIfPresent() - value.technicalDescription = try reader["technicalDescription"].readIfPresent() - value.errorMessage = try reader["errorMessage"].readIfPresent(with: DataZoneClientTypes.DataSourceErrorMessage.read(from:)) - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) - return value + static func write(value: DataZoneClientTypes.CreateGlossaryPolicyGrantDetail?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["includeChildDomainUnits"].write(value.includeChildDomainUnits) } -} - -extension DataZoneClientTypes.DataSourceRunSummary { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DataSourceRunSummary { + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.CreateGlossaryPolicyGrantDetail { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.DataSourceRunSummary() - value.id = try reader["id"].readIfPresent() - value.dataSourceId = try reader["dataSourceId"].readIfPresent() - value.type = try reader["type"].readIfPresent() - value.status = try reader["status"].readIfPresent() - value.projectId = try reader["projectId"].readIfPresent() - value.runStatisticsForAssets = try reader["runStatisticsForAssets"].readIfPresent(with: DataZoneClientTypes.RunStatisticsForAssets.read(from:)) - value.errorMessage = try reader["errorMessage"].readIfPresent(with: DataZoneClientTypes.DataSourceErrorMessage.read(from:)) - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) - value.startedAt = try reader["startedAt"].readTimestampIfPresent(format: .dateTime) - value.stoppedAt = try reader["stoppedAt"].readTimestampIfPresent(format: .dateTime) + var value = DataZoneClientTypes.CreateGlossaryPolicyGrantDetail() + value.includeChildDomainUnits = try reader["includeChildDomainUnits"].readIfPresent() return value } } -extension DataZoneClientTypes.DataSourceSummary { +extension DataZoneClientTypes.OverrideProjectOwnersPolicyGrantDetail { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DataSourceSummary { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.DataSourceSummary() - value.domainId = try reader["domainId"].readIfPresent() - value.environmentId = try reader["environmentId"].readIfPresent() - value.dataSourceId = try reader["dataSourceId"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.type = try reader["type"].readIfPresent() - value.status = try reader["status"].readIfPresent() - value.enableSetting = try reader["enableSetting"].readIfPresent() - value.schedule = try reader["schedule"].readIfPresent(with: DataZoneClientTypes.ScheduleConfiguration.read(from:)) - value.lastRunStatus = try reader["lastRunStatus"].readIfPresent() - value.lastRunAt = try reader["lastRunAt"].readTimestampIfPresent(format: .dateTime) - value.lastRunErrorMessage = try reader["lastRunErrorMessage"].readIfPresent(with: DataZoneClientTypes.DataSourceErrorMessage.read(from:)) - value.lastRunAssetCount = try reader["lastRunAssetCount"].readIfPresent() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) + static func write(value: DataZoneClientTypes.OverrideProjectOwnersPolicyGrantDetail?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["includeChildDomainUnits"].write(value.includeChildDomainUnits) + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.OverrideProjectOwnersPolicyGrantDetail { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = DataZoneClientTypes.OverrideProjectOwnersPolicyGrantDetail() + value.includeChildDomainUnits = try reader["includeChildDomainUnits"].readIfPresent() return value } } -extension DataZoneClientTypes.DomainSummary { +extension DataZoneClientTypes.AddToProjectMemberPoolPolicyGrantDetail { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DomainSummary { + static func write(value: DataZoneClientTypes.AddToProjectMemberPoolPolicyGrantDetail?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["includeChildDomainUnits"].write(value.includeChildDomainUnits) + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.AddToProjectMemberPoolPolicyGrantDetail { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.DomainSummary() - value.id = try reader["id"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.description = try reader["description"].readIfPresent() - value.arn = try reader["arn"].readIfPresent() - value.managedAccountId = try reader["managedAccountId"].readIfPresent() - value.status = try reader["status"].readIfPresent() - value.portalUrl = try reader["portalUrl"].readIfPresent() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.lastUpdatedAt = try reader["lastUpdatedAt"].readTimestampIfPresent(format: .epochSeconds) + var value = DataZoneClientTypes.AddToProjectMemberPoolPolicyGrantDetail() + value.includeChildDomainUnits = try reader["includeChildDomainUnits"].readIfPresent() return value } } -extension DataZoneClientTypes.EnvironmentActionSummary { +extension DataZoneClientTypes.OverrideDomainUnitOwnersPolicyGrantDetail { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.EnvironmentActionSummary { + static func write(value: DataZoneClientTypes.OverrideDomainUnitOwnersPolicyGrantDetail?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["includeChildDomainUnits"].write(value.includeChildDomainUnits) + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.OverrideDomainUnitOwnersPolicyGrantDetail { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.EnvironmentActionSummary() - value.domainId = try reader["domainId"].readIfPresent() - value.environmentId = try reader["environmentId"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.parameters = try reader["parameters"].readIfPresent(with: DataZoneClientTypes.ActionParameters.read(from:)) - value.description = try reader["description"].readIfPresent() + var value = DataZoneClientTypes.OverrideDomainUnitOwnersPolicyGrantDetail() + value.includeChildDomainUnits = try reader["includeChildDomainUnits"].readIfPresent() return value } } -extension DataZoneClientTypes.EnvironmentBlueprintConfigurationItem { +extension DataZoneClientTypes.CreateDomainUnitPolicyGrantDetail { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.EnvironmentBlueprintConfigurationItem { + static func write(value: DataZoneClientTypes.CreateDomainUnitPolicyGrantDetail?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["includeChildDomainUnits"].write(value.includeChildDomainUnits) + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.CreateDomainUnitPolicyGrantDetail { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.EnvironmentBlueprintConfigurationItem() - value.domainId = try reader["domainId"].readIfPresent() - value.environmentBlueprintId = try reader["environmentBlueprintId"].readIfPresent() - value.provisioningRoleArn = try reader["provisioningRoleArn"].readIfPresent() - value.manageAccessRoleArn = try reader["manageAccessRoleArn"].readIfPresent() - value.enabledRegions = try reader["enabledRegions"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.regionalParameters = try reader["regionalParameters"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.mapReadingClosure(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) - value.provisioningConfigurations = try reader["provisioningConfigurations"].readListIfPresent(memberReadingClosure: DataZoneClientTypes.ProvisioningConfiguration.read(from:), memberNodeInfo: "member", isFlattened: false) + var value = DataZoneClientTypes.CreateDomainUnitPolicyGrantDetail() + value.includeChildDomainUnits = try reader["includeChildDomainUnits"].readIfPresent() return value } } -extension DataZoneClientTypes.EnvironmentBlueprintSummary { +extension DataZoneClientTypes.PolicyGrantPrincipal { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.EnvironmentBlueprintSummary { + static func write(value: DataZoneClientTypes.PolicyGrantPrincipal?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + switch value { + case let .domainunit(domainunit): + try writer["domainUnit"].write(domainunit, with: DataZoneClientTypes.DomainUnitPolicyGrantPrincipal.write(value:to:)) + case let .group(group): + try writer["group"].write(group, with: DataZoneClientTypes.GroupPolicyGrantPrincipal.write(value:to:)) + case let .project(project): + try writer["project"].write(project, with: DataZoneClientTypes.ProjectPolicyGrantPrincipal.write(value:to:)) + case let .user(user): + try writer["user"].write(user, with: DataZoneClientTypes.UserPolicyGrantPrincipal.write(value:to:)) + case let .sdkUnknown(sdkUnknown): + try writer["sdkUnknown"].write(sdkUnknown) + } + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.PolicyGrantPrincipal { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.EnvironmentBlueprintSummary() - value.id = try reader["id"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.description = try reader["description"].readIfPresent() - value.provider = try reader["provider"].readIfPresent() - value.provisioningProperties = try reader["provisioningProperties"].readIfPresent(with: DataZoneClientTypes.ProvisioningProperties.read(from:)) - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) - return value + let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name + switch name { + case "user": + return .user(try reader["user"].read(with: DataZoneClientTypes.UserPolicyGrantPrincipal.read(from:))) + case "group": + return .group(try reader["group"].read(with: DataZoneClientTypes.GroupPolicyGrantPrincipal.read(from:))) + case "project": + return .project(try reader["project"].read(with: DataZoneClientTypes.ProjectPolicyGrantPrincipal.read(from:))) + case "domainUnit": + return .domainunit(try reader["domainUnit"].read(with: DataZoneClientTypes.DomainUnitPolicyGrantPrincipal.read(from:))) + default: + return .sdkUnknown(name ?? "") + } } } -extension DataZoneClientTypes.EnvironmentProfileSummary { +extension DataZoneClientTypes.DomainUnitPolicyGrantPrincipal { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.EnvironmentProfileSummary { + static func write(value: DataZoneClientTypes.DomainUnitPolicyGrantPrincipal?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["domainUnitDesignation"].write(value.domainUnitDesignation) + try writer["domainUnitGrantFilter"].write(value.domainUnitGrantFilter, with: DataZoneClientTypes.DomainUnitGrantFilter.write(value:to:)) + try writer["domainUnitIdentifier"].write(value.domainUnitIdentifier) + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DomainUnitPolicyGrantPrincipal { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.EnvironmentProfileSummary() - value.id = try reader["id"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.awsAccountId = try reader["awsAccountId"].readIfPresent() - value.awsAccountRegion = try reader["awsAccountRegion"].readIfPresent() - value.createdBy = try reader["createdBy"].readIfPresent() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) - value.name = try reader["name"].readIfPresent() - value.description = try reader["description"].readIfPresent() - value.environmentBlueprintId = try reader["environmentBlueprintId"].readIfPresent() - value.projectId = try reader["projectId"].readIfPresent() + var value = DataZoneClientTypes.DomainUnitPolicyGrantPrincipal() + value.domainUnitDesignation = try reader["domainUnitDesignation"].readIfPresent() + value.domainUnitIdentifier = try reader["domainUnitIdentifier"].readIfPresent() + value.domainUnitGrantFilter = try reader["domainUnitGrantFilter"].readIfPresent(with: DataZoneClientTypes.DomainUnitGrantFilter.read(from:)) return value } } -extension DataZoneClientTypes.EnvironmentSummary { +extension DataZoneClientTypes.DomainUnitGrantFilter { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.EnvironmentSummary { + static func write(value: DataZoneClientTypes.DomainUnitGrantFilter?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + switch value { + case let .alldomainunitsgrantfilter(alldomainunitsgrantfilter): + try writer["allDomainUnitsGrantFilter"].write(alldomainunitsgrantfilter, with: DataZoneClientTypes.AllDomainUnitsGrantFilter.write(value:to:)) + case let .sdkUnknown(sdkUnknown): + try writer["sdkUnknown"].write(sdkUnknown) + } + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DomainUnitGrantFilter { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.EnvironmentSummary() - value.projectId = try reader["projectId"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.domainId = try reader["domainId"].readIfPresent() - value.createdBy = try reader["createdBy"].readIfPresent() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) - value.name = try reader["name"].readIfPresent() - value.description = try reader["description"].readIfPresent() - value.environmentProfileId = try reader["environmentProfileId"].readIfPresent() ?? "" - value.awsAccountId = try reader["awsAccountId"].readIfPresent() - value.awsAccountRegion = try reader["awsAccountRegion"].readIfPresent() - value.provider = try reader["provider"].readIfPresent() - value.status = try reader["status"].readIfPresent() - return value + let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name + switch name { + case "allDomainUnitsGrantFilter": + return .alldomainunitsgrantfilter(try reader["allDomainUnitsGrantFilter"].read(with: DataZoneClientTypes.AllDomainUnitsGrantFilter.read(from:))) + default: + return .sdkUnknown(name ?? "") + } } } -extension DataZoneClientTypes.LineageNodeSummary { +extension DataZoneClientTypes.AllDomainUnitsGrantFilter { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.LineageNodeSummary { + static func write(value: DataZoneClientTypes.AllDomainUnitsGrantFilter?, to writer: SmithyJSON.Writer) throws { + guard value != nil else { return } + _ = writer[""] // create an empty structure + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.AllDomainUnitsGrantFilter { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.LineageNodeSummary() - value.domainId = try reader["domainId"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.description = try reader["description"].readIfPresent() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.createdBy = try reader["createdBy"].readIfPresent() - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .epochSeconds) - value.updatedBy = try reader["updatedBy"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.typeName = try reader["typeName"].readIfPresent() - value.typeRevision = try reader["typeRevision"].readIfPresent() - value.sourceIdentifier = try reader["sourceIdentifier"].readIfPresent() - value.eventTimestamp = try reader["eventTimestamp"].readTimestampIfPresent(format: .epochSeconds) - return value + return DataZoneClientTypes.AllDomainUnitsGrantFilter() } } -extension DataZoneClientTypes.MetadataGenerationRunItem { +extension DataZoneClientTypes.ProjectPolicyGrantPrincipal { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.MetadataGenerationRunItem { + static func write(value: DataZoneClientTypes.ProjectPolicyGrantPrincipal?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["projectDesignation"].write(value.projectDesignation) + try writer["projectGrantFilter"].write(value.projectGrantFilter, with: DataZoneClientTypes.ProjectGrantFilter.write(value:to:)) + try writer["projectIdentifier"].write(value.projectIdentifier) + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.ProjectPolicyGrantPrincipal { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.MetadataGenerationRunItem() - value.domainId = try reader["domainId"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.target = try reader["target"].readIfPresent(with: DataZoneClientTypes.MetadataGenerationRunTarget.read(from:)) - value.status = try reader["status"].readIfPresent() - value.type = try reader["type"].readIfPresent() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .epochSeconds) - value.createdBy = try reader["createdBy"].readIfPresent() - value.owningProjectId = try reader["owningProjectId"].readIfPresent() + var value = DataZoneClientTypes.ProjectPolicyGrantPrincipal() + value.projectDesignation = try reader["projectDesignation"].readIfPresent() + value.projectIdentifier = try reader["projectIdentifier"].readIfPresent() + value.projectGrantFilter = try reader["projectGrantFilter"].readIfPresent(with: DataZoneClientTypes.ProjectGrantFilter.read(from:)) return value } } -extension DataZoneClientTypes.NotificationOutput { +extension DataZoneClientTypes.ProjectGrantFilter { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.NotificationOutput { + static func write(value: DataZoneClientTypes.ProjectGrantFilter?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + switch value { + case let .domainunitfilter(domainunitfilter): + try writer["domainUnitFilter"].write(domainunitfilter, with: DataZoneClientTypes.DomainUnitFilterForProject.write(value:to:)) + case let .sdkUnknown(sdkUnknown): + try writer["sdkUnknown"].write(sdkUnknown) + } + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.ProjectGrantFilter { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.NotificationOutput() - value.identifier = try reader["identifier"].readIfPresent() - value.domainIdentifier = try reader["domainIdentifier"].readIfPresent() - value.type = try reader["type"].readIfPresent() - value.topic = try reader["topic"].readIfPresent(with: DataZoneClientTypes.Topic.read(from:)) - value.title = try reader["title"].readIfPresent() - value.message = try reader["message"].readIfPresent() - value.status = try reader["status"].readIfPresent() - value.actionLink = try reader["actionLink"].readIfPresent() - value.creationTimestamp = try reader["creationTimestamp"].readTimestampIfPresent(format: .epochSeconds) - value.lastUpdatedTimestamp = try reader["lastUpdatedTimestamp"].readTimestampIfPresent(format: .epochSeconds) - value.metadata = try reader["metadata"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) - return value + let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name + switch name { + case "domainUnitFilter": + return .domainunitfilter(try reader["domainUnitFilter"].read(with: DataZoneClientTypes.DomainUnitFilterForProject.read(from:))) + default: + return .sdkUnknown(name ?? "") + } } } -extension DataZoneClientTypes.Topic { +extension DataZoneClientTypes.DomainUnitFilterForProject { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.Topic { + static func write(value: DataZoneClientTypes.DomainUnitFilterForProject?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["domainUnit"].write(value.domainUnit) + try writer["includeChildDomainUnits"].write(value.includeChildDomainUnits) + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.DomainUnitFilterForProject { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.Topic() - value.subject = try reader["subject"].readIfPresent() - value.resource = try reader["resource"].readIfPresent(with: DataZoneClientTypes.NotificationResource.read(from:)) - value.role = try reader["role"].readIfPresent() + var value = DataZoneClientTypes.DomainUnitFilterForProject() + value.domainUnit = try reader["domainUnit"].readIfPresent() + value.includeChildDomainUnits = try reader["includeChildDomainUnits"].readIfPresent() ?? false return value } } -extension DataZoneClientTypes.NotificationResource { +extension DataZoneClientTypes.GroupPolicyGrantPrincipal { - static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.NotificationResource { + static func write(value: DataZoneClientTypes.GroupPolicyGrantPrincipal?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + switch value { + case let .groupidentifier(groupidentifier): + try writer["groupIdentifier"].write(groupidentifier) + case let .sdkUnknown(sdkUnknown): + try writer["sdkUnknown"].write(sdkUnknown) + } + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.GroupPolicyGrantPrincipal { guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = DataZoneClientTypes.NotificationResource() - value.type = try reader["type"].readIfPresent() - value.id = try reader["id"].readIfPresent() - value.name = try reader["name"].readIfPresent() - return value + let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name + switch name { + case "groupIdentifier": + return .groupidentifier(try reader["groupIdentifier"].read()) + default: + return .sdkUnknown(name ?? "") + } + } +} + +extension DataZoneClientTypes.UserPolicyGrantPrincipal { + + static func write(value: DataZoneClientTypes.UserPolicyGrantPrincipal?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + switch value { + case let .allusersgrantfilter(allusersgrantfilter): + try writer["allUsersGrantFilter"].write(allusersgrantfilter, with: DataZoneClientTypes.AllUsersGrantFilter.write(value:to:)) + case let .useridentifier(useridentifier): + try writer["userIdentifier"].write(useridentifier) + case let .sdkUnknown(sdkUnknown): + try writer["sdkUnknown"].write(sdkUnknown) + } + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.UserPolicyGrantPrincipal { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name + switch name { + case "userIdentifier": + return .useridentifier(try reader["userIdentifier"].read()) + case "allUsersGrantFilter": + return .allusersgrantfilter(try reader["allUsersGrantFilter"].read(with: DataZoneClientTypes.AllUsersGrantFilter.read(from:))) + default: + return .sdkUnknown(name ?? "") + } + } +} + +extension DataZoneClientTypes.AllUsersGrantFilter { + + static func write(value: DataZoneClientTypes.AllUsersGrantFilter?, to writer: SmithyJSON.Writer) throws { + guard value != nil else { return } + _ = writer[""] // create an empty structure + } + + static func read(from reader: SmithyJSON.Reader) throws -> DataZoneClientTypes.AllUsersGrantFilter { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + return DataZoneClientTypes.AllUsersGrantFilter() } } @@ -25027,6 +27478,7 @@ extension DataZoneClientTypes.ProjectSummary { value.createdBy = try reader["createdBy"].readIfPresent() value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: .dateTime) value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: .dateTime) + value.domainUnitId = try reader["domainUnitId"].readIfPresent() return value } } @@ -25447,6 +27899,37 @@ extension DataZoneClientTypes.AcceptChoice { } } +extension DataZoneClientTypes.OwnerProperties { + + static func write(value: DataZoneClientTypes.OwnerProperties?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + switch value { + case let .group(group): + try writer["group"].write(group, with: DataZoneClientTypes.OwnerGroupProperties.write(value:to:)) + case let .user(user): + try writer["user"].write(user, with: DataZoneClientTypes.OwnerUserProperties.write(value:to:)) + case let .sdkUnknown(sdkUnknown): + try writer["sdkUnknown"].write(sdkUnknown) + } + } +} + +extension DataZoneClientTypes.OwnerGroupProperties { + + static func write(value: DataZoneClientTypes.OwnerGroupProperties?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["groupIdentifier"].write(value.groupIdentifier) + } +} + +extension DataZoneClientTypes.OwnerUserProperties { + + static func write(value: DataZoneClientTypes.OwnerUserProperties?, to writer: SmithyJSON.Writer) throws { + guard let value else { return } + try writer["userIdentifier"].write(value.userIdentifier) + } +} + extension DataZoneClientTypes.FormInput { static func write(value: DataZoneClientTypes.FormInput?, to writer: SmithyJSON.Writer) throws { diff --git a/Sources/Services/AWSDataZone/Sources/AWSDataZone/Paginators.swift b/Sources/Services/AWSDataZone/Sources/AWSDataZone/Paginators.swift index 813a8429070..0f616943a42 100644 --- a/Sources/Services/AWSDataZone/Sources/AWSDataZone/Paginators.swift +++ b/Sources/Services/AWSDataZone/Sources/AWSDataZone/Paginators.swift @@ -141,6 +141,39 @@ extension PaginatorSequence where OperationStackInput == ListDataSourceRunActivi return try await self.asyncCompactMap { item in item.items } } } +extension DataZoneClient { + /// Paginate over `[ListEntityOwnersOutput]` results. + /// + /// When this operation is called, an `AsyncSequence` is created. AsyncSequences are lazy so no service + /// calls are made until the sequence is iterated over. This also means there is no guarantee that the request is valid + /// until then. If there are errors in your request, you will see the failures only after you start iterating. + /// - Parameters: + /// - input: A `[ListEntityOwnersInput]` to start pagination + /// - Returns: An `AsyncSequence` that can iterate over `ListEntityOwnersOutput` + public func listEntityOwnersPaginated(input: ListEntityOwnersInput) -> ClientRuntime.PaginatorSequence { + return ClientRuntime.PaginatorSequence(input: input, inputKey: \.nextToken, outputKey: \.nextToken, paginationFunction: self.listEntityOwners(input:)) + } +} + +extension ListEntityOwnersInput: ClientRuntime.PaginateToken { + public func usingPaginationToken(_ token: Swift.String) -> ListEntityOwnersInput { + return ListEntityOwnersInput( + domainIdentifier: self.domainIdentifier, + entityIdentifier: self.entityIdentifier, + entityType: self.entityType, + maxResults: self.maxResults, + nextToken: token + )} +} + +extension PaginatorSequence where OperationStackInput == ListEntityOwnersInput, OperationStackOutput == ListEntityOwnersOutput { + /// This paginator transforms the `AsyncSequence` returned by `listEntityOwnersPaginated` + /// to access the nested member `[DataZoneClientTypes.OwnerPropertiesOutput]` + /// - Returns: `[DataZoneClientTypes.OwnerPropertiesOutput]` + public func owners() async throws -> [DataZoneClientTypes.OwnerPropertiesOutput] { + return try await self.asyncCompactMap { item in item.owners } + } +} extension DataZoneClient { /// Paginate over `[ListEnvironmentActionsOutput]` results. /// @@ -353,6 +386,40 @@ extension PaginatorSequence where OperationStackInput == ListNotificationsInput, return try await self.asyncCompactMap { item in item.notifications } } } +extension DataZoneClient { + /// Paginate over `[ListPolicyGrantsOutput]` results. + /// + /// When this operation is called, an `AsyncSequence` is created. AsyncSequences are lazy so no service + /// calls are made until the sequence is iterated over. This also means there is no guarantee that the request is valid + /// until then. If there are errors in your request, you will see the failures only after you start iterating. + /// - Parameters: + /// - input: A `[ListPolicyGrantsInput]` to start pagination + /// - Returns: An `AsyncSequence` that can iterate over `ListPolicyGrantsOutput` + public func listPolicyGrantsPaginated(input: ListPolicyGrantsInput) -> ClientRuntime.PaginatorSequence { + return ClientRuntime.PaginatorSequence(input: input, inputKey: \.nextToken, outputKey: \.nextToken, paginationFunction: self.listPolicyGrants(input:)) + } +} + +extension ListPolicyGrantsInput: ClientRuntime.PaginateToken { + public func usingPaginationToken(_ token: Swift.String) -> ListPolicyGrantsInput { + return ListPolicyGrantsInput( + domainIdentifier: self.domainIdentifier, + entityIdentifier: self.entityIdentifier, + entityType: self.entityType, + maxResults: self.maxResults, + nextToken: token, + policyType: self.policyType + )} +} + +extension PaginatorSequence where OperationStackInput == ListPolicyGrantsInput, OperationStackOutput == ListPolicyGrantsOutput { + /// This paginator transforms the `AsyncSequence` returned by `listPolicyGrantsPaginated` + /// to access the nested member `[DataZoneClientTypes.PolicyGrantMember]` + /// - Returns: `[DataZoneClientTypes.PolicyGrantMember]` + public func grantList() async throws -> [DataZoneClientTypes.PolicyGrantMember] { + return try await self.asyncCompactMap { item in item.grantList } + } +} extension DataZoneClient { /// Paginate over `[ListProjectMembershipsOutput]` results. /// diff --git a/Sources/Services/AWSRedshiftData/Sources/AWSRedshiftData/Models.swift b/Sources/Services/AWSRedshiftData/Sources/AWSRedshiftData/Models.swift index 2975ba25277..9a4456408a9 100644 --- a/Sources/Services/AWSRedshiftData/Sources/AWSRedshiftData/Models.swift +++ b/Sources/Services/AWSRedshiftData/Sources/AWSRedshiftData/Models.swift @@ -22,6 +22,30 @@ import protocol ClientRuntime.ModeledError import struct AWSClientRuntime.AWSJSONError @_spi(UnknownAWSHTTPServiceError) import struct AWSClientRuntime.UnknownAWSHTTPServiceError +/// The Amazon Redshift Data API operation failed because the maximum number of active sessions exceeded. +public struct ActiveSessionsExceededException: ClientRuntime.ModeledError, AWSClientRuntime.AWSServiceError, ClientRuntime.HTTPError, Swift.Error { + + public struct Properties { + public internal(set) var message: Swift.String? = nil + } + + public internal(set) var properties = Properties() + public static var typeName: Swift.String { "ActiveSessionsExceededException" } + public static var fault: ClientRuntime.ErrorFault { .client } + public static var isRetryable: Swift.Bool { false } + public static var isThrottling: Swift.Bool { false } + public internal(set) var httpResponse = SmithyHTTPAPI.HTTPResponse() + public internal(set) var message: Swift.String? + public internal(set) var requestID: Swift.String? + + public init( + message: Swift.String? = nil + ) + { + self.properties.message = message + } +} + /// The number of active statements exceeds the limit. public struct ActiveStatementsExceededException: ClientRuntime.ModeledError, AWSClientRuntime.AWSServiceError, ClientRuntime.HTTPError, Swift.Error { @@ -76,6 +100,32 @@ public struct BatchExecuteStatementException: ClientRuntime.ModeledError, AWSCli } } +/// The Amazon Redshift Data API operation failed due to invalid input. +public struct InternalServerException: ClientRuntime.ModeledError, AWSClientRuntime.AWSServiceError, ClientRuntime.HTTPError, Swift.Error { + + public struct Properties { + /// The exception message. + /// This member is required. + public internal(set) var message: Swift.String? = nil + } + + public internal(set) var properties = Properties() + public static var typeName: Swift.String { "InternalServerException" } + public static var fault: ClientRuntime.ErrorFault { .server } + public static var isRetryable: Swift.Bool { false } + public static var isThrottling: Swift.Bool { false } + public internal(set) var httpResponse = SmithyHTTPAPI.HTTPResponse() + public internal(set) var message: Swift.String? + public internal(set) var requestID: Swift.String? + + public init( + message: Swift.String? = nil + ) + { + self.properties.message = message + } +} + /// The Amazon Redshift Data API operation failed due to invalid input. public struct ValidationException: ClientRuntime.ModeledError, AWSClientRuntime.AWSServiceError, ClientRuntime.HTTPError, Swift.Error { @@ -107,12 +157,15 @@ public struct BatchExecuteStatementInput { /// The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials. public var clusterIdentifier: Swift.String? /// The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials. - /// This member is required. public var database: Swift.String? /// The database user name. This parameter is required when connecting to a cluster as a database user and authenticating using temporary credentials. public var dbUser: Swift.String? /// The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager. public var secretArn: Swift.String? + /// The session identifier of the query. + public var sessionId: Swift.String? + /// The number of seconds to keep the session alive after the query finishes. The maximum time a session can keep alive is 24 hours. After 24 hours, the session is forced closed and the query is terminated. + public var sessionKeepAliveSeconds: Swift.Int? /// One or more SQL statements to run. The SQL statements are run as a single transaction. They run serially in the order of the array. Subsequent SQL statements don't start until the previous statement in the array completes. If any SQL statement fails, then because they are run as one transaction, all work is rolled back. /// This member is required. public var sqls: [Swift.String]? @@ -129,6 +182,8 @@ public struct BatchExecuteStatementInput { database: Swift.String? = nil, dbUser: Swift.String? = nil, secretArn: Swift.String? = nil, + sessionId: Swift.String? = nil, + sessionKeepAliveSeconds: Swift.Int? = nil, sqls: [Swift.String]? = nil, statementName: Swift.String? = nil, withEvent: Swift.Bool? = nil, @@ -140,6 +195,8 @@ public struct BatchExecuteStatementInput { self.database = database self.dbUser = dbUser self.secretArn = secretArn + self.sessionId = sessionId + self.sessionKeepAliveSeconds = sessionKeepAliveSeconds self.sqls = sqls self.statementName = statementName self.withEvent = withEvent @@ -154,12 +211,16 @@ public struct BatchExecuteStatementOutput { public var createdAt: Foundation.Date? /// The name of the database. public var database: Swift.String? + /// A list of colon (:) separated names of database groups. + public var dbGroups: [Swift.String]? /// The database user name. public var dbUser: Swift.String? /// The identifier of the SQL statement whose results are to be fetched. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. This identifier is returned by BatchExecuteStatment. public var id: Swift.String? /// The name or ARN of the secret that enables access to the database. public var secretArn: Swift.String? + /// The session identifier of the query. + public var sessionId: Swift.String? /// The serverless workgroup name or Amazon Resource Name (ARN). This element is not returned when connecting to a provisioned cluster. public var workgroupName: Swift.String? @@ -167,18 +228,22 @@ public struct BatchExecuteStatementOutput { clusterIdentifier: Swift.String? = nil, createdAt: Foundation.Date? = nil, database: Swift.String? = nil, + dbGroups: [Swift.String]? = nil, dbUser: Swift.String? = nil, id: Swift.String? = nil, secretArn: Swift.String? = nil, + sessionId: Swift.String? = nil, workgroupName: Swift.String? = nil ) { self.clusterIdentifier = clusterIdentifier self.createdAt = createdAt self.database = database + self.dbGroups = dbGroups self.dbUser = dbUser self.id = id self.secretArn = secretArn + self.sessionId = sessionId self.workgroupName = workgroupName } } @@ -208,32 +273,6 @@ public struct DatabaseConnectionException: ClientRuntime.ModeledError, AWSClient } } -/// The Amazon Redshift Data API operation failed due to invalid input. -public struct InternalServerException: ClientRuntime.ModeledError, AWSClientRuntime.AWSServiceError, ClientRuntime.HTTPError, Swift.Error { - - public struct Properties { - /// The exception message. - /// This member is required. - public internal(set) var message: Swift.String? = nil - } - - public internal(set) var properties = Properties() - public static var typeName: Swift.String { "InternalServerException" } - public static var fault: ClientRuntime.ErrorFault { .server } - public static var isRetryable: Swift.Bool { false } - public static var isThrottling: Swift.Bool { false } - public internal(set) var httpResponse = SmithyHTTPAPI.HTTPResponse() - public internal(set) var message: Swift.String? - public internal(set) var requestID: Swift.String? - - public init( - message: Swift.String? = nil - ) - { - self.properties.message = message - } -} - /// The Amazon Redshift Data API operation failed due to a missing resource. public struct ResourceNotFoundException: ClientRuntime.ModeledError, AWSClientRuntime.AWSServiceError, ClientRuntime.HTTPError, Swift.Error { @@ -563,6 +602,8 @@ public struct DescribeStatementOutput { public var resultSize: Swift.Int /// The name or Amazon Resource Name (ARN) of the secret that enables access to the database. public var secretArn: Swift.String? + /// The session identifier of the query. + public var sessionId: Swift.String? /// The status of the SQL statement being described. Status values are defined as follows: /// /// * ABORTED - The query run was stopped by the user. @@ -602,6 +643,7 @@ public struct DescribeStatementOutput { resultRows: Swift.Int = 0, resultSize: Swift.Int = 0, secretArn: Swift.String? = nil, + sessionId: Swift.String? = nil, status: RedshiftDataClientTypes.StatusString? = nil, subStatements: [RedshiftDataClientTypes.SubStatementData]? = nil, updatedAt: Foundation.Date? = nil, @@ -623,6 +665,7 @@ public struct DescribeStatementOutput { self.resultRows = resultRows self.resultSize = resultSize self.secretArn = secretArn + self.sessionId = sessionId self.status = status self.subStatements = subStatements self.updatedAt = updatedAt @@ -630,6 +673,30 @@ public struct DescribeStatementOutput { } } +/// The Amazon Redshift Data API operation failed due to timeout. +public struct QueryTimeoutException: ClientRuntime.ModeledError, AWSClientRuntime.AWSServiceError, ClientRuntime.HTTPError, Swift.Error { + + public struct Properties { + public internal(set) var message: Swift.String? = nil + } + + public internal(set) var properties = Properties() + public static var typeName: Swift.String { "QueryTimeoutException" } + public static var fault: ClientRuntime.ErrorFault { .client } + public static var isRetryable: Swift.Bool { false } + public static var isThrottling: Swift.Bool { false } + public internal(set) var httpResponse = SmithyHTTPAPI.HTTPResponse() + public internal(set) var message: Swift.String? + public internal(set) var requestID: Swift.String? + + public init( + message: Swift.String? = nil + ) + { + self.properties.message = message + } +} + public struct DescribeTableInput { /// The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials. public var clusterIdentifier: Swift.String? @@ -641,7 +708,7 @@ public struct DescribeTableInput { /// The database user name. This parameter is required when connecting to a cluster as a database user and authenticating using temporary credentials. public var dbUser: Swift.String? /// The maximum number of tables to return in the response. If more tables exist than fit in one response, then NextToken is returned to page through the results. - public var maxResults: Swift.Int + public var maxResults: Swift.Int? /// A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request. public var nextToken: Swift.String? /// The schema that contains the table. If no schema is specified, then matching tables for all schemas are returned. @@ -658,7 +725,7 @@ public struct DescribeTableInput { connectedDatabase: Swift.String? = nil, database: Swift.String? = nil, dbUser: Swift.String? = nil, - maxResults: Swift.Int = 0, + maxResults: Swift.Int? = nil, nextToken: Swift.String? = nil, schema: Swift.String? = nil, secretArn: Swift.String? = nil, @@ -736,7 +803,6 @@ public struct ExecuteStatementInput { /// The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials. public var clusterIdentifier: Swift.String? /// The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials. - /// This member is required. public var database: Swift.String? /// The database user name. This parameter is required when connecting to a cluster as a database user and authenticating using temporary credentials. public var dbUser: Swift.String? @@ -744,6 +810,10 @@ public struct ExecuteStatementInput { public var parameters: [RedshiftDataClientTypes.SqlParameter]? /// The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager. public var secretArn: Swift.String? + /// The session identifier of the query. + public var sessionId: Swift.String? + /// The number of seconds to keep the session alive after the query finishes. The maximum time a session can keep alive is 24 hours. After 24 hours, the session is forced closed and the query is terminated. + public var sessionKeepAliveSeconds: Swift.Int? /// The SQL statement text to run. /// This member is required. public var sql: Swift.String? @@ -761,6 +831,8 @@ public struct ExecuteStatementInput { dbUser: Swift.String? = nil, parameters: [RedshiftDataClientTypes.SqlParameter]? = nil, secretArn: Swift.String? = nil, + sessionId: Swift.String? = nil, + sessionKeepAliveSeconds: Swift.Int? = nil, sql: Swift.String? = nil, statementName: Swift.String? = nil, withEvent: Swift.Bool? = nil, @@ -773,6 +845,8 @@ public struct ExecuteStatementInput { self.dbUser = dbUser self.parameters = parameters self.secretArn = secretArn + self.sessionId = sessionId + self.sessionKeepAliveSeconds = sessionKeepAliveSeconds self.sql = sql self.statementName = statementName self.withEvent = withEvent @@ -787,12 +861,16 @@ public struct ExecuteStatementOutput { public var createdAt: Foundation.Date? /// The name of the database. public var database: Swift.String? + /// A list of colon (:) separated names of database groups. + public var dbGroups: [Swift.String]? /// The database user name. public var dbUser: Swift.String? /// The identifier of the SQL statement whose results are to be fetched. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. public var id: Swift.String? /// The name or ARN of the secret that enables access to the database. public var secretArn: Swift.String? + /// The session identifier of the query. + public var sessionId: Swift.String? /// The serverless workgroup name or Amazon Resource Name (ARN). This element is not returned when connecting to a provisioned cluster. public var workgroupName: Swift.String? @@ -800,18 +878,22 @@ public struct ExecuteStatementOutput { clusterIdentifier: Swift.String? = nil, createdAt: Foundation.Date? = nil, database: Swift.String? = nil, + dbGroups: [Swift.String]? = nil, dbUser: Swift.String? = nil, id: Swift.String? = nil, secretArn: Swift.String? = nil, + sessionId: Swift.String? = nil, workgroupName: Swift.String? = nil ) { self.clusterIdentifier = clusterIdentifier self.createdAt = createdAt self.database = database + self.dbGroups = dbGroups self.dbUser = dbUser self.id = id self.secretArn = secretArn + self.sessionId = sessionId self.workgroupName = workgroupName } } @@ -887,7 +969,7 @@ public struct ListDatabasesInput { /// The database user name. This parameter is required when connecting to a cluster as a database user and authenticating using temporary credentials. public var dbUser: Swift.String? /// The maximum number of databases to return in the response. If more databases exist than fit in one response, then NextToken is returned to page through the results. - public var maxResults: Swift.Int + public var maxResults: Swift.Int? /// A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request. public var nextToken: Swift.String? /// The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager. @@ -899,7 +981,7 @@ public struct ListDatabasesInput { clusterIdentifier: Swift.String? = nil, database: Swift.String? = nil, dbUser: Swift.String? = nil, - maxResults: Swift.Int = 0, + maxResults: Swift.Int? = nil, nextToken: Swift.String? = nil, secretArn: Swift.String? = nil, workgroupName: Swift.String? = nil @@ -942,7 +1024,7 @@ public struct ListSchemasInput { /// The database user name. This parameter is required when connecting to a cluster as a database user and authenticating using temporary credentials. public var dbUser: Swift.String? /// The maximum number of schemas to return in the response. If more schemas exist than fit in one response, then NextToken is returned to page through the results. - public var maxResults: Swift.Int + public var maxResults: Swift.Int? /// A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request. public var nextToken: Swift.String? /// A pattern to filter results by schema name. Within a schema pattern, "%" means match any substring of 0 or more characters and "_" means match any one character. Only schema name entries matching the search pattern are returned. @@ -957,7 +1039,7 @@ public struct ListSchemasInput { connectedDatabase: Swift.String? = nil, database: Swift.String? = nil, dbUser: Swift.String? = nil, - maxResults: Swift.Int = 0, + maxResults: Swift.Int? = nil, nextToken: Swift.String? = nil, schemaPattern: Swift.String? = nil, secretArn: Swift.String? = nil, @@ -994,7 +1076,7 @@ public struct ListSchemasOutput { public struct ListStatementsInput { /// The maximum number of SQL statements to return in the response. If more SQL statements exist than fit in one response, then NextToken is returned to page through the results. - public var maxResults: Swift.Int + public var maxResults: Swift.Int? /// A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request. public var nextToken: Swift.String? /// A value that filters which statements to return in the response. If true, all statements run by the caller's IAM role are returned. If false, only statements run by the caller's IAM role in the current IAM session are returned. The default is true. @@ -1019,7 +1101,7 @@ public struct ListStatementsInput { public var status: RedshiftDataClientTypes.StatusString? public init( - maxResults: Swift.Int = 0, + maxResults: Swift.Int? = nil, nextToken: Swift.String? = nil, roleLevel: Swift.Bool? = nil, statementName: Swift.String? = nil, @@ -1052,6 +1134,8 @@ extension RedshiftDataClientTypes { public var queryStrings: [Swift.String]? /// The name or Amazon Resource Name (ARN) of the secret that enables access to the database. public var secretArn: Swift.String? + /// The session identifier of the query. + public var sessionId: Swift.String? /// The name of the SQL statement. public var statementName: Swift.String? /// The status of the SQL statement. An example is the that the SQL statement finished. @@ -1067,6 +1151,7 @@ extension RedshiftDataClientTypes { queryString: Swift.String? = nil, queryStrings: [Swift.String]? = nil, secretArn: Swift.String? = nil, + sessionId: Swift.String? = nil, statementName: Swift.String? = nil, status: RedshiftDataClientTypes.StatusString? = nil, updatedAt: Foundation.Date? = nil @@ -1079,6 +1164,7 @@ extension RedshiftDataClientTypes { self.queryString = queryString self.queryStrings = queryStrings self.secretArn = secretArn + self.sessionId = sessionId self.statementName = statementName self.status = status self.updatedAt = updatedAt @@ -1115,7 +1201,7 @@ public struct ListTablesInput { /// The database user name. This parameter is required when connecting to a cluster as a database user and authenticating using temporary credentials. public var dbUser: Swift.String? /// The maximum number of tables to return in the response. If more tables exist than fit in one response, then NextToken is returned to page through the results. - public var maxResults: Swift.Int + public var maxResults: Swift.Int? /// A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request. public var nextToken: Swift.String? /// A pattern to filter results by schema name. Within a schema pattern, "%" means match any substring of 0 or more characters and "_" means match any one character. Only schema name entries matching the search pattern are returned. If SchemaPattern is not specified, then all tables that match TablePattern are returned. If neither SchemaPattern or TablePattern are specified, then all tables are returned. @@ -1132,7 +1218,7 @@ public struct ListTablesInput { connectedDatabase: Swift.String? = nil, database: Swift.String? = nil, dbUser: Swift.String? = nil, - maxResults: Swift.Int = 0, + maxResults: Swift.Int? = nil, nextToken: Swift.String? = nil, schemaPattern: Swift.String? = nil, secretArn: Swift.String? = nil, @@ -1272,6 +1358,8 @@ extension BatchExecuteStatementInput { try writer["Database"].write(value.database) try writer["DbUser"].write(value.dbUser) try writer["SecretArn"].write(value.secretArn) + try writer["SessionId"].write(value.sessionId) + try writer["SessionKeepAliveSeconds"].write(value.sessionKeepAliveSeconds) try writer["Sqls"].writeList(value.sqls, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) try writer["StatementName"].write(value.statementName) try writer["WithEvent"].write(value.withEvent) @@ -1322,6 +1410,8 @@ extension ExecuteStatementInput { try writer["DbUser"].write(value.dbUser) try writer["Parameters"].writeList(value.parameters, memberWritingClosure: RedshiftDataClientTypes.SqlParameter.write(value:to:), memberNodeInfo: "member", isFlattened: false) try writer["SecretArn"].write(value.secretArn) + try writer["SessionId"].write(value.sessionId) + try writer["SessionKeepAliveSeconds"].write(value.sessionKeepAliveSeconds) try writer["Sql"].write(value.sql) try writer["StatementName"].write(value.statementName) try writer["WithEvent"].write(value.withEvent) @@ -1407,9 +1497,11 @@ extension BatchExecuteStatementOutput { value.clusterIdentifier = try reader["ClusterIdentifier"].readIfPresent() value.createdAt = try reader["CreatedAt"].readTimestampIfPresent(format: .epochSeconds) value.database = try reader["Database"].readIfPresent() + value.dbGroups = try reader["DbGroups"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) value.dbUser = try reader["DbUser"].readIfPresent() value.id = try reader["Id"].readIfPresent() value.secretArn = try reader["SecretArn"].readIfPresent() + value.sessionId = try reader["SessionId"].readIfPresent() value.workgroupName = try reader["WorkgroupName"].readIfPresent() return value } @@ -1449,6 +1541,7 @@ extension DescribeStatementOutput { value.resultRows = try reader["ResultRows"].readIfPresent() ?? 0 value.resultSize = try reader["ResultSize"].readIfPresent() ?? 0 value.secretArn = try reader["SecretArn"].readIfPresent() + value.sessionId = try reader["SessionId"].readIfPresent() value.status = try reader["Status"].readIfPresent() value.subStatements = try reader["SubStatements"].readListIfPresent(memberReadingClosure: RedshiftDataClientTypes.SubStatementData.read(from:), memberNodeInfo: "member", isFlattened: false) value.updatedAt = try reader["UpdatedAt"].readTimestampIfPresent(format: .epochSeconds) @@ -1481,9 +1574,11 @@ extension ExecuteStatementOutput { value.clusterIdentifier = try reader["ClusterIdentifier"].readIfPresent() value.createdAt = try reader["CreatedAt"].readTimestampIfPresent(format: .epochSeconds) value.database = try reader["Database"].readIfPresent() + value.dbGroups = try reader["DbGroups"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) value.dbUser = try reader["DbUser"].readIfPresent() value.id = try reader["Id"].readIfPresent() value.secretArn = try reader["SecretArn"].readIfPresent() + value.sessionId = try reader["SessionId"].readIfPresent() value.workgroupName = try reader["WorkgroupName"].readIfPresent() return value } @@ -1564,8 +1659,10 @@ enum BatchExecuteStatementOutputError { let baseError = try AWSClientRuntime.AWSJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) if let error = baseError.customError() { return error } switch baseError.code { + case "ActiveSessionsExceededException": return try ActiveSessionsExceededException.makeError(baseError: baseError) case "ActiveStatementsExceededException": return try ActiveStatementsExceededException.makeError(baseError: baseError) case "BatchExecuteStatementException": return try BatchExecuteStatementException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) } @@ -1615,6 +1712,7 @@ enum DescribeTableOutputError { switch baseError.code { case "DatabaseConnectionException": return try DatabaseConnectionException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "QueryTimeoutException": return try QueryTimeoutException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) } @@ -1629,8 +1727,10 @@ enum ExecuteStatementOutputError { let baseError = try AWSClientRuntime.AWSJSONError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) if let error = baseError.customError() { return error } switch baseError.code { + case "ActiveSessionsExceededException": return try ActiveSessionsExceededException.makeError(baseError: baseError) case "ActiveStatementsExceededException": return try ActiveStatementsExceededException.makeError(baseError: baseError) case "ExecuteStatementException": return try ExecuteStatementException.makeError(baseError: baseError) + case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) } @@ -1663,6 +1763,7 @@ enum ListDatabasesOutputError { switch baseError.code { case "DatabaseConnectionException": return try DatabaseConnectionException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "QueryTimeoutException": return try QueryTimeoutException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) } @@ -1679,6 +1780,7 @@ enum ListSchemasOutputError { switch baseError.code { case "DatabaseConnectionException": return try DatabaseConnectionException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "QueryTimeoutException": return try QueryTimeoutException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) } @@ -1710,12 +1812,26 @@ enum ListTablesOutputError { switch baseError.code { case "DatabaseConnectionException": return try DatabaseConnectionException.makeError(baseError: baseError) case "InternalServerException": return try InternalServerException.makeError(baseError: baseError) + case "QueryTimeoutException": return try QueryTimeoutException.makeError(baseError: baseError) case "ValidationException": return try ValidationException.makeError(baseError: baseError) default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) } } } +extension InternalServerException { + + static func makeError(baseError: AWSClientRuntime.AWSJSONError) throws -> InternalServerException { + let reader = baseError.errorBodyReader + var value = InternalServerException() + value.properties.message = try reader["Message"].readIfPresent() + value.httpResponse = baseError.httpResponse + value.requestID = baseError.requestID + value.message = baseError.message + return value + } +} + extension ActiveStatementsExceededException { static func makeError(baseError: AWSClientRuntime.AWSJSONError) throws -> ActiveStatementsExceededException { @@ -1729,13 +1845,12 @@ extension ActiveStatementsExceededException { } } -extension BatchExecuteStatementException { +extension ActiveSessionsExceededException { - static func makeError(baseError: AWSClientRuntime.AWSJSONError) throws -> BatchExecuteStatementException { + static func makeError(baseError: AWSClientRuntime.AWSJSONError) throws -> ActiveSessionsExceededException { let reader = baseError.errorBodyReader - var value = BatchExecuteStatementException() + var value = ActiveSessionsExceededException() value.properties.message = try reader["Message"].readIfPresent() - value.properties.statementId = try reader["StatementId"].readIfPresent() value.httpResponse = baseError.httpResponse value.requestID = baseError.requestID value.message = baseError.message @@ -1743,12 +1858,13 @@ extension BatchExecuteStatementException { } } -extension ValidationException { +extension BatchExecuteStatementException { - static func makeError(baseError: AWSClientRuntime.AWSJSONError) throws -> ValidationException { + static func makeError(baseError: AWSClientRuntime.AWSJSONError) throws -> BatchExecuteStatementException { let reader = baseError.errorBodyReader - var value = ValidationException() + var value = BatchExecuteStatementException() value.properties.message = try reader["Message"].readIfPresent() + value.properties.statementId = try reader["StatementId"].readIfPresent() value.httpResponse = baseError.httpResponse value.requestID = baseError.requestID value.message = baseError.message @@ -1756,11 +1872,11 @@ extension ValidationException { } } -extension InternalServerException { +extension ValidationException { - static func makeError(baseError: AWSClientRuntime.AWSJSONError) throws -> InternalServerException { + static func makeError(baseError: AWSClientRuntime.AWSJSONError) throws -> ValidationException { let reader = baseError.errorBodyReader - var value = InternalServerException() + var value = ValidationException() value.properties.message = try reader["Message"].readIfPresent() value.httpResponse = baseError.httpResponse value.requestID = baseError.requestID @@ -1796,6 +1912,19 @@ extension DatabaseConnectionException { } } +extension QueryTimeoutException { + + static func makeError(baseError: AWSClientRuntime.AWSJSONError) throws -> QueryTimeoutException { + let reader = baseError.errorBodyReader + var value = QueryTimeoutException() + value.properties.message = try reader["Message"].readIfPresent() + value.httpResponse = baseError.httpResponse + value.requestID = baseError.requestID + value.message = baseError.message + return value + } +} + extension ExecuteStatementException { static func makeError(baseError: AWSClientRuntime.AWSJSONError) throws -> ExecuteStatementException { @@ -1908,6 +2037,7 @@ extension RedshiftDataClientTypes.StatementData { value.updatedAt = try reader["UpdatedAt"].readTimestampIfPresent(format: .epochSeconds) value.queryParameters = try reader["QueryParameters"].readListIfPresent(memberReadingClosure: RedshiftDataClientTypes.SqlParameter.read(from:), memberNodeInfo: "member", isFlattened: false) value.isBatchStatement = try reader["IsBatchStatement"].readIfPresent() + value.sessionId = try reader["SessionId"].readIfPresent() return value } } diff --git a/Sources/Services/AWSRedshiftData/Sources/AWSRedshiftData/RedshiftDataClient.swift b/Sources/Services/AWSRedshiftData/Sources/AWSRedshiftData/RedshiftDataClient.swift index e11510c93d7..5b1c89623ee 100644 --- a/Sources/Services/AWSRedshiftData/Sources/AWSRedshiftData/RedshiftDataClient.swift +++ b/Sources/Services/AWSRedshiftData/Sources/AWSRedshiftData/RedshiftDataClient.swift @@ -219,8 +219,10 @@ extension RedshiftDataClient { /// - Throws: One of the exceptions listed below __Possible Exceptions__. /// /// __Possible Exceptions:__ + /// - `ActiveSessionsExceededException` : The Amazon Redshift Data API operation failed because the maximum number of active sessions exceeded. /// - `ActiveStatementsExceededException` : The number of active statements exceeds the limit. /// - `BatchExecuteStatementException` : An SQL statement encountered an environmental error while running. + /// - `InternalServerException` : The Amazon Redshift Data API operation failed due to invalid input. /// - `ValidationException` : The Amazon Redshift Data API operation failed due to invalid input. public func batchExecuteStatement(input: BatchExecuteStatementInput) async throws -> BatchExecuteStatementOutput { let context = Smithy.ContextBuilder() @@ -458,6 +460,7 @@ extension RedshiftDataClient { /// __Possible Exceptions:__ /// - `DatabaseConnectionException` : Connection to a database failed. /// - `InternalServerException` : The Amazon Redshift Data API operation failed due to invalid input. + /// - `QueryTimeoutException` : The Amazon Redshift Data API operation failed due to timeout. /// - `ValidationException` : The Amazon Redshift Data API operation failed due to invalid input. public func describeTable(input: DescribeTableInput) async throws -> DescribeTableOutput { let context = Smithy.ContextBuilder() @@ -545,8 +548,10 @@ extension RedshiftDataClient { /// - Throws: One of the exceptions listed below __Possible Exceptions__. /// /// __Possible Exceptions:__ + /// - `ActiveSessionsExceededException` : The Amazon Redshift Data API operation failed because the maximum number of active sessions exceeded. /// - `ActiveStatementsExceededException` : The number of active statements exceeds the limit. /// - `ExecuteStatementException` : The SQL statement encountered an environmental error while running. + /// - `InternalServerException` : The Amazon Redshift Data API operation failed due to invalid input. /// - `ValidationException` : The Amazon Redshift Data API operation failed due to invalid input. public func executeStatement(input: ExecuteStatementInput) async throws -> ExecuteStatementOutput { let context = Smithy.ContextBuilder() @@ -710,6 +715,7 @@ extension RedshiftDataClient { /// __Possible Exceptions:__ /// - `DatabaseConnectionException` : Connection to a database failed. /// - `InternalServerException` : The Amazon Redshift Data API operation failed due to invalid input. + /// - `QueryTimeoutException` : The Amazon Redshift Data API operation failed due to timeout. /// - `ValidationException` : The Amazon Redshift Data API operation failed due to invalid input. public func listDatabases(input: ListDatabasesInput) async throws -> ListDatabasesOutput { let context = Smithy.ContextBuilder() @@ -799,6 +805,7 @@ extension RedshiftDataClient { /// __Possible Exceptions:__ /// - `DatabaseConnectionException` : Connection to a database failed. /// - `InternalServerException` : The Amazon Redshift Data API operation failed due to invalid input. + /// - `QueryTimeoutException` : The Amazon Redshift Data API operation failed due to timeout. /// - `ValidationException` : The Amazon Redshift Data API operation failed due to invalid input. public func listSchemas(input: ListSchemasInput) async throws -> ListSchemasOutput { let context = Smithy.ContextBuilder() @@ -960,6 +967,7 @@ extension RedshiftDataClient { /// __Possible Exceptions:__ /// - `DatabaseConnectionException` : Connection to a database failed. /// - `InternalServerException` : The Amazon Redshift Data API operation failed due to invalid input. + /// - `QueryTimeoutException` : The Amazon Redshift Data API operation failed due to timeout. /// - `ValidationException` : The Amazon Redshift Data API operation failed due to invalid input. public func listTables(input: ListTablesInput) async throws -> ListTablesOutput { let context = Smithy.ContextBuilder() diff --git a/packageDependencies.plist b/packageDependencies.plist index 0a7480e1bad..d5e48cda2e0 100644 --- a/packageDependencies.plist +++ b/packageDependencies.plist @@ -9,6 +9,6 @@ clientRuntimeBranch main clientRuntimeVersion - 0.60.0 + 0.61.0