From b85f397129258158d462ad9f8974ec3e2cc29a34 Mon Sep 17 00:00:00 2001 From: AWS SDK Swift Automation Date: Thu, 24 Oct 2024 18:56:49 +0000 Subject: [PATCH] chore: Updates version to 1.0.27 --- Package.swift | 3 +- Package.version | 2 +- Package.version.next | 2 +- .../Documentation.docc/AWSSDKForSwift.md | 2 - .../AWSAppConfig/AppConfigClient.swift | 3 +- .../Sources/AWSAppConfig/Models.swift | 26 +- .../AWSEC2/Sources/AWSEC2/EC2Client.swift | 64 + .../AWSEC2/Sources/AWSEC2/Models.swift | 432 +- .../AWSEC2/Sources/AWSEC2/Paginators.swift | 33 + .../AWSECS/Sources/AWSECS/Models.swift | 9 +- Sources/Services/AWSNimble/Package.swift.txt | 99 - .../AWSNimble/AuthSchemeResolver.swift | 56 - .../Sources/AWSNimble/Endpoints.swift | 73 - .../AWSNimble/Sources/AWSNimble/Models.swift | 8338 ----------------- .../Sources/AWSNimble/NimbleClient.swift | 3835 -------- .../AWSNimble/Sources/AWSNimble/Plugins.swift | 82 - .../AWSNimble/Resources/Package.version | 1 - .../AWSNimble/Sources/AWSNimble/Waiters.swift | 13 - .../AWSNimbleTests/EndpointResolverTest.swift | 616 -- .../AWSPCS/Sources/AWSPCS/Models.swift | 4 +- .../Sources/AWSQBusiness/Models.swift | 5 + packageDependencies.plist | 2 +- 22 files changed, 476 insertions(+), 13224 deletions(-) delete mode 100644 Sources/Services/AWSNimble/Package.swift.txt delete mode 100644 Sources/Services/AWSNimble/Sources/AWSNimble/AuthSchemeResolver.swift delete mode 100644 Sources/Services/AWSNimble/Sources/AWSNimble/Endpoints.swift delete mode 100644 Sources/Services/AWSNimble/Sources/AWSNimble/Models.swift delete mode 100644 Sources/Services/AWSNimble/Sources/AWSNimble/NimbleClient.swift delete mode 100644 Sources/Services/AWSNimble/Sources/AWSNimble/Plugins.swift delete mode 100644 Sources/Services/AWSNimble/Sources/AWSNimble/Resources/Package.version delete mode 100644 Sources/Services/AWSNimble/Sources/AWSNimble/Waiters.swift delete mode 100644 Sources/Services/AWSNimble/Tests/AWSNimbleTests/EndpointResolverTest.swift diff --git a/Package.swift b/Package.swift index aef65c3959a..6aacfc69401 100644 --- a/Package.swift +++ b/Package.swift @@ -15,7 +15,7 @@ import PackageDescription // MARK: - Dynamic Content -let clientRuntimeVersion: Version = "0.83.0" +let clientRuntimeVersion: Version = "0.84.0" let crtVersion: Version = "0.37.0" let excludeRuntimeUnitTests = false @@ -276,7 +276,6 @@ let serviceTargets: [String] = [ "AWSNetworkFirewall", "AWSNetworkManager", "AWSNetworkMonitor", - "AWSNimble", "AWSOAM", "AWSOSIS", "AWSOmics", diff --git a/Package.version b/Package.version index 7717884db13..3f11ef63078 100644 --- a/Package.version +++ b/Package.version @@ -1 +1 @@ -1.0.26 \ No newline at end of file +1.0.27 \ No newline at end of file diff --git a/Package.version.next b/Package.version.next index 3f11ef63078..f8536a434c8 100644 --- a/Package.version.next +++ b/Package.version.next @@ -1 +1 @@ -1.0.27 \ No newline at end of file +1.0.28 \ No newline at end of file diff --git a/Sources/Core/AWSSDKForSwift/Documentation.docc/AWSSDKForSwift.md b/Sources/Core/AWSSDKForSwift/Documentation.docc/AWSSDKForSwift.md index 03e214b1a75..fb2eb22bd98 100644 --- a/Sources/Core/AWSSDKForSwift/Documentation.docc/AWSSDKForSwift.md +++ b/Sources/Core/AWSSDKForSwift/Documentation.docc/AWSSDKForSwift.md @@ -583,8 +583,6 @@ This SDK is open-source. Code is available on Github [here](https://github.com/ [AWSNetworkMonitor](../../../../../swift/api/awsnetworkmonitor/latest) -[AWSNimble](../../../../../swift/api/awsnimble/latest) - [AWSOAM](../../../../../swift/api/awsoam/latest) [AWSOSIS](../../../../../swift/api/awsosis/latest) diff --git a/Sources/Services/AWSAppConfig/Sources/AWSAppConfig/AppConfigClient.swift b/Sources/Services/AWSAppConfig/Sources/AWSAppConfig/AppConfigClient.swift index f16f2ce4e96..f77a3e3676f 100644 --- a/Sources/Services/AWSAppConfig/Sources/AWSAppConfig/AppConfigClient.swift +++ b/Sources/Services/AWSAppConfig/Sources/AWSAppConfig/AppConfigClient.swift @@ -2593,7 +2593,7 @@ extension AppConfigClient { /// Performs the `StopDeployment` operation on the `AmazonAppConfig` service. /// - /// Stops a deployment. This API action works only on deployments that have a status of DEPLOYING. This action moves the deployment to a status of ROLLED_BACK. + /// Stops a deployment. This API action works only on deployments that have a status of DEPLOYING, unless an AllowRevert parameter is supplied. If the AllowRevert parameter is supplied, the status of an in-progress deployment will be ROLLED_BACK. The status of a completed deployment will be REVERTED. AppConfig only allows a revert within 72 hours of deployment completion. /// /// - Parameter StopDeploymentInput : [no documentation found] /// @@ -2633,6 +2633,7 @@ extension AppConfigClient { } builder.interceptors.add(ClientRuntime.URLPathMiddleware(StopDeploymentInput.urlPathProvider(_:))) builder.interceptors.add(ClientRuntime.URLHostMiddleware()) + builder.serialize(ClientRuntime.HeaderMiddleware(StopDeploymentInput.headerProvider(_:))) builder.deserialize(ClientRuntime.DeserializeMiddleware(StopDeploymentOutput.httpOutput(from:), StopDeploymentOutputError.httpError(from:))) builder.interceptors.add(ClientRuntime.LoggerMiddleware(clientLogMode: config.clientLogMode)) builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions)) diff --git a/Sources/Services/AWSAppConfig/Sources/AWSAppConfig/Models.swift b/Sources/Services/AWSAppConfig/Sources/AWSAppConfig/Models.swift index a554eec93ec..b38967284a6 100644 --- a/Sources/Services/AWSAppConfig/Sources/AWSAppConfig/Models.swift +++ b/Sources/Services/AWSAppConfig/Sources/AWSAppConfig/Models.swift @@ -820,6 +820,7 @@ extension AppConfigClientTypes { public enum EnvironmentState: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { case deploying case readyForDeployment + case reverted case rolledBack case rollingBack case sdkUnknown(Swift.String) @@ -828,6 +829,7 @@ extension AppConfigClientTypes { return [ .deploying, .readyForDeployment, + .reverted, .rolledBack, .rollingBack ] @@ -842,6 +844,7 @@ extension AppConfigClientTypes { switch self { case .deploying: return "DEPLOYING" case .readyForDeployment: return "READY_FOR_DEPLOYMENT" + case .reverted: return "REVERTED" case .rolledBack: return "ROLLED_BACK" case .rollingBack: return "ROLLING_BACK" case let .sdkUnknown(s): return s @@ -1427,7 +1430,7 @@ public struct GetConfigurationInput: Swift.Sendable { /// The application to get. Specify either the application name or the application ID. /// This member is required. public var application: Swift.String? - /// The configuration version returned in the most recent [GetConfiguration] response. AppConfig uses the value of the ClientConfigurationVersion parameter to identify the configuration version on your clients. If you don’t send ClientConfigurationVersion with each call to [GetConfiguration], your clients receive the current configuration. You are charged each time your clients receive a configuration. To avoid excess charges, we recommend you use the [StartConfigurationSession](https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/StartConfigurationSession.html) and [GetLatestConfiguration](https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/GetLatestConfiguration.html) APIs, which track the client configuration version on your behalf. If you choose to continue using [GetConfiguration], we recommend that you include the ClientConfigurationVersion value with every call to [GetConfiguration]. The value to use for ClientConfigurationVersion comes from the ConfigurationVersion attribute returned by [GetConfiguration] when there is new or updated data, and should be saved for subsequent calls to [GetConfiguration]. For more information about working with configurations, see [Retrieving the Configuration](http://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-retrieving-the-configuration.html) in the AppConfig User Guide. + /// The configuration version returned in the most recent [GetConfiguration] response. AppConfig uses the value of the ClientConfigurationVersion parameter to identify the configuration version on your clients. If you don’t send ClientConfigurationVersion with each call to [GetConfiguration], your clients receive the current configuration. You are charged each time your clients receive a configuration. To avoid excess charges, we recommend you use the [StartConfigurationSession](https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/StartConfigurationSession.html) and [GetLatestConfiguration](https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/GetLatestConfiguration.html) APIs, which track the client configuration version on your behalf. If you choose to continue using [GetConfiguration], we recommend that you include the ClientConfigurationVersion value with every call to [GetConfiguration]. The value to use for ClientConfigurationVersion comes from the ConfigurationVersion attribute returned by [GetConfiguration] when there is new or updated data, and should be saved for subsequent calls to [GetConfiguration]. For more information about working with configurations, see [Retrieving feature flags and configuration data in AppConfig](http://docs.aws.amazon.com/appconfig/latest/userguide/retrieving-feature-flags.html) in the AppConfig User Guide. public var clientConfigurationVersion: Swift.String? /// The clientId parameter in the following command is a unique, user-specified ID to identify the client for the configuration. This ID enables AppConfig to deploy the configuration in intervals, as defined in the deployment strategy. /// This member is required. @@ -1605,6 +1608,7 @@ extension AppConfigClientTypes { case deploymentCompleted case deploymentStarted case percentageUpdated + case revertCompleted case rollbackCompleted case rollbackStarted case sdkUnknown(Swift.String) @@ -1615,6 +1619,7 @@ extension AppConfigClientTypes { .deploymentCompleted, .deploymentStarted, .percentageUpdated, + .revertCompleted, .rollbackCompleted, .rollbackStarted ] @@ -1631,6 +1636,7 @@ extension AppConfigClientTypes { case .deploymentCompleted: return "DEPLOYMENT_COMPLETED" case .deploymentStarted: return "DEPLOYMENT_STARTED" case .percentageUpdated: return "PERCENTAGE_UPDATED" + case .revertCompleted: return "REVERT_COMPLETED" case .rollbackCompleted: return "ROLLBACK_COMPLETED" case .rollbackStarted: return "ROLLBACK_STARTED" case let .sdkUnknown(s): return s @@ -1718,6 +1724,7 @@ extension AppConfigClientTypes { case baking case complete case deploying + case reverted case rolledBack case rollingBack case validating @@ -1728,6 +1735,7 @@ extension AppConfigClientTypes { .baking, .complete, .deploying, + .reverted, .rolledBack, .rollingBack, .validating @@ -1744,6 +1752,7 @@ extension AppConfigClientTypes { case .baking: return "BAKING" case .complete: return "COMPLETE" case .deploying: return "DEPLOYING" + case .reverted: return "REVERTED" case .rolledBack: return "ROLLED_BACK" case .rollingBack: return "ROLLING_BACK" case .validating: return "VALIDATING" @@ -2893,6 +2902,8 @@ public struct StartDeploymentOutput: Swift.Sendable { } public struct StopDeploymentInput: Swift.Sendable { + /// A Boolean that enables AppConfig to rollback a COMPLETED deployment to the previous configuration version. This action moves the deployment to a status of REVERTED. + public var allowRevert: Swift.Bool? /// The application ID. /// This member is required. public var applicationId: Swift.String? @@ -2904,11 +2915,13 @@ public struct StopDeploymentInput: Swift.Sendable { public var environmentId: Swift.String? public init( + allowRevert: Swift.Bool? = false, applicationId: Swift.String? = nil, deploymentNumber: Swift.Int? = 0, environmentId: Swift.String? = nil ) { + self.allowRevert = allowRevert self.applicationId = applicationId self.deploymentNumber = deploymentNumber self.environmentId = environmentId @@ -4098,6 +4111,17 @@ extension StopDeploymentInput { } } +extension StopDeploymentInput { + + static func headerProvider(_ value: StopDeploymentInput) -> SmithyHTTPAPI.Headers { + var items = SmithyHTTPAPI.Headers() + if let allowRevert = value.allowRevert { + items.add(SmithyHTTPAPI.Header(name: "Allow-Revert", value: Swift.String(allowRevert))) + } + return items + } +} + extension TagResourceInput { static func urlPathProvider(_ value: TagResourceInput) -> Swift.String? { diff --git a/Sources/Services/AWSEC2/Sources/AWSEC2/EC2Client.swift b/Sources/Services/AWSEC2/Sources/AWSEC2/EC2Client.swift index ed92641c336..e40c35c444c 100644 --- a/Sources/Services/AWSEC2/Sources/AWSEC2/EC2Client.swift +++ b/Sources/Services/AWSEC2/Sources/AWSEC2/EC2Client.swift @@ -17914,6 +17914,70 @@ extension EC2Client { return try await op.execute(input: input) } + /// Performs the `DescribeInstanceImageMetadata` operation on the `AmazonEC2` service. + /// + /// Describes the AMI that was used to launch an instance, even if the AMI is deprecated, deregistered, or made private (no longer public or shared with your account). If you specify instance IDs, the output includes information for only the specified instances. If you specify filters, the output includes information for only those instances that meet the filter criteria. If you do not specify instance IDs or filters, the output includes information for all instances, which can affect performance. If you specify an instance ID that is not valid, an instance that doesn't exist, or an instance that you do not own, an error (InvalidInstanceID.NotFound) is returned. Recently terminated instances might appear in the returned results. This interval is usually less than one hour. In the rare case where an Availability Zone is experiencing a service disruption and you specify instance IDs that are in the affected Availability Zone, or do not specify any instance IDs at all, the call fails. If you specify only instance IDs that are in an unaffected Availability Zone, the call works normally. The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order. + /// + /// - Parameter DescribeInstanceImageMetadataInput : [no documentation found] + /// + /// - Returns: `DescribeInstanceImageMetadataOutput` : [no documentation found] + public func describeInstanceImageMetadata(input: DescribeInstanceImageMetadataInput) async throws -> DescribeInstanceImageMetadataOutput { + let context = Smithy.ContextBuilder() + .withMethod(value: .post) + .withServiceName(value: serviceName) + .withOperation(value: "describeInstanceImageMetadata") + .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: "ec2") + .withSigningRegion(value: config.signingRegion) + .build() + let builder = ClientRuntime.OrchestratorBuilder() + config.interceptorProviders.forEach { provider in + builder.interceptors.add(provider.create()) + } + config.httpInterceptorProviders.forEach { provider in + builder.interceptors.add(provider.create()) + } + builder.interceptors.add(ClientRuntime.URLPathMiddleware(DescribeInstanceImageMetadataInput.urlPathProvider(_:))) + builder.interceptors.add(ClientRuntime.URLHostMiddleware()) + builder.interceptors.add(ClientRuntime.ContentLengthMiddleware()) + builder.deserialize(ClientRuntime.DeserializeMiddleware(DescribeInstanceImageMetadataOutput.httpOutput(from:), DescribeInstanceImageMetadataOutputError.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, useDualStack: config.useDualStack ?? false, 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.serialize(ClientRuntime.BodyMiddleware(rootNodeInfo: "", inputWritingClosure: DescribeInstanceImageMetadataInput.write(value:to:))) + builder.interceptors.add(ClientRuntime.ContentTypeMiddleware(contentType: "application/x-www-form-urlencoded")) + 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: "EC2") + metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "DescribeInstanceImageMetadata") + 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 `DescribeInstanceStatus` operation on the `AmazonEC2` service. /// /// Describes the status of the specified instances or all of your instances. By default, only running instances are described, unless you specifically indicate to return the status of all instances. Instance status includes the following components: diff --git a/Sources/Services/AWSEC2/Sources/AWSEC2/Models.swift b/Sources/Services/AWSEC2/Sources/AWSEC2/Models.swift index 5702161788e..53a966346f7 100644 --- a/Sources/Services/AWSEC2/Sources/AWSEC2/Models.swift +++ b/Sources/Services/AWSEC2/Sources/AWSEC2/Models.swift @@ -17179,11 +17179,11 @@ public struct CreateIpamPoolInput: Swift.Sendable { /// * The network border group for an Amazon Web Services Local Zone where you want this IPAM pool to be available for allocations ([supported Local Zones](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#byoip-zone-avail)). This option is only available for IPAM IPv4 pools in the public scope. /// /// - /// If you do not choose a locale, resources in Regions others than the IPAM's home region cannot use CIDRs from this pool. Possible values: Any Amazon Web Services Region or supported Amazon Web Services Local Zone. Default is none and means any locale. + /// Possible values: Any Amazon Web Services Region or supported Amazon Web Services Local Zone. Default is none and means any locale. public var locale: Swift.String? /// The IP address source for pools in the public scope. Only used for provisioning IP address CIDRs to pools in the public scope. Default is byoip. For more information, see [Create IPv6 pools](https://docs.aws.amazon.com/vpc/latest/ipam/intro-create-ipv6-pools.html) in the Amazon VPC IPAM User Guide. By default, you can add only one Amazon-provided IPv6 CIDR block to a top-level IPv6 pool if PublicIpSource is amazon. For information on increasing the default limit, see [ Quotas for your IPAM](https://docs.aws.amazon.com/vpc/latest/ipam/quotas-ipam.html) in the Amazon VPC IPAM User Guide. public var publicIpSource: EC2ClientTypes.IpamPoolPublicIpSource? - /// Determines if the pool is publicly advertisable. This option is not available for pools with AddressFamily set to ipv4. + /// Determines if the pool is publicly advertisable. The request can only contain PubliclyAdvertisable if AddressFamily is ipv6 and PublicIpSource is byoip. public var publiclyAdvertisable: Swift.Bool? /// The ID of the source IPAM pool. Use this option to create a pool within an existing pool. Note that the CIDR you provision for the pool within the source pool must be available in the source pool's CIDR range. public var sourceIpamPoolId: Swift.String? @@ -17964,7 +17964,7 @@ extension EC2ClientTypes { /// /// For io2 volumes, you can achieve up to 256,000 IOPS on [instances built on the Nitro System](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances). On other instances, you can achieve performance up to 32,000 IOPS. This parameter is supported for io1, io2, and gp3 volumes only. public var iops: Swift.Int? - /// The ARN of the symmetric Key Management Service (KMS) CMK used for encryption. + /// Identifier (key ID, key alias, key ARN, or alias ARN) of the customer managed KMS key to use for EBS encryption. public var kmsKeyId: Swift.String? /// The ID of the snapshot. public var snapshotId: Swift.String? @@ -19017,9 +19017,9 @@ extension EC2ClientTypes { public var disableApiTermination: Swift.Bool? /// Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance. public var ebsOptimized: Swift.Bool? - /// Deprecated. Amazon Elastic Graphics reached end of life on January 8, 2024. + /// Deprecated. Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances. public var elasticGpuSpecifications: [EC2ClientTypes.ElasticGpuSpecification]? - /// Deprecated. Amazon Elastic Inference is no longer available. + /// Amazon Elastic Inference is no longer available. An elastic inference accelerator to associate with the instance. Elastic inference accelerators are a resource you can attach to your Amazon EC2 instances to accelerate your Deep Learning (DL) inference workloads. You cannot specify accelerators from different generations in the same request. Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service. public var elasticInferenceAccelerators: [EC2ClientTypes.LaunchTemplateElasticInferenceAccelerator]? /// Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. For more information, see [What is Amazon Web Services Nitro Enclaves?](https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html) in the Amazon Web Services Nitro Enclaves User Guide. You can't enable Amazon Web Services Nitro Enclaves and hibernation on the same instance. public var enclaveOptions: EC2ClientTypes.LaunchTemplateEnclaveOptionsRequest? @@ -19351,7 +19351,7 @@ extension EC2ClientTypes { public var encrypted: Swift.Bool? /// The number of I/O operations per second (IOPS) that the volume supports. public var iops: Swift.Int? - /// The ARN of the Key Management Service (KMS) CMK used for encryption. + /// Identifier (key ID, key alias, key ARN, or alias ARN) of the customer managed KMS key to use for EBS encryption. public var kmsKeyId: Swift.String? /// The ID of the snapshot. public var snapshotId: Swift.String? @@ -19499,9 +19499,9 @@ extension EC2ClientTypes { extension EC2ClientTypes { - /// Amazon Elastic Graphics reached end of life on January 8, 2024. Describes an elastic GPU. + /// Deprecated. Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances. public struct ElasticGpuSpecificationResponse: Swift.Sendable { - /// The elastic GPU type. + /// Deprecated. Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances. public var type: Swift.String? public init( @@ -20076,9 +20076,9 @@ extension EC2ClientTypes { public var disableApiTermination: Swift.Bool? /// Indicates whether the instance is optimized for Amazon EBS I/O. public var ebsOptimized: Swift.Bool? - /// Deprecated. Amazon Elastic Graphics reached end of life on January 8, 2024. + /// Deprecated. Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances. public var elasticGpuSpecifications: [EC2ClientTypes.ElasticGpuSpecificationResponse]? - /// Deprecated. Amazon Elastic Inference is no longer available. + /// Amazon Elastic Inference is no longer available. An elastic inference accelerator to associate with the instance. Elastic inference accelerators are a resource you can attach to your Amazon EC2 instances to accelerate your Deep Learning (DL) inference workloads. You cannot specify accelerators from different generations in the same request. Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service. public var elasticInferenceAccelerators: [EC2ClientTypes.LaunchTemplateElasticInferenceAcceleratorResponse]? /// Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. public var enclaveOptions: EC2ClientTypes.LaunchTemplateEnclaveOptions? @@ -39429,6 +39429,234 @@ public struct DescribeInstanceEventWindowsOutput: Swift.Sendable { } } +public struct DescribeInstanceImageMetadataInput: Swift.Sendable { + /// Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. + public var dryRun: Swift.Bool? + /// The filters. + /// + /// * availability-zone - The name of the Availability Zone (for example, us-west-2a) or Local Zone (for example, us-west-2-lax-1b) of the instance. + /// + /// * instance-id - The ID of the instance. + /// + /// * instance-state-name - The state of the instance (pending | running | shutting-down | terminated | stopping | stopped). + /// + /// * instance-type - The type of instance (for example, t3.micro). + /// + /// * launch-time - The time when the instance was launched, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for example, 2023-09-29T11:04:43.305Z. You can use a wildcard (*), for example, 2023-09-29T*, which matches an entire day. + /// + /// * tag: - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value. + /// + /// * tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value. + /// + /// * zone-id - The ID of the Availability Zone (for example, usw2-az2) or Local Zone (for example, usw2-lax1-az1) of the instance. + public var filters: [EC2ClientTypes.Filter]? + /// The instance IDs. If you don't specify an instance ID or filters, the output includes information for all instances. + public var instanceIds: [Swift.String]? + /// The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see [Pagination](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination). Default: 1000 + public var maxResults: Swift.Int? + /// The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. + public var nextToken: Swift.String? + + public init( + dryRun: Swift.Bool? = nil, + filters: [EC2ClientTypes.Filter]? = nil, + instanceIds: [Swift.String]? = nil, + maxResults: Swift.Int? = nil, + nextToken: Swift.String? = nil + ) + { + self.dryRun = dryRun + self.filters = filters + self.instanceIds = instanceIds + self.maxResults = maxResults + self.nextToken = nextToken + } +} + +extension EC2ClientTypes { + + /// Information about the AMI. + public struct ImageMetadata: Swift.Sendable { + /// The date and time the AMI was created. + public var creationDate: Swift.String? + /// The deprecation date and time of the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ. + public var deprecationTime: Swift.String? + /// The ID of the AMI. + public var imageId: Swift.String? + /// The alias of the AMI owner. Valid values: amazon | aws-marketplace + public var imageOwnerAlias: Swift.String? + /// Indicates whether the AMI has public launch permissions. A value of true means this AMI has public launch permissions, while false means it has only implicit (AMI owner) or explicit (shared with your account) launch permissions. + public var isPublic: Swift.Bool? + /// The name of the AMI. + public var name: Swift.String? + /// The ID of the Amazon Web Services account that owns the AMI. + public var ownerId: Swift.String? + /// The current state of the AMI. If the state is available, the AMI is successfully registered and can be used to launch an instance. + public var state: EC2ClientTypes.ImageState? + + public init( + creationDate: Swift.String? = nil, + deprecationTime: Swift.String? = nil, + imageId: Swift.String? = nil, + imageOwnerAlias: Swift.String? = nil, + isPublic: Swift.Bool? = nil, + name: Swift.String? = nil, + ownerId: Swift.String? = nil, + state: EC2ClientTypes.ImageState? = nil + ) + { + self.creationDate = creationDate + self.deprecationTime = deprecationTime + self.imageId = imageId + self.imageOwnerAlias = imageOwnerAlias + self.isPublic = isPublic + self.name = name + self.ownerId = ownerId + self.state = state + } + } +} + +extension EC2ClientTypes { + + public enum InstanceStateName: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { + case pending + case running + case shuttingDown + case stopped + case stopping + case terminated + case sdkUnknown(Swift.String) + + public static var allCases: [InstanceStateName] { + return [ + .pending, + .running, + .shuttingDown, + .stopped, + .stopping, + .terminated + ] + } + + 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 .pending: return "pending" + case .running: return "running" + case .shuttingDown: return "shutting-down" + case .stopped: return "stopped" + case .stopping: return "stopping" + case .terminated: return "terminated" + case let .sdkUnknown(s): return s + } + } + } +} + +extension EC2ClientTypes { + + /// Describes the current state of an instance. + public struct InstanceState: Swift.Sendable { + /// The state of the instance as a 16-bit unsigned integer. The high byte is all of the bits between 2^8 and (2^16)-1, which equals decimal values between 256 and 65,535. These numerical values are used for internal purposes and should be ignored. The low byte is all of the bits between 2^0 and (2^8)-1, which equals decimal values between 0 and 255. The valid values for instance-state-code will all be in the range of the low byte and they are: + /// + /// * 0 : pending + /// + /// * 16 : running + /// + /// * 32 : shutting-down + /// + /// * 48 : terminated + /// + /// * 64 : stopping + /// + /// * 80 : stopped + /// + /// + /// You can ignore the high byte value by zeroing out all of the bits above 2^8 or 256 in decimal. + public var code: Swift.Int? + /// The current state of the instance. + public var name: EC2ClientTypes.InstanceStateName? + + public init( + code: Swift.Int? = nil, + name: EC2ClientTypes.InstanceStateName? = nil + ) + { + self.code = code + self.name = name + } + } +} + +extension EC2ClientTypes { + + /// Information about the instance and the AMI used to launch the instance. + public struct InstanceImageMetadata: Swift.Sendable { + /// The Availability Zone or Local Zone of the instance. + public var availabilityZone: Swift.String? + /// Information about the AMI used to launch the instance. + public var imageMetadata: EC2ClientTypes.ImageMetadata? + /// The ID of the instance. + public var instanceId: Swift.String? + /// The instance type. + public var instanceType: EC2ClientTypes.InstanceType? + /// The time the instance was launched. + public var launchTime: Foundation.Date? + /// The ID of the Amazon Web Services account that owns the instance. + public var ownerId: Swift.String? + /// The current state of the instance. + public var state: EC2ClientTypes.InstanceState? + /// Any tags assigned to the instance. + public var tags: [EC2ClientTypes.Tag]? + /// The ID of the Availability Zone or Local Zone of the instance. + public var zoneId: Swift.String? + + public init( + availabilityZone: Swift.String? = nil, + imageMetadata: EC2ClientTypes.ImageMetadata? = nil, + instanceId: Swift.String? = nil, + instanceType: EC2ClientTypes.InstanceType? = nil, + launchTime: Foundation.Date? = nil, + ownerId: Swift.String? = nil, + state: EC2ClientTypes.InstanceState? = nil, + tags: [EC2ClientTypes.Tag]? = nil, + zoneId: Swift.String? = nil + ) + { + self.availabilityZone = availabilityZone + self.imageMetadata = imageMetadata + self.instanceId = instanceId + self.instanceType = instanceType + self.launchTime = launchTime + self.ownerId = ownerId + self.state = state + self.tags = tags + self.zoneId = zoneId + } + } +} + +public struct DescribeInstanceImageMetadataOutput: Swift.Sendable { + /// Information about the instance and the AMI used to launch the instance. + public var instanceImageMetadata: [EC2ClientTypes.InstanceImageMetadata]? + /// The token to include in another request to get the next page of items. This value is null when there are no more items to return. + public var nextToken: Swift.String? + + public init( + instanceImageMetadata: [EC2ClientTypes.InstanceImageMetadata]? = nil, + nextToken: Swift.String? = nil + ) + { + self.instanceImageMetadata = instanceImageMetadata + self.nextToken = nextToken + } +} + public struct DescribeInstancesInput: Swift.Sendable { /// Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. public var dryRun: Swift.Bool? @@ -40499,82 +40727,6 @@ extension EC2ClientTypes { } } -extension EC2ClientTypes { - - public enum InstanceStateName: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case pending - case running - case shuttingDown - case stopped - case stopping - case terminated - case sdkUnknown(Swift.String) - - public static var allCases: [InstanceStateName] { - return [ - .pending, - .running, - .shuttingDown, - .stopped, - .stopping, - .terminated - ] - } - - 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 .pending: return "pending" - case .running: return "running" - case .shuttingDown: return "shutting-down" - case .stopped: return "stopped" - case .stopping: return "stopping" - case .terminated: return "terminated" - case let .sdkUnknown(s): return s - } - } - } -} - -extension EC2ClientTypes { - - /// Describes the current state of an instance. - public struct InstanceState: Swift.Sendable { - /// The state of the instance as a 16-bit unsigned integer. The high byte is all of the bits between 2^8 and (2^16)-1, which equals decimal values between 256 and 65,535. These numerical values are used for internal purposes and should be ignored. The low byte is all of the bits between 2^0 and (2^8)-1, which equals decimal values between 0 and 255. The valid values for instance-state-code will all be in the range of the low byte and they are: - /// - /// * 0 : pending - /// - /// * 16 : running - /// - /// * 32 : shutting-down - /// - /// * 48 : terminated - /// - /// * 64 : stopping - /// - /// * 80 : stopped - /// - /// - /// You can ignore the high byte value by zeroing out all of the bits above 2^8 or 256 in decimal. - public var code: Swift.Int? - /// The current state of the instance. - public var name: EC2ClientTypes.InstanceStateName? - - public init( - code: Swift.Int? = nil, - name: EC2ClientTypes.InstanceStateName? = nil - ) - { - self.code = code - self.name = name - } - } -} - extension EC2ClientTypes { /// Describes an instance. @@ -70080,6 +70232,13 @@ extension DescribeInstanceEventWindowsInput { } } +extension DescribeInstanceImageMetadataInput { + + static func urlPathProvider(_ value: DescribeInstanceImageMetadataInput) -> Swift.String? { + return "/" + } +} + extension DescribeInstancesInput { static func urlPathProvider(_ value: DescribeInstancesInput) -> Swift.String? { @@ -76754,6 +76913,24 @@ extension DescribeInstanceEventWindowsInput { } } +extension DescribeInstanceImageMetadataInput { + + static func write(value: DescribeInstanceImageMetadataInput?, to writer: SmithyFormURL.Writer) throws { + guard let value else { return } + try writer["DryRun"].write(value.dryRun) + if !(value.filters?.isEmpty ?? true) { + try writer["Filter"].writeList(value.filters, memberWritingClosure: EC2ClientTypes.Filter.write(value:to:), memberNodeInfo: "Filter", isFlattened: true) + } + if !(value.instanceIds?.isEmpty ?? true) { + try writer["InstanceId"].writeList(value.instanceIds, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "InstanceId", isFlattened: true) + } + try writer["MaxResults"].write(value.maxResults) + try writer["NextToken"].write(value.nextToken) + try writer["Action"].write("DescribeInstanceImageMetadata") + try writer["Version"].write("2016-11-15") + } +} + extension DescribeInstancesInput { static func write(value: DescribeInstancesInput?, to writer: SmithyFormURL.Writer) throws { @@ -85635,6 +85812,19 @@ extension DescribeInstanceEventWindowsOutput { } } +extension DescribeInstanceImageMetadataOutput { + + static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DescribeInstanceImageMetadataOutput { + let data = try await httpResponse.data() + let responseReader = try SmithyXML.Reader.from(data: data) + let reader = responseReader + var value = DescribeInstanceImageMetadataOutput() + value.instanceImageMetadata = try reader["instanceImageMetadataSet"].readListIfPresent(memberReadingClosure: EC2ClientTypes.InstanceImageMetadata.read(from:), memberNodeInfo: "item", isFlattened: false) + value.nextToken = try reader["nextToken"].readIfPresent() + return value + } +} + extension DescribeInstancesOutput { static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DescribeInstancesOutput { @@ -93659,6 +93849,19 @@ enum DescribeInstanceEventWindowsOutputError { } } +enum DescribeInstanceImageMetadataOutputError { + + static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { + let data = try await httpResponse.data() + let responseReader = try SmithyXML.Reader.from(data: data) + let baseError = try AWSClientRuntime.EC2QueryError(httpResponse: httpResponse, responseReader: responseReader, noErrorWrapping: false) + if let error = baseError.customError() { return error } + switch baseError.code { + default: return try AWSClientRuntime.UnknownAWSHTTPServiceError.makeError(baseError: baseError) + } + } +} + enum DescribeInstancesOutputError { static func httpError(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> Swift.Error { @@ -103398,6 +103601,52 @@ extension EC2ClientTypes.InstanceCreditSpecification { } } +extension EC2ClientTypes.InstanceImageMetadata { + + static func read(from reader: SmithyXML.Reader) throws -> EC2ClientTypes.InstanceImageMetadata { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = EC2ClientTypes.InstanceImageMetadata() + value.instanceId = try reader["instanceId"].readIfPresent() + value.instanceType = try reader["instanceType"].readIfPresent() + value.launchTime = try reader["launchTime"].readTimestampIfPresent(format: SmithyTimestamps.TimestampFormat.dateTime) + value.availabilityZone = try reader["availabilityZone"].readIfPresent() + value.zoneId = try reader["zoneId"].readIfPresent() + value.state = try reader["instanceState"].readIfPresent(with: EC2ClientTypes.InstanceState.read(from:)) + value.ownerId = try reader["instanceOwnerId"].readIfPresent() + value.tags = try reader["tagSet"].readListIfPresent(memberReadingClosure: EC2ClientTypes.Tag.read(from:), memberNodeInfo: "item", isFlattened: false) + value.imageMetadata = try reader["imageMetadata"].readIfPresent(with: EC2ClientTypes.ImageMetadata.read(from:)) + return value + } +} + +extension EC2ClientTypes.ImageMetadata { + + static func read(from reader: SmithyXML.Reader) throws -> EC2ClientTypes.ImageMetadata { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = EC2ClientTypes.ImageMetadata() + value.imageId = try reader["imageId"].readIfPresent() + value.name = try reader["name"].readIfPresent() + value.ownerId = try reader["imageOwnerId"].readIfPresent() + value.state = try reader["imageState"].readIfPresent() + value.imageOwnerAlias = try reader["imageOwnerAlias"].readIfPresent() + value.creationDate = try reader["creationDate"].readIfPresent() + value.deprecationTime = try reader["deprecationTime"].readIfPresent() + value.isPublic = try reader["isPublic"].readIfPresent() + return value + } +} + +extension EC2ClientTypes.InstanceState { + + static func read(from reader: SmithyXML.Reader) throws -> EC2ClientTypes.InstanceState { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = EC2ClientTypes.InstanceState() + value.code = try reader["code"].readIfPresent() + value.name = try reader["name"].readIfPresent() + return value + } +} + extension EC2ClientTypes.Reservation { static func read(from reader: SmithyXML.Reader) throws -> EC2ClientTypes.Reservation { @@ -103519,17 +103768,6 @@ extension EC2ClientTypes.Placement { } } -extension EC2ClientTypes.InstanceState { - - static func read(from reader: SmithyXML.Reader) throws -> EC2ClientTypes.InstanceState { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = EC2ClientTypes.InstanceState() - value.code = try reader["code"].readIfPresent() - value.name = try reader["name"].readIfPresent() - return value - } -} - extension EC2ClientTypes.InstanceMaintenanceOptions { static func read(from reader: SmithyXML.Reader) throws -> EC2ClientTypes.InstanceMaintenanceOptions { diff --git a/Sources/Services/AWSEC2/Sources/AWSEC2/Paginators.swift b/Sources/Services/AWSEC2/Sources/AWSEC2/Paginators.swift index c3902ea99b9..e803b84ac38 100644 --- a/Sources/Services/AWSEC2/Sources/AWSEC2/Paginators.swift +++ b/Sources/Services/AWSEC2/Sources/AWSEC2/Paginators.swift @@ -1136,6 +1136,39 @@ extension PaginatorSequence where OperationStackInput == DescribeInstanceEventWi return try await self.asyncCompactMap { item in item.instanceEventWindows } } } +extension EC2Client { + /// Paginate over `[DescribeInstanceImageMetadataOutput]` 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 `[DescribeInstanceImageMetadataInput]` to start pagination + /// - Returns: An `AsyncSequence` that can iterate over `DescribeInstanceImageMetadataOutput` + public func describeInstanceImageMetadataPaginated(input: DescribeInstanceImageMetadataInput) -> ClientRuntime.PaginatorSequence { + return ClientRuntime.PaginatorSequence(input: input, inputKey: \.nextToken, outputKey: \.nextToken, paginationFunction: self.describeInstanceImageMetadata(input:)) + } +} + +extension DescribeInstanceImageMetadataInput: ClientRuntime.PaginateToken { + public func usingPaginationToken(_ token: Swift.String) -> DescribeInstanceImageMetadataInput { + return DescribeInstanceImageMetadataInput( + dryRun: self.dryRun, + filters: self.filters, + instanceIds: self.instanceIds, + maxResults: self.maxResults, + nextToken: token + )} +} + +extension PaginatorSequence where OperationStackInput == DescribeInstanceImageMetadataInput, OperationStackOutput == DescribeInstanceImageMetadataOutput { + /// This paginator transforms the `AsyncSequence` returned by `describeInstanceImageMetadataPaginated` + /// to access the nested member `[EC2ClientTypes.InstanceImageMetadata]` + /// - Returns: `[EC2ClientTypes.InstanceImageMetadata]` + public func instanceImageMetadata() async throws -> [EC2ClientTypes.InstanceImageMetadata] { + return try await self.asyncCompactMap { item in item.instanceImageMetadata } + } +} extension EC2Client { /// Paginate over `[DescribeInstancesOutput]` results. /// diff --git a/Sources/Services/AWSECS/Sources/AWSECS/Models.swift b/Sources/Services/AWSECS/Sources/AWSECS/Models.swift index 47cf0b9c643..507b07172a4 100644 --- a/Sources/Services/AWSECS/Sources/AWSECS/Models.swift +++ b/Sources/Services/AWSECS/Sources/AWSECS/Models.swift @@ -1885,6 +1885,7 @@ extension ECSClientTypes { public enum TaskFilesystemType: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { case ext3 case ext4 + case ntfs case xfs case sdkUnknown(Swift.String) @@ -1892,6 +1893,7 @@ extension ECSClientTypes { return [ .ext3, .ext4, + .ntfs, .xfs ] } @@ -1905,6 +1907,7 @@ extension ECSClientTypes { switch self { case .ext3: return "ext3" case .ext4: return "ext4" + case .ntfs: return "ntfs" case .xfs: return "xfs" case let .sdkUnknown(s): return s } @@ -1965,11 +1968,11 @@ extension ECSClientTypes { extension ECSClientTypes { - /// The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These settings are used to create each Amazon EBS volume, with one volume created for each task in the service. Many of these parameters map 1:1 with the Amazon EBS CreateVolume API request parameters. + /// The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These settings are used to create each Amazon EBS volume, with one volume created for each task in the service. For information about the supported launch types and operating systems, see [Supported operating systems and launch types](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ebs-volumes.html#ebs-volumes-configuration) in the Amazon Elastic Container Service Developer Guide. Many of these parameters map 1:1 with the Amazon EBS CreateVolume API request parameters. public struct ServiceManagedEBSVolumeConfiguration: Swift.Sendable { /// Indicates whether the volume should be encrypted. If no value is specified, encryption is turned on by default. This parameter maps 1:1 with the Encrypted parameter of the [CreateVolume API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVolume.html) in the Amazon EC2 API Reference. public var encrypted: Swift.Bool? - /// The Linux filesystem type for the volume. For volumes created from a snapshot, you must specify the same filesystem type that the volume was using when the snapshot was created. If there is a filesystem type mismatch, the task will fail to start. The available filesystem types are
 ext3, ext4, and xfs. If no value is specified, the xfs filesystem type is used by default. + /// The filesystem type for the volume. For volumes created from a snapshot, you must specify the same filesystem type that the volume was using when the snapshot was created. If there is a filesystem type mismatch, the task will fail to start. The available Linux filesystem types are
 ext3, ext4, and xfs. If no value is specified, the xfs filesystem type is used by default. The available Windows filesystem types are NTFS. public var filesystemType: ECSClientTypes.TaskFilesystemType? /// The number of I/O operations per second (IOPS). For gp3, io1, and io2 volumes, this represents the number of IOPS that are provisioned for the volume. For gp2 volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. The following are the supported values for each volume type. /// @@ -3621,7 +3624,7 @@ extension ECSClientTypes { /// /// * Container health checks aren't supported for tasks that are part of a service that's configured to use a Classic Load Balancer. public struct HealthCheck: Swift.Sendable { - /// A string array representing the command that the container runs to determine if it is healthy. The string array must start with CMD to run the command arguments directly, or CMD-SHELL to run the command with the container's default shell. When you use the Amazon Web Services Management Console JSON panel, the Command Line Interface, or the APIs, enclose the list of commands in double quotes and brackets. [ "CMD-SHELL", "curl -f http://localhost/ || exit 1" ] You don't include the double quotes and brackets when you use the Amazon Web Services Management Console. CMD-SHELL, curl -f http://localhost/ || exit 1 An exit code of 0 indicates success, and non-zero exit code indicates failure. For more information, see HealthCheck in the docker container create command + /// A string array representing the command that the container runs to determine if it is healthy. The string array must start with CMD to run the command arguments directly, or CMD-SHELL to run the command with the container's default shell. When you use the Amazon Web Services Management Console JSON panel, the Command Line Interface, or the APIs, enclose the list of commands in double quotes and brackets. [ "CMD-SHELL", "curl -f http://localhost/ || exit 1" ] You don't include the double quotes and brackets when you use the Amazon Web Services Management Console. CMD-SHELL, curl -f http://localhost/ || exit 1 An exit code of 0 indicates success, and non-zero exit code indicates failure. For more information, see HealthCheck in the docker container create command. /// This member is required. public var command: [Swift.String]? /// The time period in seconds between each health check execution. You may specify between 5 and 300 seconds. The default value is 30 seconds. diff --git a/Sources/Services/AWSNimble/Package.swift.txt b/Sources/Services/AWSNimble/Package.swift.txt deleted file mode 100644 index 31b880038a5..00000000000 --- a/Sources/Services/AWSNimble/Package.swift.txt +++ /dev/null @@ -1,99 +0,0 @@ -// swift-tools-version: 5.9.0 - -import PackageDescription - -let package = Package( - name: "AWSNimble", - platforms: [ - .macOS(.v10_15), .iOS(.v13) - ], - products: [ - .library(name: "AWSNimble", targets: ["AWSNimble"]) - ], - dependencies: [ - .package( - id: "aws-sdk-swift.smithy-swift", - exact: "0.0.1" - ), - .package( - id: "aws-sdk-swift.AWSClientRuntime", - exact: "0.0.1" - ), - .package( - id: "aws-sdk-swift.AWSSDKHTTPAuth", - exact: "0.0.1" - ), - ], - targets: [ - .target( - name: "AWSNimble", - dependencies: [ - .product( - name: "SmithyHTTPAuthAPI", - package: "aws-sdk-swift.smithy-swift" - ), - .product( - name: "Smithy", - package: "aws-sdk-swift.smithy-swift" - ), - .product( - name: "ClientRuntime", - package: "aws-sdk-swift.smithy-swift" - ), - .product( - name: "SmithyHTTPAPI", - package: "aws-sdk-swift.smithy-swift" - ), - .product( - name: "AWSClientRuntime", - package: "aws-sdk-swift.AWSClientRuntime" - ), - .product( - name: "SmithyJSON", - package: "aws-sdk-swift.smithy-swift" - ), - .product( - name: "SmithyReadWrite", - package: "aws-sdk-swift.smithy-swift" - ), - .product( - name: "SmithyTimestamps", - package: "aws-sdk-swift.smithy-swift" - ), - .product( - name: "SmithyIdentity", - package: "aws-sdk-swift.smithy-swift" - ), - .product( - name: "SmithyRetriesAPI", - package: "aws-sdk-swift.smithy-swift" - ), - .product( - name: "AWSSDKHTTPAuth", - package: "aws-sdk-swift.AWSSDKHTTPAuth" - ), - .product( - name: "SmithyRetries", - package: "aws-sdk-swift.smithy-swift" - ), - .product( - name: "SmithyTestUtil", - package: "aws-sdk-swift.smithy-swift" - ), - ], - resources: [ - .process("Resources") - ] - ), - .testTarget( - name: "AWSNimbleTests", - dependencies: [ - "AWSNimble", - .product( - name: "SmithyTestUtil", - package: "aws-sdk-swift.smithy-swift" - ), - ] - ) - ] -) diff --git a/Sources/Services/AWSNimble/Sources/AWSNimble/AuthSchemeResolver.swift b/Sources/Services/AWSNimble/Sources/AWSNimble/AuthSchemeResolver.swift deleted file mode 100644 index da7fd1a3175..00000000000 --- a/Sources/Services/AWSNimble/Sources/AWSNimble/AuthSchemeResolver.swift +++ /dev/null @@ -1,56 +0,0 @@ -// -// Copyright Amazon.com Inc. or its affiliates. -// All Rights Reserved. -// -// SPDX-License-Identifier: Apache-2.0 -// - -// Code generated by smithy-swift-codegen. DO NOT EDIT! - -import class Smithy.Context -import enum Smithy.ClientError -import enum SmithyHTTPAuthAPI.SigningPropertyKeys -import protocol SmithyHTTPAuthAPI.AuthSchemeResolver -import protocol SmithyHTTPAuthAPI.AuthSchemeResolverParameters -import struct SmithyHTTPAuthAPI.AuthOption - -public struct NimbleAuthSchemeResolverParameters: SmithyHTTPAuthAPI.AuthSchemeResolverParameters { - public let operation: Swift.String - // Region is used for SigV4 auth scheme - public let region: Swift.String? -} - -public protocol NimbleAuthSchemeResolver: SmithyHTTPAuthAPI.AuthSchemeResolver { - // Intentionally empty. - // This is the parent protocol that all auth scheme resolver implementations of - // the service Nimble must conform to. -} - -public struct DefaultNimbleAuthSchemeResolver: NimbleAuthSchemeResolver { - - public func resolveAuthScheme(params: SmithyHTTPAuthAPI.AuthSchemeResolverParameters) throws -> [SmithyHTTPAuthAPI.AuthOption] { - var validAuthOptions = [SmithyHTTPAuthAPI.AuthOption]() - guard let serviceParams = params as? NimbleAuthSchemeResolverParameters else { - throw Smithy.ClientError.authError("Service specific auth scheme parameters type must be passed to auth scheme resolver.") - } - switch serviceParams.operation { - default: - var sigV4Option = SmithyHTTPAuthAPI.AuthOption(schemeID: "aws.auth#sigv4") - sigV4Option.signingProperties.set(key: SmithyHTTPAuthAPI.SigningPropertyKeys.signingName, value: "nimble") - guard let region = serviceParams.region else { - throw Smithy.ClientError.authError("Missing region in auth scheme parameters for SigV4 auth scheme.") - } - sigV4Option.signingProperties.set(key: SmithyHTTPAuthAPI.SigningPropertyKeys.signingRegion, value: region) - validAuthOptions.append(sigV4Option) - } - return validAuthOptions - } - - public func constructParameters(context: Smithy.Context) throws -> SmithyHTTPAuthAPI.AuthSchemeResolverParameters { - guard let opName = context.getOperation() else { - throw Smithy.ClientError.dataNotFound("Operation name not configured in middleware context for auth scheme resolver params construction.") - } - let opRegion = context.getRegion() - return NimbleAuthSchemeResolverParameters(operation: opName, region: opRegion) - } -} diff --git a/Sources/Services/AWSNimble/Sources/AWSNimble/Endpoints.swift b/Sources/Services/AWSNimble/Sources/AWSNimble/Endpoints.swift deleted file mode 100644 index c5ec0dc4c6c..00000000000 --- a/Sources/Services/AWSNimble/Sources/AWSNimble/Endpoints.swift +++ /dev/null @@ -1,73 +0,0 @@ -// -// Copyright Amazon.com Inc. or its affiliates. -// All Rights Reserved. -// -// SPDX-License-Identifier: Apache-2.0 -// - -// Code generated by smithy-swift-codegen. DO NOT EDIT! - -import class ClientRuntime.EndpointsRequestContext -import let AWSClientRuntime.awsPartitionJSON -import protocol ClientRuntime.EndpointsRequestContextProviding -import struct ClientRuntime.DefaultEndpointResolver -import struct ClientRuntime.StaticEndpointResolver -import struct SmithyHTTPAPI.Endpoint - -public struct EndpointParams { - /// Override the endpoint used to send this request - public let endpoint: Swift.String? - /// The AWS region used to dispatch the request. - public let region: Swift.String? - /// When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error. - public let useDualStack: Swift.Bool - /// When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error. - public let useFIPS: Swift.Bool - - public init( - endpoint: Swift.String? = nil, - region: Swift.String? = nil, - useDualStack: Swift.Bool = false, - useFIPS: Swift.Bool = false - ) - { - self.endpoint = endpoint - self.region = region - self.useDualStack = useDualStack - self.useFIPS = useFIPS - } -} - -extension EndpointParams: ClientRuntime.EndpointsRequestContextProviding { - - public var context: ClientRuntime.EndpointsRequestContext { - get throws { - let context = try ClientRuntime.EndpointsRequestContext() - try context.add(name: "Endpoint", value: self.endpoint) - try context.add(name: "Region", value: self.region) - try context.add(name: "UseDualStack", value: self.useDualStack) - try context.add(name: "UseFIPS", value: self.useFIPS) - return context - } - } -} - -public protocol EndpointResolver { - func resolve(params: EndpointParams) throws -> SmithyHTTPAPI.Endpoint -} - -typealias DefaultEndpointResolver = ClientRuntime.DefaultEndpointResolver - -extension DefaultEndpointResolver { - private static let ruleSet = "{\"version\":\"1.0\",\"parameters\":{\"Region\":{\"builtIn\":\"AWS::Region\",\"required\":false,\"documentation\":\"The AWS region used to dispatch the request.\",\"type\":\"String\"},\"UseDualStack\":{\"builtIn\":\"AWS::UseDualStack\",\"required\":true,\"default\":false,\"documentation\":\"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.\",\"type\":\"Boolean\"},\"UseFIPS\":{\"builtIn\":\"AWS::UseFIPS\",\"required\":true,\"default\":false,\"documentation\":\"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.\",\"type\":\"Boolean\"},\"Endpoint\":{\"builtIn\":\"SDK::Endpoint\",\"required\":false,\"documentation\":\"Override the endpoint used to send this request\",\"type\":\"String\"}},\"rules\":[{\"conditions\":[{\"fn\":\"isSet\",\"argv\":[{\"ref\":\"Endpoint\"}]}],\"rules\":[{\"conditions\":[{\"fn\":\"booleanEquals\",\"argv\":[{\"ref\":\"UseFIPS\"},true]}],\"error\":\"Invalid Configuration: FIPS and custom endpoint are not supported\",\"type\":\"error\"},{\"conditions\":[{\"fn\":\"booleanEquals\",\"argv\":[{\"ref\":\"UseDualStack\"},true]}],\"error\":\"Invalid Configuration: Dualstack and custom endpoint are not supported\",\"type\":\"error\"},{\"conditions\":[],\"endpoint\":{\"url\":{\"ref\":\"Endpoint\"},\"properties\":{},\"headers\":{}},\"type\":\"endpoint\"}],\"type\":\"tree\"},{\"conditions\":[{\"fn\":\"isSet\",\"argv\":[{\"ref\":\"Region\"}]}],\"rules\":[{\"conditions\":[{\"fn\":\"aws.partition\",\"argv\":[{\"ref\":\"Region\"}],\"assign\":\"PartitionResult\"}],\"rules\":[{\"conditions\":[{\"fn\":\"booleanEquals\",\"argv\":[{\"ref\":\"UseFIPS\"},true]},{\"fn\":\"booleanEquals\",\"argv\":[{\"ref\":\"UseDualStack\"},true]}],\"rules\":[{\"conditions\":[{\"fn\":\"booleanEquals\",\"argv\":[true,{\"fn\":\"getAttr\",\"argv\":[{\"ref\":\"PartitionResult\"},\"supportsFIPS\"]}]},{\"fn\":\"booleanEquals\",\"argv\":[true,{\"fn\":\"getAttr\",\"argv\":[{\"ref\":\"PartitionResult\"},\"supportsDualStack\"]}]}],\"rules\":[{\"conditions\":[],\"endpoint\":{\"url\":\"https://nimble-fips.{Region}.{PartitionResult#dualStackDnsSuffix}\",\"properties\":{},\"headers\":{}},\"type\":\"endpoint\"}],\"type\":\"tree\"},{\"conditions\":[],\"error\":\"FIPS and DualStack are enabled, but this partition does not support one or both\",\"type\":\"error\"}],\"type\":\"tree\"},{\"conditions\":[{\"fn\":\"booleanEquals\",\"argv\":[{\"ref\":\"UseFIPS\"},true]}],\"rules\":[{\"conditions\":[{\"fn\":\"booleanEquals\",\"argv\":[{\"fn\":\"getAttr\",\"argv\":[{\"ref\":\"PartitionResult\"},\"supportsFIPS\"]},true]}],\"rules\":[{\"conditions\":[],\"endpoint\":{\"url\":\"https://nimble-fips.{Region}.{PartitionResult#dnsSuffix}\",\"properties\":{},\"headers\":{}},\"type\":\"endpoint\"}],\"type\":\"tree\"},{\"conditions\":[],\"error\":\"FIPS is enabled but this partition does not support FIPS\",\"type\":\"error\"}],\"type\":\"tree\"},{\"conditions\":[{\"fn\":\"booleanEquals\",\"argv\":[{\"ref\":\"UseDualStack\"},true]}],\"rules\":[{\"conditions\":[{\"fn\":\"booleanEquals\",\"argv\":[true,{\"fn\":\"getAttr\",\"argv\":[{\"ref\":\"PartitionResult\"},\"supportsDualStack\"]}]}],\"rules\":[{\"conditions\":[],\"endpoint\":{\"url\":\"https://nimble.{Region}.{PartitionResult#dualStackDnsSuffix}\",\"properties\":{},\"headers\":{}},\"type\":\"endpoint\"}],\"type\":\"tree\"},{\"conditions\":[],\"error\":\"DualStack is enabled but this partition does not support DualStack\",\"type\":\"error\"}],\"type\":\"tree\"},{\"conditions\":[],\"endpoint\":{\"url\":\"https://nimble.{Region}.{PartitionResult#dnsSuffix}\",\"properties\":{},\"headers\":{}},\"type\":\"endpoint\"}],\"type\":\"tree\"}],\"type\":\"tree\"},{\"conditions\":[],\"error\":\"Invalid Configuration: Missing Region\",\"type\":\"error\"}]}" - - init() throws { - try self.init(partitions: AWSClientRuntime.awsPartitionJSON, ruleSet: Self.ruleSet) - } -} - -extension DefaultEndpointResolver: EndpointResolver {} - -typealias StaticEndpointResolver = ClientRuntime.StaticEndpointResolver - -extension StaticEndpointResolver: EndpointResolver {} diff --git a/Sources/Services/AWSNimble/Sources/AWSNimble/Models.swift b/Sources/Services/AWSNimble/Sources/AWSNimble/Models.swift deleted file mode 100644 index 6bcf4836bc8..00000000000 --- a/Sources/Services/AWSNimble/Sources/AWSNimble/Models.swift +++ /dev/null @@ -1,8338 +0,0 @@ -// -// Copyright Amazon.com Inc. or its affiliates. -// All Rights Reserved. -// -// SPDX-License-Identifier: Apache-2.0 -// - -// Code generated by smithy-swift-codegen. DO NOT EDIT! - -@_spi(SmithyReadWrite) import ClientRuntime -import Foundation -import class SmithyHTTPAPI.HTTPResponse -@_spi(SmithyReadWrite) import class SmithyJSON.Reader -@_spi(SmithyReadWrite) import class SmithyJSON.Writer -import enum ClientRuntime.ErrorFault -import enum Smithy.ClientError -import enum SmithyReadWrite.ReaderError -@_spi(SmithyReadWrite) import enum SmithyReadWrite.ReadingClosures -@_spi(SmithyReadWrite) import enum SmithyReadWrite.WritingClosures -@_spi(SmithyTimestamps) import enum SmithyTimestamps.TimestampFormat -import protocol AWSClientRuntime.AWSServiceError -import protocol ClientRuntime.HTTPError -import protocol ClientRuntime.ModeledError -@_spi(SmithyReadWrite) import protocol SmithyReadWrite.SmithyReader -@_spi(SmithyReadWrite) import protocol SmithyReadWrite.SmithyWriter -@_spi(SmithyReadWrite) import struct AWSClientRuntime.RestJSONError -@_spi(UnknownAWSHTTPServiceError) import struct AWSClientRuntime.UnknownAWSHTTPServiceError -import struct Smithy.URIQueryItem -import struct SmithyHTTPAPI.Header -import struct SmithyHTTPAPI.Headers -@_spi(SmithyReadWrite) import struct SmithyReadWrite.ReadingClosureBox -@_spi(SmithyReadWrite) import struct SmithyReadWrite.WritingClosureBox - -/// You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. -public struct AccessDeniedException: ClientRuntime.ModeledError, AWSClientRuntime.AWSServiceError, ClientRuntime.HTTPError, Swift.Error { - - public struct Properties { - /// A more specific error code. - public internal(set) var code: Swift.String? = nil - /// The exception context. - public internal(set) var context: [Swift.String: Swift.String]? = nil - /// A human-readable description of the error. - public internal(set) var message: Swift.String? = nil - } - - public internal(set) var properties = Properties() - public static var typeName: Swift.String { "AccessDeniedException" } - 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( - code: Swift.String? = nil, - context: [Swift.String: Swift.String]? = nil, - message: Swift.String? = nil - ) - { - self.properties.code = code - self.properties.context = context - self.properties.message = message - } -} - -/// Another operation is in progress. -public struct ConflictException: ClientRuntime.ModeledError, AWSClientRuntime.AWSServiceError, ClientRuntime.HTTPError, Swift.Error { - - public struct Properties { - /// A more specific error code. - public internal(set) var code: Swift.String? = nil - /// The exception context. - public internal(set) var context: [Swift.String: Swift.String]? = nil - /// A human-readable description of the error. - public internal(set) var message: Swift.String? = nil - } - - public internal(set) var properties = Properties() - public static var typeName: Swift.String { "ConflictException" } - 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( - code: Swift.String? = nil, - context: [Swift.String: Swift.String]? = nil, - message: Swift.String? = nil - ) - { - self.properties.code = code - self.properties.context = context - self.properties.message = message - } -} - -/// An internal error has occurred. Please retry your request. -public struct InternalServerErrorException: ClientRuntime.ModeledError, AWSClientRuntime.AWSServiceError, ClientRuntime.HTTPError, Swift.Error { - - public struct Properties { - /// A more specific error code. - public internal(set) var code: Swift.String? = nil - /// The exception context. - public internal(set) var context: [Swift.String: Swift.String]? = nil - /// A human-readable description of the error. - public internal(set) var message: Swift.String? = nil - } - - public internal(set) var properties = Properties() - public static var typeName: Swift.String { "InternalServerErrorException" } - public static var fault: ClientRuntime.ErrorFault { .server } - public static var isRetryable: Swift.Bool { true } - 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( - code: Swift.String? = nil, - context: [Swift.String: Swift.String]? = nil, - message: Swift.String? = nil - ) - { - self.properties.code = code - self.properties.context = context - self.properties.message = message - } -} - -/// The specified resource could not be found. -public struct ResourceNotFoundException: ClientRuntime.ModeledError, AWSClientRuntime.AWSServiceError, ClientRuntime.HTTPError, Swift.Error { - - public struct Properties { - /// A more specific error code. - public internal(set) var code: Swift.String? = nil - /// The exception context. - public internal(set) var context: [Swift.String: Swift.String]? = nil - /// A human-readable description of the error. - public internal(set) var message: Swift.String? = nil - } - - public internal(set) var properties = Properties() - public static var typeName: Swift.String { "ResourceNotFoundException" } - 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( - code: Swift.String? = nil, - context: [Swift.String: Swift.String]? = nil, - message: Swift.String? = nil - ) - { - self.properties.code = code - self.properties.context = context - self.properties.message = message - } -} - -/// Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. -public struct ServiceQuotaExceededException: ClientRuntime.ModeledError, AWSClientRuntime.AWSServiceError, ClientRuntime.HTTPError, Swift.Error { - - public struct Properties { - /// A more specific error code. - public internal(set) var code: Swift.String? = nil - /// The exception context. - public internal(set) var context: [Swift.String: Swift.String]? = nil - /// A human-readable description of the error. - 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( - code: Swift.String? = nil, - context: [Swift.String: Swift.String]? = nil, - message: Swift.String? = nil - ) - { - self.properties.code = code - self.properties.context = context - self.properties.message = message - } -} - -/// The request throughput limit was exceeded. -public struct ThrottlingException: ClientRuntime.ModeledError, AWSClientRuntime.AWSServiceError, ClientRuntime.HTTPError, Swift.Error { - - public struct Properties { - /// A more specific error code. - public internal(set) var code: Swift.String? = nil - /// The exception context. - public internal(set) var context: [Swift.String: Swift.String]? = nil - /// A human-readable description of the error. - public internal(set) var message: Swift.String? = nil - } - - public internal(set) var properties = Properties() - public static var typeName: Swift.String { "ThrottlingException" } - public static var fault: ClientRuntime.ErrorFault { .client } - public static var isRetryable: Swift.Bool { true } - 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( - code: Swift.String? = nil, - context: [Swift.String: Swift.String]? = nil, - message: Swift.String? = nil - ) - { - self.properties.code = code - self.properties.context = context - self.properties.message = message - } -} - -/// One of the parameters in the request is invalid. -public struct ValidationException: ClientRuntime.ModeledError, AWSClientRuntime.AWSServiceError, ClientRuntime.HTTPError, Swift.Error { - - public struct Properties { - /// A more specific error code. - public internal(set) var code: Swift.String? = nil - /// The exception context. - public internal(set) var context: [Swift.String: Swift.String]? = nil - /// A human-readable description of the error. - public internal(set) var message: Swift.String? = nil - } - - public internal(set) var properties = Properties() - public static var typeName: Swift.String { "ValidationException" } - 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( - code: Swift.String? = nil, - context: [Swift.String: Swift.String]? = nil, - message: Swift.String? = nil - ) - { - self.properties.code = code - self.properties.context = context - self.properties.message = message - } -} - -public struct AcceptEulasInput: Swift.Sendable { - /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. - public var clientToken: Swift.String? - /// The EULA ID. - public var eulaIds: [Swift.String]? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - clientToken: Swift.String? = nil, - eulaIds: [Swift.String]? = nil, - studioId: Swift.String? = nil - ) - { - self.clientToken = clientToken - self.eulaIds = eulaIds - self.studioId = studioId - } -} - -extension NimbleClientTypes { - - /// The acceptance of a EULA, required to use Amazon-provided streaming images. - public struct EulaAcceptance: Swift.Sendable { - /// The ISO timestamp in seconds for when the EULA was accepted. - public var acceptedAt: Foundation.Date? - /// The ID of the person who accepted the EULA. - public var acceptedBy: Swift.String? - /// The ID of the acceptee. - public var accepteeId: Swift.String? - /// The EULA acceptance ID. - public var eulaAcceptanceId: Swift.String? - /// The EULA ID. - public var eulaId: Swift.String? - - public init( - acceptedAt: Foundation.Date? = nil, - acceptedBy: Swift.String? = nil, - accepteeId: Swift.String? = nil, - eulaAcceptanceId: Swift.String? = nil, - eulaId: Swift.String? = nil - ) - { - self.acceptedAt = acceptedAt - self.acceptedBy = acceptedBy - self.accepteeId = accepteeId - self.eulaAcceptanceId = eulaAcceptanceId - self.eulaId = eulaId - } - } -} - -public struct AcceptEulasOutput: Swift.Sendable { - /// A collection of EULA acceptances. - public var eulaAcceptances: [NimbleClientTypes.EulaAcceptance]? - - public init( - eulaAcceptances: [NimbleClientTypes.EulaAcceptance]? = nil - ) - { - self.eulaAcceptances = eulaAcceptances - } -} - -extension NimbleClientTypes { - - /// An LDAP attribute of an Active Directory computer account, in the form of a name:value pair. - public struct ActiveDirectoryComputerAttribute: Swift.Sendable { - /// The name for the LDAP attribute. - public var name: Swift.String? - /// The value for the LDAP attribute. - public var value: Swift.String? - - public init( - name: Swift.String? = nil, - value: Swift.String? = nil - ) - { - self.name = name - self.value = value - } - } -} - -extension NimbleClientTypes { - - /// The configuration for a Directory Service for Microsoft Active Directory studio resource. - public struct ActiveDirectoryConfiguration: Swift.Sendable { - /// A collection of custom attributes for an Active Directory computer. - public var computerAttributes: [NimbleClientTypes.ActiveDirectoryComputerAttribute]? - /// The directory ID of the Directory Service for Microsoft Active Directory to access using this studio component. - public var directoryId: Swift.String? - /// The distinguished name (DN) and organizational unit (OU) of an Active Directory computer. - public var organizationalUnitDistinguishedName: Swift.String? - - public init( - computerAttributes: [NimbleClientTypes.ActiveDirectoryComputerAttribute]? = nil, - directoryId: Swift.String? = nil, - organizationalUnitDistinguishedName: Swift.String? = nil - ) - { - self.computerAttributes = computerAttributes - self.directoryId = directoryId - self.organizationalUnitDistinguishedName = organizationalUnitDistinguishedName - } - } -} - -extension NimbleClientTypes.ActiveDirectoryConfiguration: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "ActiveDirectoryConfiguration(directoryId: \(Swift.String(describing: directoryId)), organizationalUnitDistinguishedName: \(Swift.String(describing: organizationalUnitDistinguishedName)), computerAttributes: \"CONTENT_REDACTED\")"} -} - -extension NimbleClientTypes { - - public enum AutomaticTerminationMode: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case activated - case deactivated - case sdkUnknown(Swift.String) - - public static var allCases: [AutomaticTerminationMode] { - return [ - .activated, - .deactivated - ] - } - - 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 .activated: return "ACTIVATED" - case .deactivated: return "DEACTIVATED" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - /// The configuration for a render farm that is associated with a studio resource. - public struct ComputeFarmConfiguration: Swift.Sendable { - /// The name of an Active Directory user that is used on ComputeFarm worker instances. - public var activeDirectoryUser: Swift.String? - /// The endpoint of the ComputeFarm that is accessed by the studio component resource. - public var endpoint: Swift.String? - - public init( - activeDirectoryUser: Swift.String? = nil, - endpoint: Swift.String? = nil - ) - { - self.activeDirectoryUser = activeDirectoryUser - self.endpoint = endpoint - } - } -} - -extension NimbleClientTypes.ComputeFarmConfiguration: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "ComputeFarmConfiguration(activeDirectoryUser: \(Swift.String(describing: activeDirectoryUser)), endpoint: \"CONTENT_REDACTED\")"} -} - -extension NimbleClientTypes { - - public enum StreamingClipboardMode: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case disabled - case enabled - case sdkUnknown(Swift.String) - - public static var allCases: [StreamingClipboardMode] { - return [ - .disabled, - .enabled - ] - } - - 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 .disabled: return "DISABLED" - case .enabled: return "ENABLED" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - public enum StreamingInstanceType: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case g34xlarge - case g3sXlarge - case g4dn12xlarge - case g4dn16xlarge - case g4dn2xlarge - case g4dn4xlarge - case g4dn8xlarge - case g4dnXlarge - case g516xlarge - case g52xlarge - case g54xlarge - case g58xlarge - case g5Xlarge - case sdkUnknown(Swift.String) - - public static var allCases: [StreamingInstanceType] { - return [ - .g34xlarge, - .g3sXlarge, - .g4dn12xlarge, - .g4dn16xlarge, - .g4dn2xlarge, - .g4dn4xlarge, - .g4dn8xlarge, - .g4dnXlarge, - .g516xlarge, - .g52xlarge, - .g54xlarge, - .g58xlarge, - .g5Xlarge - ] - } - - 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 .g34xlarge: return "g3.4xlarge" - case .g3sXlarge: return "g3s.xlarge" - case .g4dn12xlarge: return "g4dn.12xlarge" - case .g4dn16xlarge: return "g4dn.16xlarge" - case .g4dn2xlarge: return "g4dn.2xlarge" - case .g4dn4xlarge: return "g4dn.4xlarge" - case .g4dn8xlarge: return "g4dn.8xlarge" - case .g4dnXlarge: return "g4dn.xlarge" - case .g516xlarge: return "g5.16xlarge" - case .g52xlarge: return "g5.2xlarge" - case .g54xlarge: return "g5.4xlarge" - case .g58xlarge: return "g5.8xlarge" - case .g5Xlarge: return "g5.xlarge" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - public enum SessionBackupMode: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case automatic - case deactivated - case sdkUnknown(Swift.String) - - public static var allCases: [SessionBackupMode] { - return [ - .automatic, - .deactivated - ] - } - - 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 .automatic: return "AUTOMATIC" - case .deactivated: return "DEACTIVATED" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - /// Configures how streaming sessions are backed up when launched from this launch profile. - public struct StreamConfigurationSessionBackup: Swift.Sendable { - /// The maximum number of backups that each streaming session created from this launch profile can have. - public var maxBackupsToRetain: Swift.Int? - /// Specifies how artists sessions are backed up. Configures backups for streaming sessions launched with this launch profile. The default value is DEACTIVATED, which means that backups are deactivated. To allow backups, set this value to AUTOMATIC. - public var mode: NimbleClientTypes.SessionBackupMode? - - public init( - maxBackupsToRetain: Swift.Int? = 0, - mode: NimbleClientTypes.SessionBackupMode? = nil - ) - { - self.maxBackupsToRetain = maxBackupsToRetain - self.mode = mode - } - } -} - -extension NimbleClientTypes { - - public enum SessionPersistenceMode: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case activated - case deactivated - case sdkUnknown(Swift.String) - - public static var allCases: [SessionPersistenceMode] { - return [ - .activated, - .deactivated - ] - } - - 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 .activated: return "ACTIVATED" - case .deactivated: return "DEACTIVATED" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - public enum StreamingSessionStorageMode: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case upload - case sdkUnknown(Swift.String) - - public static var allCases: [StreamingSessionStorageMode] { - return [ - .upload - ] - } - - 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 .upload: return "UPLOAD" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - /// The upload storage root location (folder) on streaming workstations where files are uploaded. - public struct StreamingSessionStorageRoot: Swift.Sendable { - /// The folder path in Linux workstations where files are uploaded. - public var linux: Swift.String? - /// The folder path in Windows workstations where files are uploaded. - public var windows: Swift.String? - - public init( - linux: Swift.String? = nil, - windows: Swift.String? = nil - ) - { - self.linux = linux - self.windows = windows - } - } -} - -extension NimbleClientTypes.StreamingSessionStorageRoot: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "StreamingSessionStorageRoot(linux: \"CONTENT_REDACTED\", windows: \"CONTENT_REDACTED\")"} -} - -extension NimbleClientTypes { - - /// The configuration for a streaming session’s upload storage. - public struct StreamConfigurationSessionStorage: Swift.Sendable { - /// Allows artists to upload files to their workstations. The only valid option is UPLOAD. - /// This member is required. - public var mode: [NimbleClientTypes.StreamingSessionStorageMode]? - /// The configuration for the upload storage root of the streaming session. - public var root: NimbleClientTypes.StreamingSessionStorageRoot? - - public init( - mode: [NimbleClientTypes.StreamingSessionStorageMode]? = nil, - root: NimbleClientTypes.StreamingSessionStorageRoot? = nil - ) - { - self.mode = mode - self.root = root - } - } -} - -extension NimbleClientTypes { - - /// Custom volume configuration for the root volumes that are attached to streaming sessions. This parameter is only allowed when sessionPersistenceMode is ACTIVATED. - public struct VolumeConfiguration: Swift.Sendable { - /// The number of I/O operations per second for the root volume that is attached to streaming session. - public var iops: Swift.Int? - /// The size of the root volume that is attached to the streaming session. The root volume size is measured in GiBs. - public var size: Swift.Int? - /// The throughput to provision for the root volume that is attached to the streaming session. The throughput is measured in MiB/s. - public var throughput: Swift.Int? - - public init( - iops: Swift.Int? = 3000, - size: Swift.Int? = 500, - throughput: Swift.Int? = 125 - ) - { - self.iops = iops - self.size = size - self.throughput = throughput - } - } -} - -extension NimbleClientTypes { - - /// Configuration for streaming workstations created using this launch profile. - public struct StreamConfigurationCreate: Swift.Sendable { - /// Indicates if a streaming session created from this launch profile should be terminated automatically or retained without termination after being in a STOPPED state. - /// - /// * When ACTIVATED, the streaming session is scheduled for termination after being in the STOPPED state for the time specified in maxStoppedSessionLengthInMinutes. - /// - /// * When DEACTIVATED, the streaming session can remain in the STOPPED state indefinitely. - /// - /// - /// This parameter is only allowed when sessionPersistenceMode is ACTIVATED. When allowed, the default value for this parameter is DEACTIVATED. - public var automaticTerminationMode: NimbleClientTypes.AutomaticTerminationMode? - /// Allows or deactivates the use of the system clipboard to copy and paste between the streaming session and streaming client. - /// This member is required. - public var clipboardMode: NimbleClientTypes.StreamingClipboardMode? - /// The EC2 instance types that users can select from when launching a streaming session with this launch profile. - /// This member is required. - public var ec2InstanceTypes: [NimbleClientTypes.StreamingInstanceType]? - /// The length of time, in minutes, that a streaming session can be active before it is stopped or terminated. After this point, Nimble Studio automatically terminates or stops the session. The default length of time is 690 minutes, and the maximum length of time is 30 days. - public var maxSessionLengthInMinutes: Swift.Int? - /// Integer that determines if you can start and stop your sessions and how long a session can stay in the STOPPED state. The default value is 0. The maximum value is 5760. This field is allowed only when sessionPersistenceMode is ACTIVATED and automaticTerminationMode is ACTIVATED. If the value is set to 0, your sessions can’t be STOPPED. If you then call StopStreamingSession, the session fails. If the time that a session stays in the READY state exceeds the maxSessionLengthInMinutes value, the session will automatically be terminated (instead of STOPPED). If the value is set to a positive number, the session can be stopped. You can call StopStreamingSession to stop sessions in the READY state. If the time that a session stays in the READY state exceeds the maxSessionLengthInMinutes value, the session will automatically be stopped (instead of terminated). - public var maxStoppedSessionLengthInMinutes: Swift.Int? - /// Configures how streaming sessions are backed up when launched from this launch profile. - public var sessionBackup: NimbleClientTypes.StreamConfigurationSessionBackup? - /// Determine if a streaming session created from this launch profile can configure persistent storage. This means that volumeConfiguration and automaticTerminationMode are configured. - public var sessionPersistenceMode: NimbleClientTypes.SessionPersistenceMode? - /// The upload storage for a streaming workstation that is created using this launch profile. - public var sessionStorage: NimbleClientTypes.StreamConfigurationSessionStorage? - /// The streaming images that users can select from when launching a streaming session with this launch profile. - /// This member is required. - public var streamingImageIds: [Swift.String]? - /// Custom volume configuration for the root volumes that are attached to streaming sessions. This parameter is only allowed when sessionPersistenceMode is ACTIVATED. - public var volumeConfiguration: NimbleClientTypes.VolumeConfiguration? - - public init( - automaticTerminationMode: NimbleClientTypes.AutomaticTerminationMode? = nil, - clipboardMode: NimbleClientTypes.StreamingClipboardMode? = nil, - ec2InstanceTypes: [NimbleClientTypes.StreamingInstanceType]? = nil, - maxSessionLengthInMinutes: Swift.Int? = 690, - maxStoppedSessionLengthInMinutes: Swift.Int? = 0, - sessionBackup: NimbleClientTypes.StreamConfigurationSessionBackup? = nil, - sessionPersistenceMode: NimbleClientTypes.SessionPersistenceMode? = nil, - sessionStorage: NimbleClientTypes.StreamConfigurationSessionStorage? = nil, - streamingImageIds: [Swift.String]? = nil, - volumeConfiguration: NimbleClientTypes.VolumeConfiguration? = nil - ) - { - self.automaticTerminationMode = automaticTerminationMode - self.clipboardMode = clipboardMode - self.ec2InstanceTypes = ec2InstanceTypes - self.maxSessionLengthInMinutes = maxSessionLengthInMinutes - self.maxStoppedSessionLengthInMinutes = maxStoppedSessionLengthInMinutes - self.sessionBackup = sessionBackup - self.sessionPersistenceMode = sessionPersistenceMode - self.sessionStorage = sessionStorage - self.streamingImageIds = streamingImageIds - self.volumeConfiguration = volumeConfiguration - } - } -} - -public struct CreateLaunchProfileInput: Swift.Sendable { - /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. - public var clientToken: Swift.String? - /// The description. - public var description: Swift.String? - /// Specifies the IDs of the EC2 subnets where streaming sessions will be accessible from. These subnets must support the specified instance types. - /// This member is required. - public var ec2SubnetIds: [Swift.String]? - /// The version number of the protocol that is used by the launch profile. The only valid version is "2021-03-31". - /// This member is required. - public var launchProfileProtocolVersions: [Swift.String]? - /// The name for the launch profile. - /// This member is required. - public var name: Swift.String? - /// A configuration for a streaming session. - /// This member is required. - public var streamConfiguration: NimbleClientTypes.StreamConfigurationCreate? - /// Unique identifiers for a collection of studio components that can be used with this launch profile. - /// This member is required. - public var studioComponentIds: [Swift.String]? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - /// A collection of labels, in the form of key-value pairs, that apply to this resource. - public var tags: [Swift.String: Swift.String]? - - public init( - clientToken: Swift.String? = nil, - description: Swift.String? = nil, - ec2SubnetIds: [Swift.String]? = nil, - launchProfileProtocolVersions: [Swift.String]? = nil, - name: Swift.String? = nil, - streamConfiguration: NimbleClientTypes.StreamConfigurationCreate? = nil, - studioComponentIds: [Swift.String]? = nil, - studioId: Swift.String? = nil, - tags: [Swift.String: Swift.String]? = nil - ) - { - self.clientToken = clientToken - self.description = description - self.ec2SubnetIds = ec2SubnetIds - self.launchProfileProtocolVersions = launchProfileProtocolVersions - self.name = name - self.streamConfiguration = streamConfiguration - self.studioComponentIds = studioComponentIds - self.studioId = studioId - self.tags = tags - } -} - -extension CreateLaunchProfileInput: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "CreateLaunchProfileInput(clientToken: \(Swift.String(describing: clientToken)), ec2SubnetIds: \(Swift.String(describing: ec2SubnetIds)), launchProfileProtocolVersions: \(Swift.String(describing: launchProfileProtocolVersions)), streamConfiguration: \(Swift.String(describing: streamConfiguration)), studioComponentIds: \(Swift.String(describing: studioComponentIds)), studioId: \(Swift.String(describing: studioId)), tags: \(Swift.String(describing: tags)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} -} - -extension NimbleClientTypes { - - public enum LaunchProfileState: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case createFailed - case createInProgress - case deleted - case deleteFailed - case deleteInProgress - case ready - case updateFailed - case updateInProgress - case sdkUnknown(Swift.String) - - public static var allCases: [LaunchProfileState] { - return [ - .createFailed, - .createInProgress, - .deleted, - .deleteFailed, - .deleteInProgress, - .ready, - .updateFailed, - .updateInProgress - ] - } - - 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 .createFailed: return "CREATE_FAILED" - case .createInProgress: return "CREATE_IN_PROGRESS" - case .deleted: return "DELETED" - case .deleteFailed: return "DELETE_FAILED" - case .deleteInProgress: return "DELETE_IN_PROGRESS" - case .ready: return "READY" - case .updateFailed: return "UPDATE_FAILED" - case .updateInProgress: return "UPDATE_IN_PROGRESS" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - public enum LaunchProfileStatusCode: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case encryptionKeyAccessDenied - case encryptionKeyNotFound - case internalError - case invalidInstanceTypesProvided - case invalidSubnetsCombination - case invalidSubnetsProvided - case launchProfileCreated - case launchProfileCreateInProgress - case launchProfileDeleted - case launchProfileDeleteInProgress - case launchProfileUpdated - case launchProfileUpdateInProgress - case launchProfileWithStreamSessionsNotDeleted - case streamingImageNotFound - case streamingImageNotReady - case sdkUnknown(Swift.String) - - public static var allCases: [LaunchProfileStatusCode] { - return [ - .encryptionKeyAccessDenied, - .encryptionKeyNotFound, - .internalError, - .invalidInstanceTypesProvided, - .invalidSubnetsCombination, - .invalidSubnetsProvided, - .launchProfileCreated, - .launchProfileCreateInProgress, - .launchProfileDeleted, - .launchProfileDeleteInProgress, - .launchProfileUpdated, - .launchProfileUpdateInProgress, - .launchProfileWithStreamSessionsNotDeleted, - .streamingImageNotFound, - .streamingImageNotReady - ] - } - - 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 .encryptionKeyAccessDenied: return "ENCRYPTION_KEY_ACCESS_DENIED" - case .encryptionKeyNotFound: return "ENCRYPTION_KEY_NOT_FOUND" - case .internalError: return "INTERNAL_ERROR" - case .invalidInstanceTypesProvided: return "INVALID_INSTANCE_TYPES_PROVIDED" - case .invalidSubnetsCombination: return "INVALID_SUBNETS_COMBINATION" - case .invalidSubnetsProvided: return "INVALID_SUBNETS_PROVIDED" - case .launchProfileCreated: return "LAUNCH_PROFILE_CREATED" - case .launchProfileCreateInProgress: return "LAUNCH_PROFILE_CREATE_IN_PROGRESS" - case .launchProfileDeleted: return "LAUNCH_PROFILE_DELETED" - case .launchProfileDeleteInProgress: return "LAUNCH_PROFILE_DELETE_IN_PROGRESS" - case .launchProfileUpdated: return "LAUNCH_PROFILE_UPDATED" - case .launchProfileUpdateInProgress: return "LAUNCH_PROFILE_UPDATE_IN_PROGRESS" - case .launchProfileWithStreamSessionsNotDeleted: return "LAUNCH_PROFILE_WITH_STREAM_SESSIONS_NOT_DELETED" - case .streamingImageNotFound: return "STREAMING_IMAGE_NOT_FOUND" - case .streamingImageNotReady: return "STREAMING_IMAGE_NOT_READY" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - /// A configuration for a streaming session. - public struct StreamConfiguration: Swift.Sendable { - /// Indicates if a streaming session created from this launch profile should be terminated automatically or retained without termination after being in a STOPPED state. - /// - /// * When ACTIVATED, the streaming session is scheduled for termination after being in the STOPPED state for the time specified in maxStoppedSessionLengthInMinutes. - /// - /// * When DEACTIVATED, the streaming session can remain in the STOPPED state indefinitely. - /// - /// - /// This parameter is only allowed when sessionPersistenceMode is ACTIVATED. When allowed, the default value for this parameter is DEACTIVATED. - public var automaticTerminationMode: NimbleClientTypes.AutomaticTerminationMode? - /// Allows or deactivates the use of the system clipboard to copy and paste between the streaming session and streaming client. - /// This member is required. - public var clipboardMode: NimbleClientTypes.StreamingClipboardMode? - /// The EC2 instance types that users can select from when launching a streaming session with this launch profile. - /// This member is required. - public var ec2InstanceTypes: [NimbleClientTypes.StreamingInstanceType]? - /// The length of time, in minutes, that a streaming session can be active before it is stopped or terminated. After this point, Nimble Studio automatically terminates or stops the session. The default length of time is 690 minutes, and the maximum length of time is 30 days. - public var maxSessionLengthInMinutes: Swift.Int? - /// Integer that determines if you can start and stop your sessions and how long a session can stay in the STOPPED state. The default value is 0. The maximum value is 5760. This field is allowed only when sessionPersistenceMode is ACTIVATED and automaticTerminationMode is ACTIVATED. If the value is set to 0, your sessions can’t be STOPPED. If you then call StopStreamingSession, the session fails. If the time that a session stays in the READY state exceeds the maxSessionLengthInMinutes value, the session will automatically be terminated (instead of STOPPED). If the value is set to a positive number, the session can be stopped. You can call StopStreamingSession to stop sessions in the READY state. If the time that a session stays in the READY state exceeds the maxSessionLengthInMinutes value, the session will automatically be stopped (instead of terminated). - public var maxStoppedSessionLengthInMinutes: Swift.Int? - /// Information about the streaming session backup. - public var sessionBackup: NimbleClientTypes.StreamConfigurationSessionBackup? - /// Determine if a streaming session created from this launch profile can configure persistent storage. This means that volumeConfiguration and automaticTerminationMode are configured. - public var sessionPersistenceMode: NimbleClientTypes.SessionPersistenceMode? - /// The upload storage for a streaming session. - public var sessionStorage: NimbleClientTypes.StreamConfigurationSessionStorage? - /// The streaming images that users can select from when launching a streaming session with this launch profile. - /// This member is required. - public var streamingImageIds: [Swift.String]? - /// Custom volume configuration for the root volumes that are attached to streaming sessions. This parameter is only allowed when sessionPersistenceMode is ACTIVATED. - public var volumeConfiguration: NimbleClientTypes.VolumeConfiguration? - - public init( - automaticTerminationMode: NimbleClientTypes.AutomaticTerminationMode? = nil, - clipboardMode: NimbleClientTypes.StreamingClipboardMode? = nil, - ec2InstanceTypes: [NimbleClientTypes.StreamingInstanceType]? = nil, - maxSessionLengthInMinutes: Swift.Int? = 690, - maxStoppedSessionLengthInMinutes: Swift.Int? = 0, - sessionBackup: NimbleClientTypes.StreamConfigurationSessionBackup? = nil, - sessionPersistenceMode: NimbleClientTypes.SessionPersistenceMode? = nil, - sessionStorage: NimbleClientTypes.StreamConfigurationSessionStorage? = nil, - streamingImageIds: [Swift.String]? = nil, - volumeConfiguration: NimbleClientTypes.VolumeConfiguration? = nil - ) - { - self.automaticTerminationMode = automaticTerminationMode - self.clipboardMode = clipboardMode - self.ec2InstanceTypes = ec2InstanceTypes - self.maxSessionLengthInMinutes = maxSessionLengthInMinutes - self.maxStoppedSessionLengthInMinutes = maxStoppedSessionLengthInMinutes - self.sessionBackup = sessionBackup - self.sessionPersistenceMode = sessionPersistenceMode - self.sessionStorage = sessionStorage - self.streamingImageIds = streamingImageIds - self.volumeConfiguration = volumeConfiguration - } - } -} - -extension NimbleClientTypes { - - public enum LaunchProfileValidationState: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case validationFailed - case validationFailedInternalServerError - case validationInProgress - case validationNotStarted - case validationSuccess - case sdkUnknown(Swift.String) - - public static var allCases: [LaunchProfileValidationState] { - return [ - .validationFailed, - .validationFailedInternalServerError, - .validationInProgress, - .validationNotStarted, - .validationSuccess - ] - } - - 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 .validationFailed: return "VALIDATION_FAILED" - case .validationFailedInternalServerError: return "VALIDATION_FAILED_INTERNAL_SERVER_ERROR" - case .validationInProgress: return "VALIDATION_IN_PROGRESS" - case .validationNotStarted: return "VALIDATION_NOT_STARTED" - case .validationSuccess: return "VALIDATION_SUCCESS" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - public enum LaunchProfileValidationStatusCode: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case validationFailedInternalServerError - case validationFailedInvalidActiveDirectory - case validationFailedInvalidSecurityGroupAssociation - case validationFailedInvalidSubnetRouteTableAssociation - case validationFailedSubnetNotFound - case validationFailedUnauthorized - case validationInProgress - case validationNotStarted - case validationSuccess - case sdkUnknown(Swift.String) - - public static var allCases: [LaunchProfileValidationStatusCode] { - return [ - .validationFailedInternalServerError, - .validationFailedInvalidActiveDirectory, - .validationFailedInvalidSecurityGroupAssociation, - .validationFailedInvalidSubnetRouteTableAssociation, - .validationFailedSubnetNotFound, - .validationFailedUnauthorized, - .validationInProgress, - .validationNotStarted, - .validationSuccess - ] - } - - 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 .validationFailedInternalServerError: return "VALIDATION_FAILED_INTERNAL_SERVER_ERROR" - case .validationFailedInvalidActiveDirectory: return "VALIDATION_FAILED_INVALID_ACTIVE_DIRECTORY" - case .validationFailedInvalidSecurityGroupAssociation: return "VALIDATION_FAILED_INVALID_SECURITY_GROUP_ASSOCIATION" - case .validationFailedInvalidSubnetRouteTableAssociation: return "VALIDATION_FAILED_INVALID_SUBNET_ROUTE_TABLE_ASSOCIATION" - case .validationFailedSubnetNotFound: return "VALIDATION_FAILED_SUBNET_NOT_FOUND" - case .validationFailedUnauthorized: return "VALIDATION_FAILED_UNAUTHORIZED" - case .validationInProgress: return "VALIDATION_IN_PROGRESS" - case .validationNotStarted: return "VALIDATION_NOT_STARTED" - case .validationSuccess: return "VALIDATION_SUCCESS" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - public enum LaunchProfileValidationType: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case validateActiveDirectoryStudioComponent - case validateNetworkAclAssociation - case validateSecurityGroupAssociation - case validateSubnetAssociation - case sdkUnknown(Swift.String) - - public static var allCases: [LaunchProfileValidationType] { - return [ - .validateActiveDirectoryStudioComponent, - .validateNetworkAclAssociation, - .validateSecurityGroupAssociation, - .validateSubnetAssociation - ] - } - - 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 .validateActiveDirectoryStudioComponent: return "VALIDATE_ACTIVE_DIRECTORY_STUDIO_COMPONENT" - case .validateNetworkAclAssociation: return "VALIDATE_NETWORK_ACL_ASSOCIATION" - case .validateSecurityGroupAssociation: return "VALIDATE_SECURITY_GROUP_ASSOCIATION" - case .validateSubnetAssociation: return "VALIDATE_SUBNET_ASSOCIATION" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - /// The launch profile validation result. - public struct ValidationResult: Swift.Sendable { - /// The current state. - /// This member is required. - public var state: NimbleClientTypes.LaunchProfileValidationState? - /// The status code. This will contain the failure reason if the state is VALIDATION_FAILED. - /// This member is required. - public var statusCode: NimbleClientTypes.LaunchProfileValidationStatusCode? - /// The status message for the validation result. - /// This member is required. - public var statusMessage: Swift.String? - /// The type of the validation result. - /// This member is required. - public var type: NimbleClientTypes.LaunchProfileValidationType? - - public init( - state: NimbleClientTypes.LaunchProfileValidationState? = nil, - statusCode: NimbleClientTypes.LaunchProfileValidationStatusCode? = nil, - statusMessage: Swift.String? = nil, - type: NimbleClientTypes.LaunchProfileValidationType? = nil - ) - { - self.state = state - self.statusCode = statusCode - self.statusMessage = statusMessage - self.type = type - } - } -} - -extension NimbleClientTypes { - - /// A launch profile controls your artist workforce’s access to studio components, like compute farms, shared file systems, managed file systems, and license server configurations, as well as instance types and Amazon Machine Images (AMIs). Studio administrators create launch profiles in the Nimble Studio console. Artists can use their launch profiles to launch an instance from the Nimble Studio portal. Each user’s launch profile defines how they can launch a streaming session. By default, studio admins can use all launch profiles. - public struct LaunchProfile: Swift.Sendable { - /// The Amazon Resource Name (ARN) that is assigned to a studio resource and uniquely identifies it. ARNs are unique across all Regions. - public var arn: Swift.String? - /// The ISO timestamp in seconds for when the resource was created. - public var createdAt: Foundation.Date? - /// The user ID of the user that created the launch profile. - public var createdBy: Swift.String? - /// A human-readable description of the launch profile. - public var description: Swift.String? - /// Unique identifiers for a collection of EC2 subnets. - public var ec2SubnetIds: [Swift.String]? - /// The ID of the launch profile used to control access from the streaming session. - public var launchProfileId: Swift.String? - /// The version number of the protocol that is used by the launch profile. The only valid version is "2021-03-31". - public var launchProfileProtocolVersions: [Swift.String]? - /// A friendly name for the launch profile. - public var name: Swift.String? - /// The current state. - public var state: NimbleClientTypes.LaunchProfileState? - /// The status code. - public var statusCode: NimbleClientTypes.LaunchProfileStatusCode? - /// The status message for the launch profile. - public var statusMessage: Swift.String? - /// A configuration for a streaming session. - public var streamConfiguration: NimbleClientTypes.StreamConfiguration? - /// Unique identifiers for a collection of studio components that can be used with this launch profile. - public var studioComponentIds: [Swift.String]? - /// A collection of labels, in the form of key-value pairs, that apply to this resource. - public var tags: [Swift.String: Swift.String]? - /// The ISO timestamp in seconds for when the resource was updated. - public var updatedAt: Foundation.Date? - /// The user ID of the user that most recently updated the resource. - public var updatedBy: Swift.String? - /// The list of the latest validation results. - public var validationResults: [NimbleClientTypes.ValidationResult]? - - public init( - arn: Swift.String? = nil, - createdAt: Foundation.Date? = nil, - createdBy: Swift.String? = nil, - description: Swift.String? = nil, - ec2SubnetIds: [Swift.String]? = nil, - launchProfileId: Swift.String? = nil, - launchProfileProtocolVersions: [Swift.String]? = nil, - name: Swift.String? = nil, - state: NimbleClientTypes.LaunchProfileState? = nil, - statusCode: NimbleClientTypes.LaunchProfileStatusCode? = nil, - statusMessage: Swift.String? = nil, - streamConfiguration: NimbleClientTypes.StreamConfiguration? = nil, - studioComponentIds: [Swift.String]? = nil, - tags: [Swift.String: Swift.String]? = nil, - updatedAt: Foundation.Date? = nil, - updatedBy: Swift.String? = nil, - validationResults: [NimbleClientTypes.ValidationResult]? = nil - ) - { - self.arn = arn - self.createdAt = createdAt - self.createdBy = createdBy - self.description = description - self.ec2SubnetIds = ec2SubnetIds - self.launchProfileId = launchProfileId - self.launchProfileProtocolVersions = launchProfileProtocolVersions - self.name = name - self.state = state - self.statusCode = statusCode - self.statusMessage = statusMessage - self.streamConfiguration = streamConfiguration - self.studioComponentIds = studioComponentIds - self.tags = tags - self.updatedAt = updatedAt - self.updatedBy = updatedBy - self.validationResults = validationResults - } - } -} - -extension NimbleClientTypes.LaunchProfile: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "LaunchProfile(arn: \(Swift.String(describing: arn)), createdAt: \(Swift.String(describing: createdAt)), createdBy: \(Swift.String(describing: createdBy)), ec2SubnetIds: \(Swift.String(describing: ec2SubnetIds)), launchProfileId: \(Swift.String(describing: launchProfileId)), launchProfileProtocolVersions: \(Swift.String(describing: launchProfileProtocolVersions)), state: \(Swift.String(describing: state)), statusCode: \(Swift.String(describing: statusCode)), statusMessage: \(Swift.String(describing: statusMessage)), streamConfiguration: \(Swift.String(describing: streamConfiguration)), studioComponentIds: \(Swift.String(describing: studioComponentIds)), tags: \(Swift.String(describing: tags)), updatedAt: \(Swift.String(describing: updatedAt)), updatedBy: \(Swift.String(describing: updatedBy)), validationResults: \(Swift.String(describing: validationResults)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} -} - -public struct CreateLaunchProfileOutput: Swift.Sendable { - /// The launch profile. - public var launchProfile: NimbleClientTypes.LaunchProfile? - - public init( - launchProfile: NimbleClientTypes.LaunchProfile? = nil - ) - { - self.launchProfile = launchProfile - } -} - -public struct CreateStreamingImageInput: Swift.Sendable { - /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. - public var clientToken: Swift.String? - /// A human-readable description of the streaming image. - public var description: Swift.String? - /// The ID of an EC2 machine image with which to create this streaming image. - /// This member is required. - public var ec2ImageId: Swift.String? - /// A friendly name for a streaming image resource. - /// This member is required. - public var name: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - /// A collection of labels, in the form of key-value pairs, that apply to this resource. - public var tags: [Swift.String: Swift.String]? - - public init( - clientToken: Swift.String? = nil, - description: Swift.String? = nil, - ec2ImageId: Swift.String? = nil, - name: Swift.String? = nil, - studioId: Swift.String? = nil, - tags: [Swift.String: Swift.String]? = nil - ) - { - self.clientToken = clientToken - self.description = description - self.ec2ImageId = ec2ImageId - self.name = name - self.studioId = studioId - self.tags = tags - } -} - -extension CreateStreamingImageInput: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "CreateStreamingImageInput(clientToken: \(Swift.String(describing: clientToken)), ec2ImageId: \(Swift.String(describing: ec2ImageId)), studioId: \(Swift.String(describing: studioId)), tags: \(Swift.String(describing: tags)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} -} - -extension NimbleClientTypes { - - public enum StreamingImageEncryptionConfigurationKeyType: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case customerManagedKey - case sdkUnknown(Swift.String) - - public static var allCases: [StreamingImageEncryptionConfigurationKeyType] { - return [ - .customerManagedKey - ] - } - - 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 .customerManagedKey: return "CUSTOMER_MANAGED_KEY" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - /// Specifies how a streaming image is encrypted. - public struct StreamingImageEncryptionConfiguration: Swift.Sendable { - /// The ARN for a KMS key that is used to encrypt studio data. - public var keyArn: Swift.String? - /// The type of KMS key that is used to encrypt studio data. - /// This member is required. - public var keyType: NimbleClientTypes.StreamingImageEncryptionConfigurationKeyType? - - public init( - keyArn: Swift.String? = nil, - keyType: NimbleClientTypes.StreamingImageEncryptionConfigurationKeyType? = nil - ) - { - self.keyArn = keyArn - self.keyType = keyType - } - } -} - -extension NimbleClientTypes { - - public enum StreamingImageState: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case createFailed - case createInProgress - case deleted - case deleteFailed - case deleteInProgress - case ready - case updateFailed - case updateInProgress - case sdkUnknown(Swift.String) - - public static var allCases: [StreamingImageState] { - return [ - .createFailed, - .createInProgress, - .deleted, - .deleteFailed, - .deleteInProgress, - .ready, - .updateFailed, - .updateInProgress - ] - } - - 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 .createFailed: return "CREATE_FAILED" - case .createInProgress: return "CREATE_IN_PROGRESS" - case .deleted: return "DELETED" - case .deleteFailed: return "DELETE_FAILED" - case .deleteInProgress: return "DELETE_IN_PROGRESS" - case .ready: return "READY" - case .updateFailed: return "UPDATE_FAILED" - case .updateInProgress: return "UPDATE_IN_PROGRESS" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - /// The status code. - public enum StreamingImageStatusCode: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case accessDenied - case internalError - case streamingImageCreateInProgress - case streamingImageDeleted - case streamingImageDeleteInProgress - case streamingImageReady - case streamingImageUpdateInProgress - case sdkUnknown(Swift.String) - - public static var allCases: [StreamingImageStatusCode] { - return [ - .accessDenied, - .internalError, - .streamingImageCreateInProgress, - .streamingImageDeleted, - .streamingImageDeleteInProgress, - .streamingImageReady, - .streamingImageUpdateInProgress - ] - } - - 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 .accessDenied: return "ACCESS_DENIED" - case .internalError: return "INTERNAL_ERROR" - case .streamingImageCreateInProgress: return "STREAMING_IMAGE_CREATE_IN_PROGRESS" - case .streamingImageDeleted: return "STREAMING_IMAGE_DELETED" - case .streamingImageDeleteInProgress: return "STREAMING_IMAGE_DELETE_IN_PROGRESS" - case .streamingImageReady: return "STREAMING_IMAGE_READY" - case .streamingImageUpdateInProgress: return "STREAMING_IMAGE_UPDATE_IN_PROGRESS" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - /// Represents a streaming image resource. Streaming images are used by studio users to select which operating system and software they want to use in a Nimble Studio streaming session. Amazon provides a number of streaming images that include popular 3rd-party software. You can create your own streaming images using an Amazon EC2 machine image that you create for this purpose. You can also include software that your users require. - public struct StreamingImage: Swift.Sendable { - /// The Amazon Resource Name (ARN) that is assigned to a studio resource and uniquely identifies it. ARNs are unique across all Regions. - public var arn: Swift.String? - /// A human-readable description of the streaming image. - public var description: Swift.String? - /// The ID of an EC2 machine image with which to create the streaming image. - public var ec2ImageId: Swift.String? - /// The encryption configuration. - public var encryptionConfiguration: NimbleClientTypes.StreamingImageEncryptionConfiguration? - /// The list of EULAs that must be accepted before a Streaming Session can be started using this streaming image. - public var eulaIds: [Swift.String]? - /// A friendly name for a streaming image resource. - public var name: Swift.String? - /// The owner of the streaming image, either the studioId that contains the streaming image, or amazon for images that are provided by Amazon Nimble Studio. - public var owner: Swift.String? - /// The platform of the streaming image, either Windows or Linux. - public var platform: Swift.String? - /// The current state. - public var state: NimbleClientTypes.StreamingImageState? - /// The status code. - public var statusCode: NimbleClientTypes.StreamingImageStatusCode? - /// The status message for the streaming image. - public var statusMessage: Swift.String? - /// The ID of the streaming image. - public var streamingImageId: Swift.String? - /// A collection of labels, in the form of key-value pairs, that apply to this resource. - public var tags: [Swift.String: Swift.String]? - - public init( - arn: Swift.String? = nil, - description: Swift.String? = nil, - ec2ImageId: Swift.String? = nil, - encryptionConfiguration: NimbleClientTypes.StreamingImageEncryptionConfiguration? = nil, - eulaIds: [Swift.String]? = nil, - name: Swift.String? = nil, - owner: Swift.String? = nil, - platform: Swift.String? = nil, - state: NimbleClientTypes.StreamingImageState? = nil, - statusCode: NimbleClientTypes.StreamingImageStatusCode? = nil, - statusMessage: Swift.String? = nil, - streamingImageId: Swift.String? = nil, - tags: [Swift.String: Swift.String]? = nil - ) - { - self.arn = arn - self.description = description - self.ec2ImageId = ec2ImageId - self.encryptionConfiguration = encryptionConfiguration - self.eulaIds = eulaIds - self.name = name - self.owner = owner - self.platform = platform - self.state = state - self.statusCode = statusCode - self.statusMessage = statusMessage - self.streamingImageId = streamingImageId - self.tags = tags - } - } -} - -extension NimbleClientTypes.StreamingImage: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "StreamingImage(arn: \(Swift.String(describing: arn)), ec2ImageId: \(Swift.String(describing: ec2ImageId)), encryptionConfiguration: \(Swift.String(describing: encryptionConfiguration)), eulaIds: \(Swift.String(describing: eulaIds)), owner: \(Swift.String(describing: owner)), platform: \(Swift.String(describing: platform)), state: \(Swift.String(describing: state)), statusCode: \(Swift.String(describing: statusCode)), statusMessage: \(Swift.String(describing: statusMessage)), streamingImageId: \(Swift.String(describing: streamingImageId)), tags: \(Swift.String(describing: tags)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} -} - -public struct CreateStreamingImageOutput: Swift.Sendable { - /// The streaming image. - public var streamingImage: NimbleClientTypes.StreamingImage? - - public init( - streamingImage: NimbleClientTypes.StreamingImage? = nil - ) - { - self.streamingImage = streamingImage - } -} - -public struct CreateStreamingSessionInput: Swift.Sendable { - /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. - public var clientToken: Swift.String? - /// The EC2 Instance type used for the streaming session. - public var ec2InstanceType: NimbleClientTypes.StreamingInstanceType? - /// The ID of the launch profile used to control access from the streaming session. - /// This member is required. - public var launchProfileId: Swift.String? - /// The user ID of the user that owns the streaming session. The user that owns the session will be logging into the session and interacting with the virtual workstation. - public var ownedBy: Swift.String? - /// The ID of the streaming image. - public var streamingImageId: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - /// A collection of labels, in the form of key-value pairs, that apply to this resource. - public var tags: [Swift.String: Swift.String]? - - public init( - clientToken: Swift.String? = nil, - ec2InstanceType: NimbleClientTypes.StreamingInstanceType? = nil, - launchProfileId: Swift.String? = nil, - ownedBy: Swift.String? = nil, - streamingImageId: Swift.String? = nil, - studioId: Swift.String? = nil, - tags: [Swift.String: Swift.String]? = nil - ) - { - self.clientToken = clientToken - self.ec2InstanceType = ec2InstanceType - self.launchProfileId = launchProfileId - self.ownedBy = ownedBy - self.streamingImageId = streamingImageId - self.studioId = studioId - self.tags = tags - } -} - -extension NimbleClientTypes { - - /// The streaming session state. - public enum StreamingSessionState: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case createFailed - case createInProgress - case deleted - case deleteFailed - case deleteInProgress - case ready - case startFailed - case startInProgress - case stopped - case stopFailed - case stopInProgress - case sdkUnknown(Swift.String) - - public static var allCases: [StreamingSessionState] { - return [ - .createFailed, - .createInProgress, - .deleted, - .deleteFailed, - .deleteInProgress, - .ready, - .startFailed, - .startInProgress, - .stopped, - .stopFailed, - .stopInProgress - ] - } - - 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 .createFailed: return "CREATE_FAILED" - case .createInProgress: return "CREATE_IN_PROGRESS" - case .deleted: return "DELETED" - case .deleteFailed: return "DELETE_FAILED" - case .deleteInProgress: return "DELETE_IN_PROGRESS" - case .ready: return "READY" - case .startFailed: return "START_FAILED" - case .startInProgress: return "START_IN_PROGRESS" - case .stopped: return "STOPPED" - case .stopFailed: return "STOP_FAILED" - case .stopInProgress: return "STOP_IN_PROGRESS" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - public enum StreamingSessionStatusCode: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case activeDirectoryDomainJoinError - case amiValidationError - case decryptStreamingImageError - case initializationScriptError - case insufficientCapacity - case internalError - case networkConnectionError - case networkInterfaceError - case streamingSessionCreateInProgress - case streamingSessionDeleted - case streamingSessionDeleteInProgress - case streamingSessionReady - case streamingSessionStarted - case streamingSessionStartInProgress - case streamingSessionStopped - case streamingSessionStopInProgress - case sdkUnknown(Swift.String) - - public static var allCases: [StreamingSessionStatusCode] { - return [ - .activeDirectoryDomainJoinError, - .amiValidationError, - .decryptStreamingImageError, - .initializationScriptError, - .insufficientCapacity, - .internalError, - .networkConnectionError, - .networkInterfaceError, - .streamingSessionCreateInProgress, - .streamingSessionDeleted, - .streamingSessionDeleteInProgress, - .streamingSessionReady, - .streamingSessionStarted, - .streamingSessionStartInProgress, - .streamingSessionStopped, - .streamingSessionStopInProgress - ] - } - - 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 .activeDirectoryDomainJoinError: return "ACTIVE_DIRECTORY_DOMAIN_JOIN_ERROR" - case .amiValidationError: return "AMI_VALIDATION_ERROR" - case .decryptStreamingImageError: return "DECRYPT_STREAMING_IMAGE_ERROR" - case .initializationScriptError: return "INITIALIZATION_SCRIPT_ERROR" - case .insufficientCapacity: return "INSUFFICIENT_CAPACITY" - case .internalError: return "INTERNAL_ERROR" - case .networkConnectionError: return "NETWORK_CONNECTION_ERROR" - case .networkInterfaceError: return "NETWORK_INTERFACE_ERROR" - case .streamingSessionCreateInProgress: return "STREAMING_SESSION_CREATE_IN_PROGRESS" - case .streamingSessionDeleted: return "STREAMING_SESSION_DELETED" - case .streamingSessionDeleteInProgress: return "STREAMING_SESSION_DELETE_IN_PROGRESS" - case .streamingSessionReady: return "STREAMING_SESSION_READY" - case .streamingSessionStarted: return "STREAMING_SESSION_STARTED" - case .streamingSessionStartInProgress: return "STREAMING_SESSION_START_IN_PROGRESS" - case .streamingSessionStopped: return "STREAMING_SESSION_STOPPED" - case .streamingSessionStopInProgress: return "STREAMING_SESSION_STOP_IN_PROGRESS" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - public enum VolumeRetentionMode: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case delete - case retain - case sdkUnknown(Swift.String) - - public static var allCases: [VolumeRetentionMode] { - return [ - .delete, - .retain - ] - } - - 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 .delete: return "DELETE" - case .retain: return "RETAIN" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - /// A streaming session is a virtual workstation created using a particular launch profile. - public struct StreamingSession: Swift.Sendable { - /// The Amazon Resource Name (ARN) that is assigned to a studio resource and uniquely identifies it. ARNs are unique across all Regions. - public var arn: Swift.String? - /// Indicates if a streaming session created from this launch profile should be terminated automatically or retained without termination after being in a STOPPED state. - /// - /// * When ACTIVATED, the streaming session is scheduled for termination after being in the STOPPED state for the time specified in maxStoppedSessionLengthInMinutes. - /// - /// * When DEACTIVATED, the streaming session can remain in the STOPPED state indefinitely. - /// - /// - /// This parameter is only allowed when sessionPersistenceMode is ACTIVATED. When allowed, the default value for this parameter is DEACTIVATED. - public var automaticTerminationMode: NimbleClientTypes.AutomaticTerminationMode? - /// Shows the current backup setting of the session. - public var backupMode: NimbleClientTypes.SessionBackupMode? - /// The ISO timestamp in seconds for when the resource was created. - public var createdAt: Foundation.Date? - /// The user ID of the user that created the streaming session. - public var createdBy: Swift.String? - /// The EC2 Instance type used for the streaming session. - public var ec2InstanceType: Swift.String? - /// The ID of the launch profile used to control access from the streaming session. - public var launchProfileId: Swift.String? - /// The maximum number of backups of a streaming session that you can have. When the maximum number of backups is reached, the oldest backup is deleted. - public var maxBackupsToRetain: Swift.Int? - /// The user ID of the user that owns the streaming session. The user that owns the session will be logging into the session and interacting with the virtual workstation. - public var ownedBy: Swift.String? - /// The session ID. - public var sessionId: Swift.String? - /// Determine if a streaming session created from this launch profile can configure persistent storage. This means that volumeConfiguration and automaticTerminationMode are configured. - public var sessionPersistenceMode: NimbleClientTypes.SessionPersistenceMode? - /// The time the session entered START_IN_PROGRESS state. - public var startedAt: Foundation.Date? - /// The user ID of the user that started the streaming session. - public var startedBy: Swift.String? - /// The backup ID used to restore a streaming session. - public var startedFromBackupId: Swift.String? - /// The current state. - public var state: NimbleClientTypes.StreamingSessionState? - /// The status code. - public var statusCode: NimbleClientTypes.StreamingSessionStatusCode? - /// The status message for the streaming session. - public var statusMessage: Swift.String? - /// The time the streaming session will automatically be stopped if the user doesn’t stop the session themselves. - public var stopAt: Foundation.Date? - /// The time the session entered STOP_IN_PROGRESS state. - public var stoppedAt: Foundation.Date? - /// The user ID of the user that stopped the streaming session. - public var stoppedBy: Swift.String? - /// The ID of the streaming image. - public var streamingImageId: Swift.String? - /// A collection of labels, in the form of key-value pairs, that apply to this resource. - public var tags: [Swift.String: Swift.String]? - /// The time the streaming session will automatically terminate if not terminated by the user. - public var terminateAt: Foundation.Date? - /// The ISO timestamp in seconds for when the resource was updated. - public var updatedAt: Foundation.Date? - /// The user ID of the user that most recently updated the resource. - public var updatedBy: Swift.String? - /// Custom volume configuration for the root volumes that are attached to streaming sessions. This parameter is only allowed when sessionPersistenceMode is ACTIVATED. - public var volumeConfiguration: NimbleClientTypes.VolumeConfiguration? - /// Determine if an EBS volume created from this streaming session will be backed up. - public var volumeRetentionMode: NimbleClientTypes.VolumeRetentionMode? - - public init( - arn: Swift.String? = nil, - automaticTerminationMode: NimbleClientTypes.AutomaticTerminationMode? = nil, - backupMode: NimbleClientTypes.SessionBackupMode? = nil, - createdAt: Foundation.Date? = nil, - createdBy: Swift.String? = nil, - ec2InstanceType: Swift.String? = nil, - launchProfileId: Swift.String? = nil, - maxBackupsToRetain: Swift.Int? = 0, - ownedBy: Swift.String? = nil, - sessionId: Swift.String? = nil, - sessionPersistenceMode: NimbleClientTypes.SessionPersistenceMode? = nil, - startedAt: Foundation.Date? = nil, - startedBy: Swift.String? = nil, - startedFromBackupId: Swift.String? = nil, - state: NimbleClientTypes.StreamingSessionState? = nil, - statusCode: NimbleClientTypes.StreamingSessionStatusCode? = nil, - statusMessage: Swift.String? = nil, - stopAt: Foundation.Date? = nil, - stoppedAt: Foundation.Date? = nil, - stoppedBy: Swift.String? = nil, - streamingImageId: Swift.String? = nil, - tags: [Swift.String: Swift.String]? = nil, - terminateAt: Foundation.Date? = nil, - updatedAt: Foundation.Date? = nil, - updatedBy: Swift.String? = nil, - volumeConfiguration: NimbleClientTypes.VolumeConfiguration? = nil, - volumeRetentionMode: NimbleClientTypes.VolumeRetentionMode? = nil - ) - { - self.arn = arn - self.automaticTerminationMode = automaticTerminationMode - self.backupMode = backupMode - self.createdAt = createdAt - self.createdBy = createdBy - self.ec2InstanceType = ec2InstanceType - self.launchProfileId = launchProfileId - self.maxBackupsToRetain = maxBackupsToRetain - self.ownedBy = ownedBy - self.sessionId = sessionId - self.sessionPersistenceMode = sessionPersistenceMode - self.startedAt = startedAt - self.startedBy = startedBy - self.startedFromBackupId = startedFromBackupId - self.state = state - self.statusCode = statusCode - self.statusMessage = statusMessage - self.stopAt = stopAt - self.stoppedAt = stoppedAt - self.stoppedBy = stoppedBy - self.streamingImageId = streamingImageId - self.tags = tags - self.terminateAt = terminateAt - self.updatedAt = updatedAt - self.updatedBy = updatedBy - self.volumeConfiguration = volumeConfiguration - self.volumeRetentionMode = volumeRetentionMode - } - } -} - -public struct CreateStreamingSessionOutput: Swift.Sendable { - /// The session. - public var session: NimbleClientTypes.StreamingSession? - - public init( - session: NimbleClientTypes.StreamingSession? = nil - ) - { - self.session = session - } -} - -public struct CreateStreamingSessionStreamInput: Swift.Sendable { - /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. - public var clientToken: Swift.String? - /// The expiration time in seconds. - public var expirationInSeconds: Swift.Int? - /// The streaming session ID. - /// This member is required. - public var sessionId: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - clientToken: Swift.String? = nil, - expirationInSeconds: Swift.Int? = 120, - sessionId: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.clientToken = clientToken - self.expirationInSeconds = expirationInSeconds - self.sessionId = sessionId - self.studioId = studioId - } -} - -extension NimbleClientTypes { - - public enum StreamingSessionStreamState: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case createFailed - case createInProgress - case deleted - case deleteFailed - case deleteInProgress - case ready - case sdkUnknown(Swift.String) - - public static var allCases: [StreamingSessionStreamState] { - return [ - .createFailed, - .createInProgress, - .deleted, - .deleteFailed, - .deleteInProgress, - .ready - ] - } - - 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 .createFailed: return "CREATE_FAILED" - case .createInProgress: return "CREATE_IN_PROGRESS" - case .deleted: return "DELETED" - case .deleteFailed: return "DELETE_FAILED" - case .deleteInProgress: return "DELETE_IN_PROGRESS" - case .ready: return "READY" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - public enum StreamingSessionStreamStatusCode: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case internalError - case networkConnectionError - case streamCreateInProgress - case streamDeleted - case streamDeleteInProgress - case streamReady - case sdkUnknown(Swift.String) - - public static var allCases: [StreamingSessionStreamStatusCode] { - return [ - .internalError, - .networkConnectionError, - .streamCreateInProgress, - .streamDeleted, - .streamDeleteInProgress, - .streamReady - ] - } - - 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 .internalError: return "INTERNAL_ERROR" - case .networkConnectionError: return "NETWORK_CONNECTION_ERROR" - case .streamCreateInProgress: return "STREAM_CREATE_IN_PROGRESS" - case .streamDeleted: return "STREAM_DELETED" - case .streamDeleteInProgress: return "STREAM_DELETE_IN_PROGRESS" - case .streamReady: return "STREAM_READY" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - /// A stream is an active connection to a streaming session, enabling a studio user to control the streaming session using a compatible client. Streaming session streams are compatible with the NICE DCV web client, included in the Nimble Studio portal, or the NICE DCV desktop client. - public struct StreamingSessionStream: Swift.Sendable { - /// The ISO timestamp in seconds for when the resource was created. - public var createdAt: Foundation.Date? - /// The user ID of the user that created the streaming session stream. - public var createdBy: Swift.String? - /// The ISO timestamp in seconds for when the resource expires. - public var expiresAt: Foundation.Date? - /// The user ID of the user that owns the streaming session. The user that owns the session will be logging into the session and interacting with the virtual workstation. - public var ownedBy: Swift.String? - /// The current state. - public var state: NimbleClientTypes.StreamingSessionStreamState? - /// The streaming session stream status code. - public var statusCode: NimbleClientTypes.StreamingSessionStreamStatusCode? - /// The stream ID. - public var streamId: Swift.String? - /// The URL to connect to this stream using the DCV client. - public var url: Swift.String? - - public init( - createdAt: Foundation.Date? = nil, - createdBy: Swift.String? = nil, - expiresAt: Foundation.Date? = nil, - ownedBy: Swift.String? = nil, - state: NimbleClientTypes.StreamingSessionStreamState? = nil, - statusCode: NimbleClientTypes.StreamingSessionStreamStatusCode? = nil, - streamId: Swift.String? = nil, - url: Swift.String? = nil - ) - { - self.createdAt = createdAt - self.createdBy = createdBy - self.expiresAt = expiresAt - self.ownedBy = ownedBy - self.state = state - self.statusCode = statusCode - self.streamId = streamId - self.url = url - } - } -} - -extension NimbleClientTypes.StreamingSessionStream: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "StreamingSessionStream(createdAt: \(Swift.String(describing: createdAt)), createdBy: \(Swift.String(describing: createdBy)), expiresAt: \(Swift.String(describing: expiresAt)), ownedBy: \(Swift.String(describing: ownedBy)), state: \(Swift.String(describing: state)), statusCode: \(Swift.String(describing: statusCode)), streamId: \(Swift.String(describing: streamId)), url: \"CONTENT_REDACTED\")"} -} - -public struct CreateStreamingSessionStreamOutput: Swift.Sendable { - /// The stream. - public var stream: NimbleClientTypes.StreamingSessionStream? - - public init( - stream: NimbleClientTypes.StreamingSessionStream? = nil - ) - { - self.stream = stream - } -} - -extension NimbleClientTypes { - - /// The type of KMS key that is used to encrypt studio data. - public enum StudioEncryptionConfigurationKeyType: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case awsOwnedKey - case customerManagedKey - case sdkUnknown(Swift.String) - - public static var allCases: [StudioEncryptionConfigurationKeyType] { - return [ - .awsOwnedKey, - .customerManagedKey - ] - } - - 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 .awsOwnedKey: return "AWS_OWNED_KEY" - case .customerManagedKey: return "CUSTOMER_MANAGED_KEY" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - /// Configuration of the encryption method that is used for the studio. - public struct StudioEncryptionConfiguration: Swift.Sendable { - /// The ARN for a KMS key that is used to encrypt studio data. - public var keyArn: Swift.String? - /// The type of KMS key that is used to encrypt studio data. - /// This member is required. - public var keyType: NimbleClientTypes.StudioEncryptionConfigurationKeyType? - - public init( - keyArn: Swift.String? = nil, - keyType: NimbleClientTypes.StudioEncryptionConfigurationKeyType? = nil - ) - { - self.keyArn = keyArn - self.keyType = keyType - } - } -} - -public struct CreateStudioInput: Swift.Sendable { - /// The IAM role that studio admins will assume when logging in to the Nimble Studio portal. - /// This member is required. - public var adminRoleArn: Swift.String? - /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. - public var clientToken: Swift.String? - /// A friendly name for the studio. - /// This member is required. - public var displayName: Swift.String? - /// The studio encryption configuration. - public var studioEncryptionConfiguration: NimbleClientTypes.StudioEncryptionConfiguration? - /// The studio name that is used in the URL of the Nimble Studio portal when accessed by Nimble Studio users. - /// This member is required. - public var studioName: Swift.String? - /// A collection of labels, in the form of key-value pairs, that apply to this resource. - public var tags: [Swift.String: Swift.String]? - /// The IAM role that studio users will assume when logging in to the Nimble Studio portal. - /// This member is required. - public var userRoleArn: Swift.String? - - public init( - adminRoleArn: Swift.String? = nil, - clientToken: Swift.String? = nil, - displayName: Swift.String? = nil, - studioEncryptionConfiguration: NimbleClientTypes.StudioEncryptionConfiguration? = nil, - studioName: Swift.String? = nil, - tags: [Swift.String: Swift.String]? = nil, - userRoleArn: Swift.String? = nil - ) - { - self.adminRoleArn = adminRoleArn - self.clientToken = clientToken - self.displayName = displayName - self.studioEncryptionConfiguration = studioEncryptionConfiguration - self.studioName = studioName - self.tags = tags - self.userRoleArn = userRoleArn - } -} - -extension CreateStudioInput: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "CreateStudioInput(adminRoleArn: \(Swift.String(describing: adminRoleArn)), clientToken: \(Swift.String(describing: clientToken)), studioEncryptionConfiguration: \(Swift.String(describing: studioEncryptionConfiguration)), studioName: \(Swift.String(describing: studioName)), tags: \(Swift.String(describing: tags)), userRoleArn: \(Swift.String(describing: userRoleArn)), displayName: \"CONTENT_REDACTED\")"} -} - -extension NimbleClientTypes { - - public enum StudioState: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case createFailed - case createInProgress - case deleted - case deleteFailed - case deleteInProgress - case ready - case updateFailed - case updateInProgress - case sdkUnknown(Swift.String) - - public static var allCases: [StudioState] { - return [ - .createFailed, - .createInProgress, - .deleted, - .deleteFailed, - .deleteInProgress, - .ready, - .updateFailed, - .updateInProgress - ] - } - - 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 .createFailed: return "CREATE_FAILED" - case .createInProgress: return "CREATE_IN_PROGRESS" - case .deleted: return "DELETED" - case .deleteFailed: return "DELETE_FAILED" - case .deleteInProgress: return "DELETE_IN_PROGRESS" - case .ready: return "READY" - case .updateFailed: return "UPDATE_FAILED" - case .updateInProgress: return "UPDATE_IN_PROGRESS" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - /// The status code. - public enum StudioStatusCode: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case awsSsoAccessDenied - case awsSsoConfigurationRepaired - case awsSsoConfigurationRepairInProgress - case awsSsoNotEnabled - case awsStsRegionDisabled - case encryptionKeyAccessDenied - case encryptionKeyNotFound - case internalError - case roleCouldNotBeAssumed - case roleNotOwnedByStudioOwner - case studioCreated - case studioCreateInProgress - case studioDeleted - case studioDeleteInProgress - case studioUpdated - case studioUpdateInProgress - case studioWithLaunchProfilesNotDeleted - case studioWithStreamingImagesNotDeleted - case studioWithStudioComponentsNotDeleted - case sdkUnknown(Swift.String) - - public static var allCases: [StudioStatusCode] { - return [ - .awsSsoAccessDenied, - .awsSsoConfigurationRepaired, - .awsSsoConfigurationRepairInProgress, - .awsSsoNotEnabled, - .awsStsRegionDisabled, - .encryptionKeyAccessDenied, - .encryptionKeyNotFound, - .internalError, - .roleCouldNotBeAssumed, - .roleNotOwnedByStudioOwner, - .studioCreated, - .studioCreateInProgress, - .studioDeleted, - .studioDeleteInProgress, - .studioUpdated, - .studioUpdateInProgress, - .studioWithLaunchProfilesNotDeleted, - .studioWithStreamingImagesNotDeleted, - .studioWithStudioComponentsNotDeleted - ] - } - - 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 .awsSsoAccessDenied: return "AWS_SSO_ACCESS_DENIED" - case .awsSsoConfigurationRepaired: return "AWS_SSO_CONFIGURATION_REPAIRED" - case .awsSsoConfigurationRepairInProgress: return "AWS_SSO_CONFIGURATION_REPAIR_IN_PROGRESS" - case .awsSsoNotEnabled: return "AWS_SSO_NOT_ENABLED" - case .awsStsRegionDisabled: return "AWS_STS_REGION_DISABLED" - case .encryptionKeyAccessDenied: return "ENCRYPTION_KEY_ACCESS_DENIED" - case .encryptionKeyNotFound: return "ENCRYPTION_KEY_NOT_FOUND" - case .internalError: return "INTERNAL_ERROR" - case .roleCouldNotBeAssumed: return "ROLE_COULD_NOT_BE_ASSUMED" - case .roleNotOwnedByStudioOwner: return "ROLE_NOT_OWNED_BY_STUDIO_OWNER" - case .studioCreated: return "STUDIO_CREATED" - case .studioCreateInProgress: return "STUDIO_CREATE_IN_PROGRESS" - case .studioDeleted: return "STUDIO_DELETED" - case .studioDeleteInProgress: return "STUDIO_DELETE_IN_PROGRESS" - case .studioUpdated: return "STUDIO_UPDATED" - case .studioUpdateInProgress: return "STUDIO_UPDATE_IN_PROGRESS" - case .studioWithLaunchProfilesNotDeleted: return "STUDIO_WITH_LAUNCH_PROFILES_NOT_DELETED" - case .studioWithStreamingImagesNotDeleted: return "STUDIO_WITH_STREAMING_IMAGES_NOT_DELETED" - case .studioWithStudioComponentsNotDeleted: return "STUDIO_WITH_STUDIO_COMPONENTS_NOT_DELETED" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - /// Represents a studio resource. A studio is the core resource used with Nimble Studio. You must create a studio first, before any other resource type can be created. All other resources you create and manage in Nimble Studio are contained within a studio. When creating a studio, you must provides two IAM roles for use with the Nimble Studio portal. These roles are assumed by your users when they log in to the Nimble Studio portal via IAM Identity Center and your identity source. The user role must have the AmazonNimbleStudio-StudioUser managed policy attached for the portal to function properly. The admin role must have the AmazonNimbleStudio-StudioAdmin managed policy attached for the portal to function properly. Your studio roles must trust the identity.nimble.amazonaws.com service principal to function properly. - public struct Studio: Swift.Sendable { - /// The IAM role that studio admins assume when logging in to the Nimble Studio portal. - public var adminRoleArn: Swift.String? - /// The Amazon Resource Name (ARN) that is assigned to a studio resource and uniquely identifies it. ARNs are unique across all Regions. - public var arn: Swift.String? - /// The ISO timestamp in seconds for when the resource was created. - public var createdAt: Foundation.Date? - /// A friendly name for the studio. - public var displayName: Swift.String? - /// The Amazon Web Services Region where the studio resource is located. - public var homeRegion: Swift.String? - /// The IAM Identity Center application client ID used to integrate with IAM Identity Center. This ID allows IAM Identity Center users to log in to Nimble Studio portal. - public var ssoClientId: Swift.String? - /// The current state of the studio resource. - public var state: NimbleClientTypes.StudioState? - /// Status codes that provide additional detail on the studio state. - public var statusCode: NimbleClientTypes.StudioStatusCode? - /// Additional detail on the studio state. - public var statusMessage: Swift.String? - /// Configuration of the encryption method that is used for the studio. - public var studioEncryptionConfiguration: NimbleClientTypes.StudioEncryptionConfiguration? - /// The unique identifier for a studio resource. In Nimble Studio, all other resources are contained in a studio resource. - public var studioId: Swift.String? - /// The name of the studio, as included in the URL when accessing it in the Nimble Studio portal. - public var studioName: Swift.String? - /// The address of the web page for the studio. - public var studioUrl: Swift.String? - /// A collection of labels, in the form of key-value pairs, that apply to this resource. - public var tags: [Swift.String: Swift.String]? - /// The ISO timestamp in seconds for when the resource was updated. - public var updatedAt: Foundation.Date? - /// The IAM role that studio users assume when logging in to the Nimble Studio portal. - public var userRoleArn: Swift.String? - - public init( - adminRoleArn: Swift.String? = nil, - arn: Swift.String? = nil, - createdAt: Foundation.Date? = nil, - displayName: Swift.String? = nil, - homeRegion: Swift.String? = nil, - ssoClientId: Swift.String? = nil, - state: NimbleClientTypes.StudioState? = nil, - statusCode: NimbleClientTypes.StudioStatusCode? = nil, - statusMessage: Swift.String? = nil, - studioEncryptionConfiguration: NimbleClientTypes.StudioEncryptionConfiguration? = nil, - studioId: Swift.String? = nil, - studioName: Swift.String? = nil, - studioUrl: Swift.String? = nil, - tags: [Swift.String: Swift.String]? = nil, - updatedAt: Foundation.Date? = nil, - userRoleArn: Swift.String? = nil - ) - { - self.adminRoleArn = adminRoleArn - self.arn = arn - self.createdAt = createdAt - self.displayName = displayName - self.homeRegion = homeRegion - self.ssoClientId = ssoClientId - self.state = state - self.statusCode = statusCode - self.statusMessage = statusMessage - self.studioEncryptionConfiguration = studioEncryptionConfiguration - self.studioId = studioId - self.studioName = studioName - self.studioUrl = studioUrl - self.tags = tags - self.updatedAt = updatedAt - self.userRoleArn = userRoleArn - } - } -} - -extension NimbleClientTypes.Studio: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "Studio(adminRoleArn: \(Swift.String(describing: adminRoleArn)), arn: \(Swift.String(describing: arn)), createdAt: \(Swift.String(describing: createdAt)), homeRegion: \(Swift.String(describing: homeRegion)), ssoClientId: \(Swift.String(describing: ssoClientId)), state: \(Swift.String(describing: state)), statusCode: \(Swift.String(describing: statusCode)), statusMessage: \(Swift.String(describing: statusMessage)), studioEncryptionConfiguration: \(Swift.String(describing: studioEncryptionConfiguration)), studioId: \(Swift.String(describing: studioId)), studioName: \(Swift.String(describing: studioName)), studioUrl: \(Swift.String(describing: studioUrl)), tags: \(Swift.String(describing: tags)), updatedAt: \(Swift.String(describing: updatedAt)), userRoleArn: \(Swift.String(describing: userRoleArn)), displayName: \"CONTENT_REDACTED\")"} -} - -public struct CreateStudioOutput: Swift.Sendable { - /// Information about a studio. - public var studio: NimbleClientTypes.Studio? - - public init( - studio: NimbleClientTypes.Studio? = nil - ) - { - self.studio = studio - } -} - -extension NimbleClientTypes { - - /// The configuration for a license service that is associated with a studio resource. - public struct LicenseServiceConfiguration: Swift.Sendable { - /// The endpoint of the license service that is accessed by the studio component resource. - public var endpoint: Swift.String? - - public init( - endpoint: Swift.String? = nil - ) - { - self.endpoint = endpoint - } - } -} - -extension NimbleClientTypes.LicenseServiceConfiguration: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "LicenseServiceConfiguration(endpoint: \"CONTENT_REDACTED\")"} -} - -extension NimbleClientTypes { - - /// The configuration for a shared file storage system that is associated with a studio resource. - public struct SharedFileSystemConfiguration: Swift.Sendable { - /// The endpoint of the shared file system that is accessed by the studio component resource. - public var endpoint: Swift.String? - /// The unique identifier for a file system. - public var fileSystemId: Swift.String? - /// The mount location for a shared file system on a Linux virtual workstation. - public var linuxMountPoint: Swift.String? - /// The name of the file share. - public var shareName: Swift.String? - /// The mount location for a shared file system on a Windows virtual workstation. - public var windowsMountDrive: Swift.String? - - public init( - endpoint: Swift.String? = nil, - fileSystemId: Swift.String? = nil, - linuxMountPoint: Swift.String? = nil, - shareName: Swift.String? = nil, - windowsMountDrive: Swift.String? = nil - ) - { - self.endpoint = endpoint - self.fileSystemId = fileSystemId - self.linuxMountPoint = linuxMountPoint - self.shareName = shareName - self.windowsMountDrive = windowsMountDrive - } - } -} - -extension NimbleClientTypes.SharedFileSystemConfiguration: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "SharedFileSystemConfiguration(fileSystemId: \(Swift.String(describing: fileSystemId)), windowsMountDrive: \(Swift.String(describing: windowsMountDrive)), endpoint: \"CONTENT_REDACTED\", linuxMountPoint: \"CONTENT_REDACTED\", shareName: \"CONTENT_REDACTED\")"} -} - -extension NimbleClientTypes { - - /// The configuration of the studio component, based on component type. - public enum StudioComponentConfiguration: Swift.Sendable { - /// The configuration for a Directory Service for Microsoft Active Directory studio resource. - case activedirectoryconfiguration(NimbleClientTypes.ActiveDirectoryConfiguration) - /// The configuration for a render farm that is associated with a studio resource. - case computefarmconfiguration(NimbleClientTypes.ComputeFarmConfiguration) - /// The configuration for a license service that is associated with a studio resource. - case licenseserviceconfiguration(NimbleClientTypes.LicenseServiceConfiguration) - /// The configuration for a shared file storage system that is associated with a studio resource. - case sharedfilesystemconfiguration(NimbleClientTypes.SharedFileSystemConfiguration) - case sdkUnknown(Swift.String) - } -} - -extension NimbleClientTypes { - - public enum LaunchProfilePlatform: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case linux - case windows - case sdkUnknown(Swift.String) - - public static var allCases: [LaunchProfilePlatform] { - return [ - .linux, - .windows - ] - } - - 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 .linux: return "LINUX" - case .windows: return "WINDOWS" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - public enum StudioComponentInitializationScriptRunContext: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case systemInitialization - case userInitialization - case sdkUnknown(Swift.String) - - public static var allCases: [StudioComponentInitializationScriptRunContext] { - return [ - .systemInitialization, - .userInitialization - ] - } - - 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 .systemInitialization: return "SYSTEM_INITIALIZATION" - case .userInitialization: return "USER_INITIALIZATION" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - /// Initialization scripts for studio components. - public struct StudioComponentInitializationScript: Swift.Sendable { - /// The version number of the protocol that is used by the launch profile. The only valid version is "2021-03-31". - public var launchProfileProtocolVersion: Swift.String? - /// The platform of the initialization script, either Windows or Linux. - public var platform: NimbleClientTypes.LaunchProfilePlatform? - /// The method to use when running the initialization script. - public var runContext: NimbleClientTypes.StudioComponentInitializationScriptRunContext? - /// The initialization script. - public var script: Swift.String? - - public init( - launchProfileProtocolVersion: Swift.String? = nil, - platform: NimbleClientTypes.LaunchProfilePlatform? = nil, - runContext: NimbleClientTypes.StudioComponentInitializationScriptRunContext? = nil, - script: Swift.String? = nil - ) - { - self.launchProfileProtocolVersion = launchProfileProtocolVersion - self.platform = platform - self.runContext = runContext - self.script = script - } - } -} - -extension NimbleClientTypes.StudioComponentInitializationScript: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "StudioComponentInitializationScript(launchProfileProtocolVersion: \(Swift.String(describing: launchProfileProtocolVersion)), platform: \(Swift.String(describing: platform)), runContext: \(Swift.String(describing: runContext)), script: \"CONTENT_REDACTED\")"} -} - -extension NimbleClientTypes { - - /// A parameter for a studio component script, in the form of a key-value pair. - public struct ScriptParameterKeyValue: Swift.Sendable { - /// A script parameter key. - public var key: Swift.String? - /// A script parameter value. - public var value: Swift.String? - - public init( - key: Swift.String? = nil, - value: Swift.String? = nil - ) - { - self.key = key - self.value = value - } - } -} - -extension NimbleClientTypes { - - public enum StudioComponentSubtype: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case amazonFsxForLustre - case amazonFsxForWindows - case awsManagedMicrosoftAd - case custom - case sdkUnknown(Swift.String) - - public static var allCases: [StudioComponentSubtype] { - return [ - .amazonFsxForLustre, - .amazonFsxForWindows, - .awsManagedMicrosoftAd, - .custom - ] - } - - 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 .amazonFsxForLustre: return "AMAZON_FSX_FOR_LUSTRE" - case .amazonFsxForWindows: return "AMAZON_FSX_FOR_WINDOWS" - case .awsManagedMicrosoftAd: return "AWS_MANAGED_MICROSOFT_AD" - case .custom: return "CUSTOM" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - public enum StudioComponentType: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case activeDirectory - case computeFarm - case custom - case licenseService - case sharedFileSystem - case sdkUnknown(Swift.String) - - public static var allCases: [StudioComponentType] { - return [ - .activeDirectory, - .computeFarm, - .custom, - .licenseService, - .sharedFileSystem - ] - } - - 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 .activeDirectory: return "ACTIVE_DIRECTORY" - case .computeFarm: return "COMPUTE_FARM" - case .custom: return "CUSTOM" - case .licenseService: return "LICENSE_SERVICE" - case .sharedFileSystem: return "SHARED_FILE_SYSTEM" - case let .sdkUnknown(s): return s - } - } - } -} - -public struct CreateStudioComponentInput: Swift.Sendable { - /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. - public var clientToken: Swift.String? - /// The configuration of the studio component, based on component type. - public var configuration: NimbleClientTypes.StudioComponentConfiguration? - /// The description. - public var description: Swift.String? - /// The EC2 security groups that control access to the studio component. - public var ec2SecurityGroupIds: [Swift.String]? - /// Initialization scripts for studio components. - public var initializationScripts: [NimbleClientTypes.StudioComponentInitializationScript]? - /// The name for the studio component. - /// This member is required. - public var name: Swift.String? - /// An IAM role attached to a Studio Component that gives the studio component access to Amazon Web Services resources at anytime while the instance is running. - public var runtimeRoleArn: Swift.String? - /// Parameters for the studio component scripts. - public var scriptParameters: [NimbleClientTypes.ScriptParameterKeyValue]? - /// An IAM role attached to Studio Component when the system initialization script runs which give the studio component access to Amazon Web Services resources when the system initialization script runs. - public var secureInitializationRoleArn: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - /// The specific subtype of a studio component. - public var subtype: NimbleClientTypes.StudioComponentSubtype? - /// A collection of labels, in the form of key-value pairs, that apply to this resource. - public var tags: [Swift.String: Swift.String]? - /// The type of the studio component. - /// This member is required. - public var type: NimbleClientTypes.StudioComponentType? - - public init( - clientToken: Swift.String? = nil, - configuration: NimbleClientTypes.StudioComponentConfiguration? = nil, - description: Swift.String? = nil, - ec2SecurityGroupIds: [Swift.String]? = nil, - initializationScripts: [NimbleClientTypes.StudioComponentInitializationScript]? = nil, - name: Swift.String? = nil, - runtimeRoleArn: Swift.String? = nil, - scriptParameters: [NimbleClientTypes.ScriptParameterKeyValue]? = nil, - secureInitializationRoleArn: Swift.String? = nil, - studioId: Swift.String? = nil, - subtype: NimbleClientTypes.StudioComponentSubtype? = nil, - tags: [Swift.String: Swift.String]? = nil, - type: NimbleClientTypes.StudioComponentType? = nil - ) - { - self.clientToken = clientToken - self.configuration = configuration - self.description = description - self.ec2SecurityGroupIds = ec2SecurityGroupIds - self.initializationScripts = initializationScripts - self.name = name - self.runtimeRoleArn = runtimeRoleArn - self.scriptParameters = scriptParameters - self.secureInitializationRoleArn = secureInitializationRoleArn - self.studioId = studioId - self.subtype = subtype - self.tags = tags - self.type = type - } -} - -extension CreateStudioComponentInput: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "CreateStudioComponentInput(clientToken: \(Swift.String(describing: clientToken)), configuration: \(Swift.String(describing: configuration)), ec2SecurityGroupIds: \(Swift.String(describing: ec2SecurityGroupIds)), initializationScripts: \(Swift.String(describing: initializationScripts)), runtimeRoleArn: \(Swift.String(describing: runtimeRoleArn)), secureInitializationRoleArn: \(Swift.String(describing: secureInitializationRoleArn)), studioId: \(Swift.String(describing: studioId)), subtype: \(Swift.String(describing: subtype)), tags: \(Swift.String(describing: tags)), type: \(Swift.String(describing: type)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\", scriptParameters: \"CONTENT_REDACTED\")"} -} - -extension NimbleClientTypes { - - /// The current state of the studio component resource. While a studio component is being created, modified, or deleted, its state will be CREATE_IN_PROGRESS, UPDATE_IN_PROGRESS, or DELETE_IN_PROGRESS. These are called transition states. No modifications may be made to the studio component while it is in a transition state. If creation of the resource fails, the state will change to CREATE_FAILED. The resource StatusCode and StatusMessage will provide more information of why creation failed. The resource in this state will automatically be deleted from your account after a period of time. If updating the resource fails, the state will change to UPDATE_FAILED. The resource StatusCode and StatusMessage will provide more information of why the update failed. The resource will be returned to the state it was in when the update request was invoked. If deleting the resource fails, the state will change to DELETE_FAILED. The resource StatusCode and StatusMessage will provide more information of why the update failed. The resource will be returned to the state it was in when the update request was invoked. After the resource is deleted successfully, it will change to the DELETED state. The resource will no longer count against service quotas and cannot be used or acted upon any futher. It will be removed from your account after a period of time. - public enum StudioComponentState: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case createFailed - case createInProgress - case deleted - case deleteFailed - case deleteInProgress - case ready - case updateFailed - case updateInProgress - case sdkUnknown(Swift.String) - - public static var allCases: [StudioComponentState] { - return [ - .createFailed, - .createInProgress, - .deleted, - .deleteFailed, - .deleteInProgress, - .ready, - .updateFailed, - .updateInProgress - ] - } - - 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 .createFailed: return "CREATE_FAILED" - case .createInProgress: return "CREATE_IN_PROGRESS" - case .deleted: return "DELETED" - case .deleteFailed: return "DELETE_FAILED" - case .deleteInProgress: return "DELETE_IN_PROGRESS" - case .ready: return "READY" - case .updateFailed: return "UPDATE_FAILED" - case .updateInProgress: return "UPDATE_IN_PROGRESS" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - /// The current status of the studio component resource. When the resource is in the READY state, the status code signals what the last mutation made to the resource was. When the resource is in a CREATE_FAILED, UPDATE_FAILED, or DELETE_FAILED state, the status code signals what went wrong and why the mutation failed. - public enum StudioComponentStatusCode: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case activeDirectoryAlreadyExists - case encryptionKeyAccessDenied - case encryptionKeyNotFound - case internalError - case studioComponentCreated - case studioComponentCreateInProgress - case studioComponentDeleted - case studioComponentDeleteInProgress - case studioComponentUpdated - case studioComponentUpdateInProgress - case sdkUnknown(Swift.String) - - public static var allCases: [StudioComponentStatusCode] { - return [ - .activeDirectoryAlreadyExists, - .encryptionKeyAccessDenied, - .encryptionKeyNotFound, - .internalError, - .studioComponentCreated, - .studioComponentCreateInProgress, - .studioComponentDeleted, - .studioComponentDeleteInProgress, - .studioComponentUpdated, - .studioComponentUpdateInProgress - ] - } - - 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 .activeDirectoryAlreadyExists: return "ACTIVE_DIRECTORY_ALREADY_EXISTS" - case .encryptionKeyAccessDenied: return "ENCRYPTION_KEY_ACCESS_DENIED" - case .encryptionKeyNotFound: return "ENCRYPTION_KEY_NOT_FOUND" - case .internalError: return "INTERNAL_ERROR" - case .studioComponentCreated: return "STUDIO_COMPONENT_CREATED" - case .studioComponentCreateInProgress: return "STUDIO_COMPONENT_CREATE_IN_PROGRESS" - case .studioComponentDeleted: return "STUDIO_COMPONENT_DELETED" - case .studioComponentDeleteInProgress: return "STUDIO_COMPONENT_DELETE_IN_PROGRESS" - case .studioComponentUpdated: return "STUDIO_COMPONENT_UPDATED" - case .studioComponentUpdateInProgress: return "STUDIO_COMPONENT_UPDATE_IN_PROGRESS" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - /// A studio component represents a network resource to be used by a studio's users and workflows. A typical studio contains studio components for each of the following: render farm, Active Directory, licensing, and file system. Access to a studio component is managed by specifying security groups for the resource, as well as its endpoint. A studio component also has a set of initialization scripts that are returned by GetLaunchProfileInitialization. These initialization scripts run on streaming sessions when they start. They provide users with flexibility in controlling how the studio resources are configured on a streaming session. - public struct StudioComponent: Swift.Sendable { - /// The Amazon Resource Name (ARN) that is assigned to a studio resource and uniquely identifies it. ARNs are unique across all Regions. - public var arn: Swift.String? - /// The configuration of the studio component, based on component type. - public var configuration: NimbleClientTypes.StudioComponentConfiguration? - /// The ISO timestamp in seconds for when the resource was created. - public var createdAt: Foundation.Date? - /// The user ID of the user that created the studio component. - public var createdBy: Swift.String? - /// A human-readable description for the studio component resource. - public var description: Swift.String? - /// The EC2 security groups that control access to the studio component. - public var ec2SecurityGroupIds: [Swift.String]? - /// Initialization scripts for studio components. - public var initializationScripts: [NimbleClientTypes.StudioComponentInitializationScript]? - /// A friendly name for the studio component resource. - public var name: Swift.String? - /// An IAM role attached to a Studio Component that gives the studio component access to Amazon Web Services resources at anytime while the instance is running. - public var runtimeRoleArn: Swift.String? - /// Parameters for the studio component scripts. - public var scriptParameters: [NimbleClientTypes.ScriptParameterKeyValue]? - /// An IAM role attached to Studio Component when the system initialization script runs which give the studio component access to Amazon Web Services resources when the system initialization script runs. - public var secureInitializationRoleArn: Swift.String? - /// The current state. - public var state: NimbleClientTypes.StudioComponentState? - /// The status code. - public var statusCode: NimbleClientTypes.StudioComponentStatusCode? - /// The status message for the studio component. - public var statusMessage: Swift.String? - /// The unique identifier for a studio component resource. - public var studioComponentId: Swift.String? - /// The specific subtype of a studio component. - public var subtype: NimbleClientTypes.StudioComponentSubtype? - /// A collection of labels, in the form of key-value pairs, that apply to this resource. - public var tags: [Swift.String: Swift.String]? - /// The type of the studio component. - public var type: NimbleClientTypes.StudioComponentType? - /// The ISO timestamp in seconds for when the resource was updated. - public var updatedAt: Foundation.Date? - /// The user ID of the user that most recently updated the resource. - public var updatedBy: Swift.String? - - public init( - arn: Swift.String? = nil, - configuration: NimbleClientTypes.StudioComponentConfiguration? = nil, - createdAt: Foundation.Date? = nil, - createdBy: Swift.String? = nil, - description: Swift.String? = nil, - ec2SecurityGroupIds: [Swift.String]? = nil, - initializationScripts: [NimbleClientTypes.StudioComponentInitializationScript]? = nil, - name: Swift.String? = nil, - runtimeRoleArn: Swift.String? = nil, - scriptParameters: [NimbleClientTypes.ScriptParameterKeyValue]? = nil, - secureInitializationRoleArn: Swift.String? = nil, - state: NimbleClientTypes.StudioComponentState? = nil, - statusCode: NimbleClientTypes.StudioComponentStatusCode? = nil, - statusMessage: Swift.String? = nil, - studioComponentId: Swift.String? = nil, - subtype: NimbleClientTypes.StudioComponentSubtype? = nil, - tags: [Swift.String: Swift.String]? = nil, - type: NimbleClientTypes.StudioComponentType? = nil, - updatedAt: Foundation.Date? = nil, - updatedBy: Swift.String? = nil - ) - { - self.arn = arn - self.configuration = configuration - self.createdAt = createdAt - self.createdBy = createdBy - self.description = description - self.ec2SecurityGroupIds = ec2SecurityGroupIds - self.initializationScripts = initializationScripts - self.name = name - self.runtimeRoleArn = runtimeRoleArn - self.scriptParameters = scriptParameters - self.secureInitializationRoleArn = secureInitializationRoleArn - self.state = state - self.statusCode = statusCode - self.statusMessage = statusMessage - self.studioComponentId = studioComponentId - self.subtype = subtype - self.tags = tags - self.type = type - self.updatedAt = updatedAt - self.updatedBy = updatedBy - } - } -} - -extension NimbleClientTypes.StudioComponent: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "StudioComponent(arn: \(Swift.String(describing: arn)), configuration: \(Swift.String(describing: configuration)), createdAt: \(Swift.String(describing: createdAt)), createdBy: \(Swift.String(describing: createdBy)), ec2SecurityGroupIds: \(Swift.String(describing: ec2SecurityGroupIds)), initializationScripts: \(Swift.String(describing: initializationScripts)), runtimeRoleArn: \(Swift.String(describing: runtimeRoleArn)), secureInitializationRoleArn: \(Swift.String(describing: secureInitializationRoleArn)), state: \(Swift.String(describing: state)), statusCode: \(Swift.String(describing: statusCode)), statusMessage: \(Swift.String(describing: statusMessage)), studioComponentId: \(Swift.String(describing: studioComponentId)), subtype: \(Swift.String(describing: subtype)), tags: \(Swift.String(describing: tags)), type: \(Swift.String(describing: type)), updatedAt: \(Swift.String(describing: updatedAt)), updatedBy: \(Swift.String(describing: updatedBy)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\", scriptParameters: \"CONTENT_REDACTED\")"} -} - -public struct CreateStudioComponentOutput: Swift.Sendable { - /// Information about the studio component. - public var studioComponent: NimbleClientTypes.StudioComponent? - - public init( - studioComponent: NimbleClientTypes.StudioComponent? = nil - ) - { - self.studioComponent = studioComponent - } -} - -public struct DeleteLaunchProfileInput: Swift.Sendable { - /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. - public var clientToken: Swift.String? - /// The ID of the launch profile used to control access from the streaming session. - /// This member is required. - public var launchProfileId: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - clientToken: Swift.String? = nil, - launchProfileId: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.clientToken = clientToken - self.launchProfileId = launchProfileId - self.studioId = studioId - } -} - -public struct DeleteLaunchProfileOutput: Swift.Sendable { - /// The launch profile. - public var launchProfile: NimbleClientTypes.LaunchProfile? - - public init( - launchProfile: NimbleClientTypes.LaunchProfile? = nil - ) - { - self.launchProfile = launchProfile - } -} - -public struct DeleteLaunchProfileMemberInput: Swift.Sendable { - /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. - public var clientToken: Swift.String? - /// The ID of the launch profile used to control access from the streaming session. - /// This member is required. - public var launchProfileId: Swift.String? - /// The principal ID. This currently supports a IAM Identity Center UserId. - /// This member is required. - public var principalId: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - clientToken: Swift.String? = nil, - launchProfileId: Swift.String? = nil, - principalId: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.clientToken = clientToken - self.launchProfileId = launchProfileId - self.principalId = principalId - self.studioId = studioId - } -} - -public struct DeleteLaunchProfileMemberOutput: Swift.Sendable { - - public init() { } -} - -public struct DeleteStreamingImageInput: Swift.Sendable { - /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. - public var clientToken: Swift.String? - /// The streaming image ID. - /// This member is required. - public var streamingImageId: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - clientToken: Swift.String? = nil, - streamingImageId: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.clientToken = clientToken - self.streamingImageId = streamingImageId - self.studioId = studioId - } -} - -public struct DeleteStreamingImageOutput: Swift.Sendable { - /// The streaming image. - public var streamingImage: NimbleClientTypes.StreamingImage? - - public init( - streamingImage: NimbleClientTypes.StreamingImage? = nil - ) - { - self.streamingImage = streamingImage - } -} - -public struct DeleteStreamingSessionInput: Swift.Sendable { - /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. - public var clientToken: Swift.String? - /// The streaming session ID. - /// This member is required. - public var sessionId: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - clientToken: Swift.String? = nil, - sessionId: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.clientToken = clientToken - self.sessionId = sessionId - self.studioId = studioId - } -} - -public struct DeleteStreamingSessionOutput: Swift.Sendable { - /// The session. - public var session: NimbleClientTypes.StreamingSession? - - public init( - session: NimbleClientTypes.StreamingSession? = nil - ) - { - self.session = session - } -} - -public struct DeleteStudioInput: Swift.Sendable { - /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. - public var clientToken: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - clientToken: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.clientToken = clientToken - self.studioId = studioId - } -} - -public struct DeleteStudioOutput: Swift.Sendable { - /// Information about a studio. - /// This member is required. - public var studio: NimbleClientTypes.Studio? - - public init( - studio: NimbleClientTypes.Studio? = nil - ) - { - self.studio = studio - } -} - -public struct DeleteStudioComponentInput: Swift.Sendable { - /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. - public var clientToken: Swift.String? - /// The studio component ID. - /// This member is required. - public var studioComponentId: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - clientToken: Swift.String? = nil, - studioComponentId: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.clientToken = clientToken - self.studioComponentId = studioComponentId - self.studioId = studioId - } -} - -public struct DeleteStudioComponentOutput: Swift.Sendable { - /// Information about the studio component. - public var studioComponent: NimbleClientTypes.StudioComponent? - - public init( - studioComponent: NimbleClientTypes.StudioComponent? = nil - ) - { - self.studioComponent = studioComponent - } -} - -public struct DeleteStudioMemberInput: Swift.Sendable { - /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. - public var clientToken: Swift.String? - /// The principal ID. This currently supports a IAM Identity Center UserId. - /// This member is required. - public var principalId: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - clientToken: Swift.String? = nil, - principalId: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.clientToken = clientToken - self.principalId = principalId - self.studioId = studioId - } -} - -public struct DeleteStudioMemberOutput: Swift.Sendable { - - public init() { } -} - -extension NimbleClientTypes { - - /// Represents a EULA resource. - public struct Eula: Swift.Sendable { - /// The EULA content. - public var content: Swift.String? - /// The ISO timestamp in seconds for when the resource was created. - public var createdAt: Foundation.Date? - /// The EULA ID. - public var eulaId: Swift.String? - /// The name for the EULA. - public var name: Swift.String? - /// The ISO timestamp in seconds for when the resource was updated. - public var updatedAt: Foundation.Date? - - public init( - content: Swift.String? = nil, - createdAt: Foundation.Date? = nil, - eulaId: Swift.String? = nil, - name: Swift.String? = nil, - updatedAt: Foundation.Date? = nil - ) - { - self.content = content - self.createdAt = createdAt - self.eulaId = eulaId - self.name = name - self.updatedAt = updatedAt - } - } -} - -public struct ListEulaAcceptancesInput: Swift.Sendable { - /// The list of EULA IDs that have been previously accepted. - public var eulaIds: [Swift.String]? - /// The token for the next set of results, or null if there are no more results. - public var nextToken: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - eulaIds: [Swift.String]? = nil, - nextToken: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.eulaIds = eulaIds - self.nextToken = nextToken - self.studioId = studioId - } -} - -public struct ListEulaAcceptancesOutput: Swift.Sendable { - /// A collection of EULA acceptances. - public var eulaAcceptances: [NimbleClientTypes.EulaAcceptance]? - /// The token for the next set of results, or null if there are no more results. - public var nextToken: Swift.String? - - public init( - eulaAcceptances: [NimbleClientTypes.EulaAcceptance]? = nil, - nextToken: Swift.String? = nil - ) - { - self.eulaAcceptances = eulaAcceptances - self.nextToken = nextToken - } -} - -public struct GetEulaInput: Swift.Sendable { - /// The EULA ID. - /// This member is required. - public var eulaId: Swift.String? - - public init( - eulaId: Swift.String? = nil - ) - { - self.eulaId = eulaId - } -} - -public struct GetEulaOutput: Swift.Sendable { - /// The EULA. - public var eula: NimbleClientTypes.Eula? - - public init( - eula: NimbleClientTypes.Eula? = nil - ) - { - self.eula = eula - } -} - -public struct ListEulasInput: Swift.Sendable { - /// The list of EULA IDs that should be returned - public var eulaIds: [Swift.String]? - /// The token for the next set of results, or null if there are no more results. - public var nextToken: Swift.String? - - public init( - eulaIds: [Swift.String]? = nil, - nextToken: Swift.String? = nil - ) - { - self.eulaIds = eulaIds - self.nextToken = nextToken - } -} - -public struct ListEulasOutput: Swift.Sendable { - /// A collection of EULA resources. - public var eulas: [NimbleClientTypes.Eula]? - /// The token for the next set of results, or null if there are no more results. - public var nextToken: Swift.String? - - public init( - eulas: [NimbleClientTypes.Eula]? = nil, - nextToken: Swift.String? = nil - ) - { - self.eulas = eulas - self.nextToken = nextToken - } -} - -public struct GetLaunchProfileInput: Swift.Sendable { - /// The ID of the launch profile used to control access from the streaming session. - /// This member is required. - public var launchProfileId: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - launchProfileId: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.launchProfileId = launchProfileId - self.studioId = studioId - } -} - -public struct GetLaunchProfileOutput: Swift.Sendable { - /// The launch profile. - public var launchProfile: NimbleClientTypes.LaunchProfile? - - public init( - launchProfile: NimbleClientTypes.LaunchProfile? = nil - ) - { - self.launchProfile = launchProfile - } -} - -public struct GetLaunchProfileDetailsInput: Swift.Sendable { - /// The ID of the launch profile used to control access from the streaming session. - /// This member is required. - public var launchProfileId: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - launchProfileId: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.launchProfileId = launchProfileId - self.studioId = studioId - } -} - -extension NimbleClientTypes { - - /// The studio component's summary. - public struct StudioComponentSummary: Swift.Sendable { - /// The ISO timestamp in seconds for when the resource was created. - public var createdAt: Foundation.Date? - /// The user ID of the user that created the studio component. - public var createdBy: Swift.String? - /// The description. - public var description: Swift.String? - /// The name for the studio component. - public var name: Swift.String? - /// The unique identifier for a studio component resource. - public var studioComponentId: Swift.String? - /// The specific subtype of a studio component. - public var subtype: NimbleClientTypes.StudioComponentSubtype? - /// The type of the studio component. - public var type: NimbleClientTypes.StudioComponentType? - /// The ISO timestamp in seconds for when the resource was updated. - public var updatedAt: Foundation.Date? - /// The user ID of the user that most recently updated the resource. - public var updatedBy: Swift.String? - - public init( - createdAt: Foundation.Date? = nil, - createdBy: Swift.String? = nil, - description: Swift.String? = nil, - name: Swift.String? = nil, - studioComponentId: Swift.String? = nil, - subtype: NimbleClientTypes.StudioComponentSubtype? = nil, - type: NimbleClientTypes.StudioComponentType? = nil, - updatedAt: Foundation.Date? = nil, - updatedBy: Swift.String? = nil - ) - { - self.createdAt = createdAt - self.createdBy = createdBy - self.description = description - self.name = name - self.studioComponentId = studioComponentId - self.subtype = subtype - self.type = type - self.updatedAt = updatedAt - self.updatedBy = updatedBy - } - } -} - -extension NimbleClientTypes.StudioComponentSummary: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "StudioComponentSummary(createdAt: \(Swift.String(describing: createdAt)), createdBy: \(Swift.String(describing: createdBy)), studioComponentId: \(Swift.String(describing: studioComponentId)), subtype: \(Swift.String(describing: subtype)), type: \(Swift.String(describing: type)), updatedAt: \(Swift.String(describing: updatedAt)), updatedBy: \(Swift.String(describing: updatedBy)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} -} - -public struct GetLaunchProfileDetailsOutput: Swift.Sendable { - /// The launch profile. - public var launchProfile: NimbleClientTypes.LaunchProfile? - /// A collection of streaming images. - public var streamingImages: [NimbleClientTypes.StreamingImage]? - /// A collection of studio component summaries. - public var studioComponentSummaries: [NimbleClientTypes.StudioComponentSummary]? - - public init( - launchProfile: NimbleClientTypes.LaunchProfile? = nil, - streamingImages: [NimbleClientTypes.StreamingImage]? = nil, - studioComponentSummaries: [NimbleClientTypes.StudioComponentSummary]? = nil - ) - { - self.launchProfile = launchProfile - self.streamingImages = streamingImages - self.studioComponentSummaries = studioComponentSummaries - } -} - -public struct GetLaunchProfileInitializationInput: Swift.Sendable { - /// The ID of the launch profile used to control access from the streaming session. - /// This member is required. - public var launchProfileId: Swift.String? - /// The launch profile protocol versions supported by the client. - /// This member is required. - public var launchProfileProtocolVersions: [Swift.String]? - /// The launch purpose. - /// This member is required. - public var launchPurpose: Swift.String? - /// The platform where this Launch Profile will be used, either Windows or Linux. - /// This member is required. - public var platform: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - launchProfileId: Swift.String? = nil, - launchProfileProtocolVersions: [Swift.String]? = nil, - launchPurpose: Swift.String? = nil, - platform: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.launchProfileId = launchProfileId - self.launchProfileProtocolVersions = launchProfileProtocolVersions - self.launchPurpose = launchPurpose - self.platform = platform - self.studioId = studioId - } -} - -extension NimbleClientTypes { - - /// The launch profile initialization Active Directory contains information required for the launch profile to connect to the Active Directory. - public struct LaunchProfileInitializationActiveDirectory: Swift.Sendable { - /// A collection of custom attributes for an Active Directory computer. - public var computerAttributes: [NimbleClientTypes.ActiveDirectoryComputerAttribute]? - /// The directory ID of the Directory Service for Microsoft Active Directory to access using this launch profile. - public var directoryId: Swift.String? - /// The directory name. - public var directoryName: Swift.String? - /// The DNS IP address. - public var dnsIpAddresses: [Swift.String]? - /// The name for the organizational unit distinguished name. - public var organizationalUnitDistinguishedName: Swift.String? - /// The unique identifier for a studio component resource. - public var studioComponentId: Swift.String? - /// The name for the studio component. - public var studioComponentName: Swift.String? - - public init( - computerAttributes: [NimbleClientTypes.ActiveDirectoryComputerAttribute]? = nil, - directoryId: Swift.String? = nil, - directoryName: Swift.String? = nil, - dnsIpAddresses: [Swift.String]? = nil, - organizationalUnitDistinguishedName: Swift.String? = nil, - studioComponentId: Swift.String? = nil, - studioComponentName: Swift.String? = nil - ) - { - self.computerAttributes = computerAttributes - self.directoryId = directoryId - self.directoryName = directoryName - self.dnsIpAddresses = dnsIpAddresses - self.organizationalUnitDistinguishedName = organizationalUnitDistinguishedName - self.studioComponentId = studioComponentId - self.studioComponentName = studioComponentName - } - } -} - -extension NimbleClientTypes.LaunchProfileInitializationActiveDirectory: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "LaunchProfileInitializationActiveDirectory(directoryId: \(Swift.String(describing: directoryId)), directoryName: \(Swift.String(describing: directoryName)), dnsIpAddresses: \(Swift.String(describing: dnsIpAddresses)), organizationalUnitDistinguishedName: \(Swift.String(describing: organizationalUnitDistinguishedName)), studioComponentId: \(Swift.String(describing: studioComponentId)), computerAttributes: \"CONTENT_REDACTED\", studioComponentName: \"CONTENT_REDACTED\")"} -} - -extension NimbleClientTypes { - - /// The launch profile initialization script is used when start streaming session runs. - public struct LaunchProfileInitializationScript: Swift.Sendable { - /// An IAM role attached to a Studio Component that gives the studio component access to Amazon Web Services resources at anytime while the instance is running. - public var runtimeRoleArn: Swift.String? - /// The initialization script. - public var script: Swift.String? - /// An IAM role attached to Studio Component when the system initialization script runs which give the studio component access to Amazon Web Services resources when the system initialization script runs. - public var secureInitializationRoleArn: Swift.String? - /// The unique identifier for a studio component resource. - public var studioComponentId: Swift.String? - /// The name for the studio component. - public var studioComponentName: Swift.String? - - public init( - runtimeRoleArn: Swift.String? = nil, - script: Swift.String? = nil, - secureInitializationRoleArn: Swift.String? = nil, - studioComponentId: Swift.String? = nil, - studioComponentName: Swift.String? = nil - ) - { - self.runtimeRoleArn = runtimeRoleArn - self.script = script - self.secureInitializationRoleArn = secureInitializationRoleArn - self.studioComponentId = studioComponentId - self.studioComponentName = studioComponentName - } - } -} - -extension NimbleClientTypes.LaunchProfileInitializationScript: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "LaunchProfileInitializationScript(runtimeRoleArn: \(Swift.String(describing: runtimeRoleArn)), secureInitializationRoleArn: \(Swift.String(describing: secureInitializationRoleArn)), studioComponentId: \(Swift.String(describing: studioComponentId)), script: \"CONTENT_REDACTED\", studioComponentName: \"CONTENT_REDACTED\")"} -} - -extension NimbleClientTypes { - - /// A launch profile initialization contains information required for a workstation or server to connect to a launch profile. This includes scripts, endpoints, security groups, subnets, and other configuration. - public struct LaunchProfileInitialization: Swift.Sendable { - /// A LaunchProfileInitializationActiveDirectory resource. - public var activeDirectory: NimbleClientTypes.LaunchProfileInitializationActiveDirectory? - /// The EC2 security groups that control access to the studio component. - public var ec2SecurityGroupIds: [Swift.String]? - /// The ID of the launch profile used to control access from the streaming session. - public var launchProfileId: Swift.String? - /// The version number of the protocol that is used by the launch profile. The only valid version is "2021-03-31". - public var launchProfileProtocolVersion: Swift.String? - /// The launch purpose. - public var launchPurpose: Swift.String? - /// The name for the launch profile. - public var name: Swift.String? - /// The platform of the launch platform, either Windows or Linux. - public var platform: NimbleClientTypes.LaunchProfilePlatform? - /// The system initializtion scripts. - public var systemInitializationScripts: [NimbleClientTypes.LaunchProfileInitializationScript]? - /// The user initializtion scripts. - public var userInitializationScripts: [NimbleClientTypes.LaunchProfileInitializationScript]? - - public init( - activeDirectory: NimbleClientTypes.LaunchProfileInitializationActiveDirectory? = nil, - ec2SecurityGroupIds: [Swift.String]? = nil, - launchProfileId: Swift.String? = nil, - launchProfileProtocolVersion: Swift.String? = nil, - launchPurpose: Swift.String? = nil, - name: Swift.String? = nil, - platform: NimbleClientTypes.LaunchProfilePlatform? = nil, - systemInitializationScripts: [NimbleClientTypes.LaunchProfileInitializationScript]? = nil, - userInitializationScripts: [NimbleClientTypes.LaunchProfileInitializationScript]? = nil - ) - { - self.activeDirectory = activeDirectory - self.ec2SecurityGroupIds = ec2SecurityGroupIds - self.launchProfileId = launchProfileId - self.launchProfileProtocolVersion = launchProfileProtocolVersion - self.launchPurpose = launchPurpose - self.name = name - self.platform = platform - self.systemInitializationScripts = systemInitializationScripts - self.userInitializationScripts = userInitializationScripts - } - } -} - -extension NimbleClientTypes.LaunchProfileInitialization: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "LaunchProfileInitialization(activeDirectory: \(Swift.String(describing: activeDirectory)), ec2SecurityGroupIds: \(Swift.String(describing: ec2SecurityGroupIds)), launchProfileId: \(Swift.String(describing: launchProfileId)), launchProfileProtocolVersion: \(Swift.String(describing: launchProfileProtocolVersion)), launchPurpose: \(Swift.String(describing: launchPurpose)), platform: \(Swift.String(describing: platform)), systemInitializationScripts: \(Swift.String(describing: systemInitializationScripts)), userInitializationScripts: \(Swift.String(describing: userInitializationScripts)), name: \"CONTENT_REDACTED\")"} -} - -public struct GetLaunchProfileInitializationOutput: Swift.Sendable { - /// The launch profile initialization. - public var launchProfileInitialization: NimbleClientTypes.LaunchProfileInitialization? - - public init( - launchProfileInitialization: NimbleClientTypes.LaunchProfileInitialization? = nil - ) - { - self.launchProfileInitialization = launchProfileInitialization - } -} - -public struct GetLaunchProfileMemberInput: Swift.Sendable { - /// The ID of the launch profile used to control access from the streaming session. - /// This member is required. - public var launchProfileId: Swift.String? - /// The principal ID. This currently supports a IAM Identity Center UserId. - /// This member is required. - public var principalId: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - launchProfileId: Swift.String? = nil, - principalId: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.launchProfileId = launchProfileId - self.principalId = principalId - self.studioId = studioId - } -} - -extension NimbleClientTypes { - - public enum LaunchProfilePersona: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case user - case sdkUnknown(Swift.String) - - public static var allCases: [LaunchProfilePersona] { - return [ - .user - ] - } - - 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 .user: return "USER" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - /// Studio admins can use launch profile membership to delegate launch profile access to studio users in the Nimble Studio portal without writing or maintaining complex IAM policies. A launch profile member is a user association from your studio identity source who is granted permissions to a launch profile. A launch profile member (type USER) provides the following permissions to that launch profile: - /// - /// * GetLaunchProfile - /// - /// * GetLaunchProfileInitialization - /// - /// * GetLaunchProfileMembers - /// - /// * GetLaunchProfileMember - /// - /// * CreateStreamingSession - /// - /// * GetLaunchProfileDetails - public struct LaunchProfileMembership: Swift.Sendable { - /// The ID of the identity store. - public var identityStoreId: Swift.String? - /// The persona. - public var persona: NimbleClientTypes.LaunchProfilePersona? - /// The principal ID. - public var principalId: Swift.String? - /// The Active Directory Security Identifier for this user, if available. - public var sid: Swift.String? - - public init( - identityStoreId: Swift.String? = nil, - persona: NimbleClientTypes.LaunchProfilePersona? = nil, - principalId: Swift.String? = nil, - sid: Swift.String? = nil - ) - { - self.identityStoreId = identityStoreId - self.persona = persona - self.principalId = principalId - self.sid = sid - } - } -} - -public struct GetLaunchProfileMemberOutput: Swift.Sendable { - /// The member. - public var member: NimbleClientTypes.LaunchProfileMembership? - - public init( - member: NimbleClientTypes.LaunchProfileMembership? = nil - ) - { - self.member = member - } -} - -public struct GetStreamingImageInput: Swift.Sendable { - /// The streaming image ID. - /// This member is required. - public var streamingImageId: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - streamingImageId: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.streamingImageId = streamingImageId - self.studioId = studioId - } -} - -public struct GetStreamingImageOutput: Swift.Sendable { - /// The streaming image. - public var streamingImage: NimbleClientTypes.StreamingImage? - - public init( - streamingImage: NimbleClientTypes.StreamingImage? = nil - ) - { - self.streamingImage = streamingImage - } -} - -public struct GetStreamingSessionInput: Swift.Sendable { - /// The streaming session ID. - /// This member is required. - public var sessionId: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - sessionId: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.sessionId = sessionId - self.studioId = studioId - } -} - -public struct GetStreamingSessionOutput: Swift.Sendable { - /// The session. - public var session: NimbleClientTypes.StreamingSession? - - public init( - session: NimbleClientTypes.StreamingSession? = nil - ) - { - self.session = session - } -} - -public struct GetStreamingSessionBackupInput: Swift.Sendable { - /// The ID of the backup. - /// This member is required. - public var backupId: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - backupId: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.backupId = backupId - self.studioId = studioId - } -} - -extension NimbleClientTypes { - - /// Information about the streaming session backup. - public struct StreamingSessionBackup: Swift.Sendable { - /// The Amazon Resource Name (ARN) that is assigned to a studio resource and uniquely identifies it. ARNs are unique across all Regions. - public var arn: Swift.String? - /// The ID of the backup. - public var backupId: Swift.String? - /// The ISO timestamp in for when the resource was created. - public var createdAt: Foundation.Date? - /// The ID of the launch profile which allowed the backups for the streaming session. - public var launchProfileId: Swift.String? - /// The user ID of the user that owns the streaming session. - public var ownedBy: Swift.String? - /// The streaming session ID for the StreamingSessionBackup. - public var sessionId: Swift.String? - /// The streaming session state. - public var state: NimbleClientTypes.StreamingSessionState? - /// The status code. - public var statusCode: NimbleClientTypes.StreamingSessionStatusCode? - /// The status message for the streaming session backup. - public var statusMessage: Swift.String? - /// A collection of labels, in the form of key-value pairs, that apply to this resource. - public var tags: [Swift.String: Swift.String]? - - public init( - arn: Swift.String? = nil, - backupId: Swift.String? = nil, - createdAt: Foundation.Date? = nil, - launchProfileId: Swift.String? = nil, - ownedBy: Swift.String? = nil, - sessionId: Swift.String? = nil, - state: NimbleClientTypes.StreamingSessionState? = nil, - statusCode: NimbleClientTypes.StreamingSessionStatusCode? = nil, - statusMessage: Swift.String? = nil, - tags: [Swift.String: Swift.String]? = nil - ) - { - self.arn = arn - self.backupId = backupId - self.createdAt = createdAt - self.launchProfileId = launchProfileId - self.ownedBy = ownedBy - self.sessionId = sessionId - self.state = state - self.statusCode = statusCode - self.statusMessage = statusMessage - self.tags = tags - } - } -} - -public struct GetStreamingSessionBackupOutput: Swift.Sendable { - /// Information about the streaming session backup. - public var streamingSessionBackup: NimbleClientTypes.StreamingSessionBackup? - - public init( - streamingSessionBackup: NimbleClientTypes.StreamingSessionBackup? = nil - ) - { - self.streamingSessionBackup = streamingSessionBackup - } -} - -public struct GetStreamingSessionStreamInput: Swift.Sendable { - /// The streaming session ID. - /// This member is required. - public var sessionId: Swift.String? - /// The streaming session stream ID. - /// This member is required. - public var streamId: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - sessionId: Swift.String? = nil, - streamId: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.sessionId = sessionId - self.streamId = streamId - self.studioId = studioId - } -} - -public struct GetStreamingSessionStreamOutput: Swift.Sendable { - /// The stream. - public var stream: NimbleClientTypes.StreamingSessionStream? - - public init( - stream: NimbleClientTypes.StreamingSessionStream? = nil - ) - { - self.stream = stream - } -} - -public struct GetStudioInput: Swift.Sendable { - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - studioId: Swift.String? = nil - ) - { - self.studioId = studioId - } -} - -public struct GetStudioOutput: Swift.Sendable { - /// Information about a studio. - /// This member is required. - public var studio: NimbleClientTypes.Studio? - - public init( - studio: NimbleClientTypes.Studio? = nil - ) - { - self.studio = studio - } -} - -public struct GetStudioComponentInput: Swift.Sendable { - /// The studio component ID. - /// This member is required. - public var studioComponentId: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - studioComponentId: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.studioComponentId = studioComponentId - self.studioId = studioId - } -} - -public struct GetStudioComponentOutput: Swift.Sendable { - /// Information about the studio component. - public var studioComponent: NimbleClientTypes.StudioComponent? - - public init( - studioComponent: NimbleClientTypes.StudioComponent? = nil - ) - { - self.studioComponent = studioComponent - } -} - -public struct GetStudioMemberInput: Swift.Sendable { - /// The principal ID. This currently supports a IAM Identity Center UserId. - /// This member is required. - public var principalId: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - principalId: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.principalId = principalId - self.studioId = studioId - } -} - -extension NimbleClientTypes { - - public enum StudioPersona: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { - case administrator - case sdkUnknown(Swift.String) - - public static var allCases: [StudioPersona] { - return [ - .administrator - ] - } - - 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 .administrator: return "ADMINISTRATOR" - case let .sdkUnknown(s): return s - } - } - } -} - -extension NimbleClientTypes { - - /// A studio member is an association of a user from your studio identity source to elevated permissions that they are granted in the studio. When you add a user to your studio using the Nimble Studio console, they are given access to the studio's IAM Identity Center application and are given access to log in to the Nimble Studio portal. These users have the permissions provided by the studio's user IAM role and do not appear in the studio membership collection. Only studio admins appear in studio membership. When you add a user to studio membership with the ADMIN persona, upon logging in to the Nimble Studio portal, they are granted permissions specified by the Studio's Admin IAM role. - public struct StudioMembership: Swift.Sendable { - /// The ID of the identity store. - public var identityStoreId: Swift.String? - /// The persona. - public var persona: NimbleClientTypes.StudioPersona? - /// The principal ID. - public var principalId: Swift.String? - /// The Active Directory Security Identifier for this user, if available. - public var sid: Swift.String? - - public init( - identityStoreId: Swift.String? = nil, - persona: NimbleClientTypes.StudioPersona? = nil, - principalId: Swift.String? = nil, - sid: Swift.String? = nil - ) - { - self.identityStoreId = identityStoreId - self.persona = persona - self.principalId = principalId - self.sid = sid - } - } -} - -public struct GetStudioMemberOutput: Swift.Sendable { - /// The member. - public var member: NimbleClientTypes.StudioMembership? - - public init( - member: NimbleClientTypes.StudioMembership? = nil - ) - { - self.member = member - } -} - -public struct ListLaunchProfileMembersInput: Swift.Sendable { - /// The ID of the launch profile used to control access from the streaming session. - /// This member is required. - public var launchProfileId: Swift.String? - /// The max number of results to return in the response. - public var maxResults: Swift.Int? - /// The token for the next set of results, or null if there are no more results. - public var nextToken: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - launchProfileId: Swift.String? = nil, - maxResults: Swift.Int? = 100, - nextToken: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.launchProfileId = launchProfileId - self.maxResults = maxResults - self.nextToken = nextToken - self.studioId = studioId - } -} - -public struct ListLaunchProfileMembersOutput: Swift.Sendable { - /// A list of members. - public var members: [NimbleClientTypes.LaunchProfileMembership]? - /// The token for the next set of results, or null if there are no more results. - public var nextToken: Swift.String? - - public init( - members: [NimbleClientTypes.LaunchProfileMembership]? = nil, - nextToken: Swift.String? = nil - ) - { - self.members = members - self.nextToken = nextToken - } -} - -public struct ListLaunchProfilesInput: Swift.Sendable { - /// The max number of results to return in the response. - public var maxResults: Swift.Int? - /// The token for the next set of results, or null if there are no more results. - public var nextToken: Swift.String? - /// The principal ID. This currently supports a IAM Identity Center UserId. - public var principalId: Swift.String? - /// Filter this request to launch profiles in any of the given states. - public var states: [NimbleClientTypes.LaunchProfileState]? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - maxResults: Swift.Int? = 100, - nextToken: Swift.String? = nil, - principalId: Swift.String? = nil, - states: [NimbleClientTypes.LaunchProfileState]? = nil, - studioId: Swift.String? = nil - ) - { - self.maxResults = maxResults - self.nextToken = nextToken - self.principalId = principalId - self.states = states - self.studioId = studioId - } -} - -public struct ListLaunchProfilesOutput: Swift.Sendable { - /// A collection of launch profiles. - public var launchProfiles: [NimbleClientTypes.LaunchProfile]? - /// The token for the next set of results, or null if there are no more results. - public var nextToken: Swift.String? - - public init( - launchProfiles: [NimbleClientTypes.LaunchProfile]? = nil, - nextToken: Swift.String? = nil - ) - { - self.launchProfiles = launchProfiles - self.nextToken = nextToken - } -} - -extension NimbleClientTypes { - - /// A new member that is added to a launch profile. - public struct NewLaunchProfileMember: Swift.Sendable { - /// The persona. - /// This member is required. - public var persona: NimbleClientTypes.LaunchProfilePersona? - /// The principal ID. - /// This member is required. - public var principalId: Swift.String? - - public init( - persona: NimbleClientTypes.LaunchProfilePersona? = nil, - principalId: Swift.String? = nil - ) - { - self.persona = persona - self.principalId = principalId - } - } -} - -public struct PutLaunchProfileMembersInput: Swift.Sendable { - /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. - public var clientToken: Swift.String? - /// The ID of the identity store. - /// This member is required. - public var identityStoreId: Swift.String? - /// The ID of the launch profile used to control access from the streaming session. - /// This member is required. - public var launchProfileId: Swift.String? - /// A list of members. - /// This member is required. - public var members: [NimbleClientTypes.NewLaunchProfileMember]? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - clientToken: Swift.String? = nil, - identityStoreId: Swift.String? = nil, - launchProfileId: Swift.String? = nil, - members: [NimbleClientTypes.NewLaunchProfileMember]? = nil, - studioId: Swift.String? = nil - ) - { - self.clientToken = clientToken - self.identityStoreId = identityStoreId - self.launchProfileId = launchProfileId - self.members = members - self.studioId = studioId - } -} - -public struct PutLaunchProfileMembersOutput: Swift.Sendable { - - public init() { } -} - -public struct UpdateLaunchProfileInput: Swift.Sendable { - /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. - public var clientToken: Swift.String? - /// The description. - public var description: Swift.String? - /// The ID of the launch profile used to control access from the streaming session. - /// This member is required. - public var launchProfileId: Swift.String? - /// The version number of the protocol that is used by the launch profile. The only valid version is "2021-03-31". - public var launchProfileProtocolVersions: [Swift.String]? - /// The name for the launch profile. - public var name: Swift.String? - /// A configuration for a streaming session. - public var streamConfiguration: NimbleClientTypes.StreamConfigurationCreate? - /// Unique identifiers for a collection of studio components that can be used with this launch profile. - public var studioComponentIds: [Swift.String]? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - clientToken: Swift.String? = nil, - description: Swift.String? = nil, - launchProfileId: Swift.String? = nil, - launchProfileProtocolVersions: [Swift.String]? = nil, - name: Swift.String? = nil, - streamConfiguration: NimbleClientTypes.StreamConfigurationCreate? = nil, - studioComponentIds: [Swift.String]? = nil, - studioId: Swift.String? = nil - ) - { - self.clientToken = clientToken - self.description = description - self.launchProfileId = launchProfileId - self.launchProfileProtocolVersions = launchProfileProtocolVersions - self.name = name - self.streamConfiguration = streamConfiguration - self.studioComponentIds = studioComponentIds - self.studioId = studioId - } -} - -extension UpdateLaunchProfileInput: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "UpdateLaunchProfileInput(clientToken: \(Swift.String(describing: clientToken)), launchProfileId: \(Swift.String(describing: launchProfileId)), launchProfileProtocolVersions: \(Swift.String(describing: launchProfileProtocolVersions)), streamConfiguration: \(Swift.String(describing: streamConfiguration)), studioComponentIds: \(Swift.String(describing: studioComponentIds)), studioId: \(Swift.String(describing: studioId)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} -} - -public struct UpdateLaunchProfileOutput: Swift.Sendable { - /// The launch profile. - public var launchProfile: NimbleClientTypes.LaunchProfile? - - public init( - launchProfile: NimbleClientTypes.LaunchProfile? = nil - ) - { - self.launchProfile = launchProfile - } -} - -public struct UpdateLaunchProfileMemberInput: Swift.Sendable { - /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. - public var clientToken: Swift.String? - /// The ID of the launch profile used to control access from the streaming session. - /// This member is required. - public var launchProfileId: Swift.String? - /// The persona. - /// This member is required. - public var persona: NimbleClientTypes.LaunchProfilePersona? - /// The principal ID. This currently supports a IAM Identity Center UserId. - /// This member is required. - public var principalId: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - clientToken: Swift.String? = nil, - launchProfileId: Swift.String? = nil, - persona: NimbleClientTypes.LaunchProfilePersona? = nil, - principalId: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.clientToken = clientToken - self.launchProfileId = launchProfileId - self.persona = persona - self.principalId = principalId - self.studioId = studioId - } -} - -public struct UpdateLaunchProfileMemberOutput: Swift.Sendable { - /// The updated member. - public var member: NimbleClientTypes.LaunchProfileMembership? - - public init( - member: NimbleClientTypes.LaunchProfileMembership? = nil - ) - { - self.member = member - } -} - -public struct ListStreamingImagesInput: Swift.Sendable { - /// The token for the next set of results, or null if there are no more results. - public var nextToken: Swift.String? - /// Filter this request to streaming images with the given owner - public var owner: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - nextToken: Swift.String? = nil, - owner: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.nextToken = nextToken - self.owner = owner - self.studioId = studioId - } -} - -public struct ListStreamingImagesOutput: Swift.Sendable { - /// The token for the next set of results, or null if there are no more results. - public var nextToken: Swift.String? - /// A collection of streaming images. - public var streamingImages: [NimbleClientTypes.StreamingImage]? - - public init( - nextToken: Swift.String? = nil, - streamingImages: [NimbleClientTypes.StreamingImage]? = nil - ) - { - self.nextToken = nextToken - self.streamingImages = streamingImages - } -} - -public struct ListStreamingSessionBackupsInput: Swift.Sendable { - /// The token for the next set of results, or null if there are no more results. - public var nextToken: Swift.String? - /// The user ID of the user that owns the streaming session. - public var ownedBy: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - nextToken: Swift.String? = nil, - ownedBy: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.nextToken = nextToken - self.ownedBy = ownedBy - self.studioId = studioId - } -} - -public struct ListStreamingSessionBackupsOutput: Swift.Sendable { - /// The token for the next set of results, or null if there are no more results. - public var nextToken: Swift.String? - /// Information about the streaming session backups. - public var streamingSessionBackups: [NimbleClientTypes.StreamingSessionBackup]? - - public init( - nextToken: Swift.String? = nil, - streamingSessionBackups: [NimbleClientTypes.StreamingSessionBackup]? = nil - ) - { - self.nextToken = nextToken - self.streamingSessionBackups = streamingSessionBackups - } -} - -public struct ListStreamingSessionsInput: Swift.Sendable { - /// Filters the request to streaming sessions created by the given user. - public var createdBy: Swift.String? - /// The token for the next set of results, or null if there are no more results. - public var nextToken: Swift.String? - /// Filters the request to streaming session owned by the given user - public var ownedBy: Swift.String? - /// Filters the request to only the provided session IDs. - public var sessionIds: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - createdBy: Swift.String? = nil, - nextToken: Swift.String? = nil, - ownedBy: Swift.String? = nil, - sessionIds: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.createdBy = createdBy - self.nextToken = nextToken - self.ownedBy = ownedBy - self.sessionIds = sessionIds - self.studioId = studioId - } -} - -public struct ListStreamingSessionsOutput: Swift.Sendable { - /// The token for the next set of results, or null if there are no more results. - public var nextToken: Swift.String? - /// A collection of streaming sessions. - public var sessions: [NimbleClientTypes.StreamingSession]? - - public init( - nextToken: Swift.String? = nil, - sessions: [NimbleClientTypes.StreamingSession]? = nil - ) - { - self.nextToken = nextToken - self.sessions = sessions - } -} - -public struct ListStudioComponentsInput: Swift.Sendable { - /// The max number of results to return in the response. - public var maxResults: Swift.Int? - /// The token for the next set of results, or null if there are no more results. - public var nextToken: Swift.String? - /// Filters the request to studio components that are in one of the given states. - public var states: [NimbleClientTypes.StudioComponentState]? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - /// Filters the request to studio components that are of one of the given types. - public var types: [NimbleClientTypes.StudioComponentType]? - - public init( - maxResults: Swift.Int? = 100, - nextToken: Swift.String? = nil, - states: [NimbleClientTypes.StudioComponentState]? = nil, - studioId: Swift.String? = nil, - types: [NimbleClientTypes.StudioComponentType]? = nil - ) - { - self.maxResults = maxResults - self.nextToken = nextToken - self.states = states - self.studioId = studioId - self.types = types - } -} - -public struct ListStudioComponentsOutput: Swift.Sendable { - /// The token for the next set of results, or null if there are no more results. - public var nextToken: Swift.String? - /// A collection of studio components. - public var studioComponents: [NimbleClientTypes.StudioComponent]? - - public init( - nextToken: Swift.String? = nil, - studioComponents: [NimbleClientTypes.StudioComponent]? = nil - ) - { - self.nextToken = nextToken - self.studioComponents = studioComponents - } -} - -public struct ListStudioMembersInput: Swift.Sendable { - /// The max number of results to return in the response. - public var maxResults: Swift.Int? - /// The token for the next set of results, or null if there are no more results. - public var nextToken: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - maxResults: Swift.Int? = 100, - nextToken: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.maxResults = maxResults - self.nextToken = nextToken - self.studioId = studioId - } -} - -public struct ListStudioMembersOutput: Swift.Sendable { - /// A list of admin members. - public var members: [NimbleClientTypes.StudioMembership]? - /// The token for the next set of results, or null if there are no more results. - public var nextToken: Swift.String? - - public init( - members: [NimbleClientTypes.StudioMembership]? = nil, - nextToken: Swift.String? = nil - ) - { - self.members = members - self.nextToken = nextToken - } -} - -public struct ListStudiosInput: Swift.Sendable { - /// The token for the next set of results, or null if there are no more results. - public var nextToken: Swift.String? - - public init( - nextToken: Swift.String? = nil - ) - { - self.nextToken = nextToken - } -} - -public struct ListStudiosOutput: Swift.Sendable { - /// The token for the next set of results, or null if there are no more results. - public var nextToken: Swift.String? - /// A collection of studios. - /// This member is required. - public var studios: [NimbleClientTypes.Studio]? - - public init( - nextToken: Swift.String? = nil, - studios: [NimbleClientTypes.Studio]? = nil - ) - { - self.nextToken = nextToken - self.studios = studios - } -} - -public struct ListTagsForResourceInput: Swift.Sendable { - /// The Amazon Resource Name (ARN) of the resource for which you want to list tags. - /// This member is required. - public var resourceArn: Swift.String? - - public init( - resourceArn: Swift.String? = nil - ) - { - self.resourceArn = resourceArn - } -} - -public struct ListTagsForResourceOutput: Swift.Sendable { - /// A collection of labels, in the form of key-value pairs, that apply to this resource. - public var tags: [Swift.String: Swift.String]? - - public init( - tags: [Swift.String: Swift.String]? = nil - ) - { - self.tags = tags - } -} - -extension NimbleClientTypes { - - /// A new studio user's membership. - public struct NewStudioMember: Swift.Sendable { - /// The persona. - /// This member is required. - public var persona: NimbleClientTypes.StudioPersona? - /// The principal ID. - /// This member is required. - public var principalId: Swift.String? - - public init( - persona: NimbleClientTypes.StudioPersona? = nil, - principalId: Swift.String? = nil - ) - { - self.persona = persona - self.principalId = principalId - } - } -} - -public struct UpdateStreamingImageInput: Swift.Sendable { - /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. - public var clientToken: Swift.String? - /// The description. - public var description: Swift.String? - /// The name for the streaming image. - public var name: Swift.String? - /// The streaming image ID. - /// This member is required. - public var streamingImageId: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - clientToken: Swift.String? = nil, - description: Swift.String? = nil, - name: Swift.String? = nil, - streamingImageId: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.clientToken = clientToken - self.description = description - self.name = name - self.streamingImageId = streamingImageId - self.studioId = studioId - } -} - -extension UpdateStreamingImageInput: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "UpdateStreamingImageInput(clientToken: \(Swift.String(describing: clientToken)), streamingImageId: \(Swift.String(describing: streamingImageId)), studioId: \(Swift.String(describing: studioId)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\")"} -} - -public struct UpdateStreamingImageOutput: Swift.Sendable { - /// Represents a streaming image resource. Streaming images are used by studio users to select which operating system and software they want to use in a Nimble Studio streaming session. Amazon provides a number of streaming images that include popular 3rd-party software. You can create your own streaming images using an Amazon EC2 machine image that you create for this purpose. You can also include software that your users require. - public var streamingImage: NimbleClientTypes.StreamingImage? - - public init( - streamingImage: NimbleClientTypes.StreamingImage? = nil - ) - { - self.streamingImage = streamingImage - } -} - -public struct StartStreamingSessionInput: Swift.Sendable { - /// The ID of the backup. - public var backupId: Swift.String? - /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. - public var clientToken: Swift.String? - /// The streaming session ID for the StartStreamingSessionRequest. - /// This member is required. - public var sessionId: Swift.String? - /// The studio ID for the StartStreamingSessionRequest. - /// This member is required. - public var studioId: Swift.String? - - public init( - backupId: Swift.String? = nil, - clientToken: Swift.String? = nil, - sessionId: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.backupId = backupId - self.clientToken = clientToken - self.sessionId = sessionId - self.studioId = studioId - } -} - -public struct StartStreamingSessionOutput: Swift.Sendable { - /// A streaming session is a virtual workstation created using a particular launch profile. - public var session: NimbleClientTypes.StreamingSession? - - public init( - session: NimbleClientTypes.StreamingSession? = nil - ) - { - self.session = session - } -} - -public struct StopStreamingSessionInput: Swift.Sendable { - /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. - public var clientToken: Swift.String? - /// The streaming session ID for the StopStreamingSessionRequest. - /// This member is required. - public var sessionId: Swift.String? - /// The studioId for the StopStreamingSessionRequest. - /// This member is required. - public var studioId: Swift.String? - /// Adds additional instructions to a streaming session stop action to either retain the EBS volumes or delete the EBS volumes. - public var volumeRetentionMode: NimbleClientTypes.VolumeRetentionMode? - - public init( - clientToken: Swift.String? = nil, - sessionId: Swift.String? = nil, - studioId: Swift.String? = nil, - volumeRetentionMode: NimbleClientTypes.VolumeRetentionMode? = nil - ) - { - self.clientToken = clientToken - self.sessionId = sessionId - self.studioId = studioId - self.volumeRetentionMode = volumeRetentionMode - } -} - -public struct StopStreamingSessionOutput: Swift.Sendable { - /// A streaming session is a virtual workstation created using a particular launch profile. - public var session: NimbleClientTypes.StreamingSession? - - public init( - session: NimbleClientTypes.StreamingSession? = nil - ) - { - self.session = session - } -} - -public struct UpdateStudioComponentInput: Swift.Sendable { - /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. - public var clientToken: Swift.String? - /// The configuration of the studio component, based on component type. - public var configuration: NimbleClientTypes.StudioComponentConfiguration? - /// The description. - public var description: Swift.String? - /// The EC2 security groups that control access to the studio component. - public var ec2SecurityGroupIds: [Swift.String]? - /// Initialization scripts for studio components. - public var initializationScripts: [NimbleClientTypes.StudioComponentInitializationScript]? - /// The name for the studio component. - public var name: Swift.String? - /// An IAM role attached to a Studio Component that gives the studio component access to Amazon Web Services resources at anytime while the instance is running. - public var runtimeRoleArn: Swift.String? - /// Parameters for the studio component scripts. - public var scriptParameters: [NimbleClientTypes.ScriptParameterKeyValue]? - /// An IAM role attached to Studio Component when the system initialization script runs which give the studio component access to Amazon Web Services resources when the system initialization script runs. - public var secureInitializationRoleArn: Swift.String? - /// The studio component ID. - /// This member is required. - public var studioComponentId: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - /// The specific subtype of a studio component. - public var subtype: NimbleClientTypes.StudioComponentSubtype? - /// The type of the studio component. - public var type: NimbleClientTypes.StudioComponentType? - - public init( - clientToken: Swift.String? = nil, - configuration: NimbleClientTypes.StudioComponentConfiguration? = nil, - description: Swift.String? = nil, - ec2SecurityGroupIds: [Swift.String]? = nil, - initializationScripts: [NimbleClientTypes.StudioComponentInitializationScript]? = nil, - name: Swift.String? = nil, - runtimeRoleArn: Swift.String? = nil, - scriptParameters: [NimbleClientTypes.ScriptParameterKeyValue]? = nil, - secureInitializationRoleArn: Swift.String? = nil, - studioComponentId: Swift.String? = nil, - studioId: Swift.String? = nil, - subtype: NimbleClientTypes.StudioComponentSubtype? = nil, - type: NimbleClientTypes.StudioComponentType? = nil - ) - { - self.clientToken = clientToken - self.configuration = configuration - self.description = description - self.ec2SecurityGroupIds = ec2SecurityGroupIds - self.initializationScripts = initializationScripts - self.name = name - self.runtimeRoleArn = runtimeRoleArn - self.scriptParameters = scriptParameters - self.secureInitializationRoleArn = secureInitializationRoleArn - self.studioComponentId = studioComponentId - self.studioId = studioId - self.subtype = subtype - self.type = type - } -} - -extension UpdateStudioComponentInput: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "UpdateStudioComponentInput(clientToken: \(Swift.String(describing: clientToken)), configuration: \(Swift.String(describing: configuration)), ec2SecurityGroupIds: \(Swift.String(describing: ec2SecurityGroupIds)), initializationScripts: \(Swift.String(describing: initializationScripts)), runtimeRoleArn: \(Swift.String(describing: runtimeRoleArn)), secureInitializationRoleArn: \(Swift.String(describing: secureInitializationRoleArn)), studioComponentId: \(Swift.String(describing: studioComponentId)), studioId: \(Swift.String(describing: studioId)), subtype: \(Swift.String(describing: subtype)), type: \(Swift.String(describing: type)), description: \"CONTENT_REDACTED\", name: \"CONTENT_REDACTED\", scriptParameters: \"CONTENT_REDACTED\")"} -} - -public struct UpdateStudioComponentOutput: Swift.Sendable { - /// Information about the studio component. - public var studioComponent: NimbleClientTypes.StudioComponent? - - public init( - studioComponent: NimbleClientTypes.StudioComponent? = nil - ) - { - self.studioComponent = studioComponent - } -} - -public struct PutStudioMembersInput: Swift.Sendable { - /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. - public var clientToken: Swift.String? - /// The ID of the identity store. - /// This member is required. - public var identityStoreId: Swift.String? - /// A list of members. - /// This member is required. - public var members: [NimbleClientTypes.NewStudioMember]? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - clientToken: Swift.String? = nil, - identityStoreId: Swift.String? = nil, - members: [NimbleClientTypes.NewStudioMember]? = nil, - studioId: Swift.String? = nil - ) - { - self.clientToken = clientToken - self.identityStoreId = identityStoreId - self.members = members - self.studioId = studioId - } -} - -public struct PutStudioMembersOutput: Swift.Sendable { - - public init() { } -} - -public struct StartStudioSSOConfigurationRepairInput: Swift.Sendable { - /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. - public var clientToken: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - - public init( - clientToken: Swift.String? = nil, - studioId: Swift.String? = nil - ) - { - self.clientToken = clientToken - self.studioId = studioId - } -} - -public struct StartStudioSSOConfigurationRepairOutput: Swift.Sendable { - /// Information about a studio. - /// This member is required. - public var studio: NimbleClientTypes.Studio? - - public init( - studio: NimbleClientTypes.Studio? = nil - ) - { - self.studio = studio - } -} - -public struct UpdateStudioInput: Swift.Sendable { - /// The IAM role that Studio Admins will assume when logging in to the Nimble Studio portal. - public var adminRoleArn: Swift.String? - /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. - public var clientToken: Swift.String? - /// A friendly name for the studio. - public var displayName: Swift.String? - /// The studio ID. - /// This member is required. - public var studioId: Swift.String? - /// The IAM role that Studio Users will assume when logging in to the Nimble Studio portal. - public var userRoleArn: Swift.String? - - public init( - adminRoleArn: Swift.String? = nil, - clientToken: Swift.String? = nil, - displayName: Swift.String? = nil, - studioId: Swift.String? = nil, - userRoleArn: Swift.String? = nil - ) - { - self.adminRoleArn = adminRoleArn - self.clientToken = clientToken - self.displayName = displayName - self.studioId = studioId - self.userRoleArn = userRoleArn - } -} - -extension UpdateStudioInput: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "UpdateStudioInput(adminRoleArn: \(Swift.String(describing: adminRoleArn)), clientToken: \(Swift.String(describing: clientToken)), studioId: \(Swift.String(describing: studioId)), userRoleArn: \(Swift.String(describing: userRoleArn)), displayName: \"CONTENT_REDACTED\")"} -} - -public struct UpdateStudioOutput: Swift.Sendable { - /// Information about a studio. - /// This member is required. - public var studio: NimbleClientTypes.Studio? - - public init( - studio: NimbleClientTypes.Studio? = nil - ) - { - self.studio = studio - } -} - -public struct TagResourceInput: Swift.Sendable { - /// The Amazon Resource Name (ARN) of the resource you want to add tags to. - /// This member is required. - public var resourceArn: Swift.String? - /// A collection of labels, in the form of key-value pairs, that apply to this resource. - 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: Swift.Sendable { - - public init() { } -} - -public struct UntagResourceInput: Swift.Sendable { - /// Identifies the Amazon Resource Name(ARN) key from which you are removing tags. - /// This member is required. - public var resourceArn: Swift.String? - /// One or more tag keys. Specify only the tag keys, not the tag values. - /// 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: Swift.Sendable { - - public init() { } -} - -extension AcceptEulasInput { - - static func urlPathProvider(_ value: AcceptEulasInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/eula-acceptances" - } -} - -extension AcceptEulasInput { - - static func headerProvider(_ value: AcceptEulasInput) -> SmithyHTTPAPI.Headers { - var items = SmithyHTTPAPI.Headers() - if let clientToken = value.clientToken { - items.add(SmithyHTTPAPI.Header(name: "X-Amz-Client-Token", value: Swift.String(clientToken))) - } - return items - } -} - -extension CreateLaunchProfileInput { - - static func urlPathProvider(_ value: CreateLaunchProfileInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/launch-profiles" - } -} - -extension CreateLaunchProfileInput { - - static func headerProvider(_ value: CreateLaunchProfileInput) -> SmithyHTTPAPI.Headers { - var items = SmithyHTTPAPI.Headers() - if let clientToken = value.clientToken { - items.add(SmithyHTTPAPI.Header(name: "X-Amz-Client-Token", value: Swift.String(clientToken))) - } - return items - } -} - -extension CreateStreamingImageInput { - - static func urlPathProvider(_ value: CreateStreamingImageInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/streaming-images" - } -} - -extension CreateStreamingImageInput { - - static func headerProvider(_ value: CreateStreamingImageInput) -> SmithyHTTPAPI.Headers { - var items = SmithyHTTPAPI.Headers() - if let clientToken = value.clientToken { - items.add(SmithyHTTPAPI.Header(name: "X-Amz-Client-Token", value: Swift.String(clientToken))) - } - return items - } -} - -extension CreateStreamingSessionInput { - - static func urlPathProvider(_ value: CreateStreamingSessionInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/streaming-sessions" - } -} - -extension CreateStreamingSessionInput { - - static func headerProvider(_ value: CreateStreamingSessionInput) -> SmithyHTTPAPI.Headers { - var items = SmithyHTTPAPI.Headers() - if let clientToken = value.clientToken { - items.add(SmithyHTTPAPI.Header(name: "X-Amz-Client-Token", value: Swift.String(clientToken))) - } - return items - } -} - -extension CreateStreamingSessionStreamInput { - - static func urlPathProvider(_ value: CreateStreamingSessionStreamInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - guard let sessionId = value.sessionId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/streaming-sessions/\(sessionId.urlPercentEncoding())/streams" - } -} - -extension CreateStreamingSessionStreamInput { - - static func headerProvider(_ value: CreateStreamingSessionStreamInput) -> SmithyHTTPAPI.Headers { - var items = SmithyHTTPAPI.Headers() - if let clientToken = value.clientToken { - items.add(SmithyHTTPAPI.Header(name: "X-Amz-Client-Token", value: Swift.String(clientToken))) - } - return items - } -} - -extension CreateStudioInput { - - static func urlPathProvider(_ value: CreateStudioInput) -> Swift.String? { - return "/2020-08-01/studios" - } -} - -extension CreateStudioInput { - - static func headerProvider(_ value: CreateStudioInput) -> SmithyHTTPAPI.Headers { - var items = SmithyHTTPAPI.Headers() - if let clientToken = value.clientToken { - items.add(SmithyHTTPAPI.Header(name: "X-Amz-Client-Token", value: Swift.String(clientToken))) - } - return items - } -} - -extension CreateStudioComponentInput { - - static func urlPathProvider(_ value: CreateStudioComponentInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/studio-components" - } -} - -extension CreateStudioComponentInput { - - static func headerProvider(_ value: CreateStudioComponentInput) -> SmithyHTTPAPI.Headers { - var items = SmithyHTTPAPI.Headers() - if let clientToken = value.clientToken { - items.add(SmithyHTTPAPI.Header(name: "X-Amz-Client-Token", value: Swift.String(clientToken))) - } - return items - } -} - -extension DeleteLaunchProfileInput { - - static func urlPathProvider(_ value: DeleteLaunchProfileInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - guard let launchProfileId = value.launchProfileId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/launch-profiles/\(launchProfileId.urlPercentEncoding())" - } -} - -extension DeleteLaunchProfileInput { - - static func headerProvider(_ value: DeleteLaunchProfileInput) -> SmithyHTTPAPI.Headers { - var items = SmithyHTTPAPI.Headers() - if let clientToken = value.clientToken { - items.add(SmithyHTTPAPI.Header(name: "X-Amz-Client-Token", value: Swift.String(clientToken))) - } - return items - } -} - -extension DeleteLaunchProfileMemberInput { - - static func urlPathProvider(_ value: DeleteLaunchProfileMemberInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - guard let launchProfileId = value.launchProfileId else { - return nil - } - guard let principalId = value.principalId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/launch-profiles/\(launchProfileId.urlPercentEncoding())/membership/\(principalId.urlPercentEncoding())" - } -} - -extension DeleteLaunchProfileMemberInput { - - static func headerProvider(_ value: DeleteLaunchProfileMemberInput) -> SmithyHTTPAPI.Headers { - var items = SmithyHTTPAPI.Headers() - if let clientToken = value.clientToken { - items.add(SmithyHTTPAPI.Header(name: "X-Amz-Client-Token", value: Swift.String(clientToken))) - } - return items - } -} - -extension DeleteStreamingImageInput { - - static func urlPathProvider(_ value: DeleteStreamingImageInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - guard let streamingImageId = value.streamingImageId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/streaming-images/\(streamingImageId.urlPercentEncoding())" - } -} - -extension DeleteStreamingImageInput { - - static func headerProvider(_ value: DeleteStreamingImageInput) -> SmithyHTTPAPI.Headers { - var items = SmithyHTTPAPI.Headers() - if let clientToken = value.clientToken { - items.add(SmithyHTTPAPI.Header(name: "X-Amz-Client-Token", value: Swift.String(clientToken))) - } - return items - } -} - -extension DeleteStreamingSessionInput { - - static func urlPathProvider(_ value: DeleteStreamingSessionInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - guard let sessionId = value.sessionId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/streaming-sessions/\(sessionId.urlPercentEncoding())" - } -} - -extension DeleteStreamingSessionInput { - - static func headerProvider(_ value: DeleteStreamingSessionInput) -> SmithyHTTPAPI.Headers { - var items = SmithyHTTPAPI.Headers() - if let clientToken = value.clientToken { - items.add(SmithyHTTPAPI.Header(name: "X-Amz-Client-Token", value: Swift.String(clientToken))) - } - return items - } -} - -extension DeleteStudioInput { - - static func urlPathProvider(_ value: DeleteStudioInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())" - } -} - -extension DeleteStudioInput { - - static func headerProvider(_ value: DeleteStudioInput) -> SmithyHTTPAPI.Headers { - var items = SmithyHTTPAPI.Headers() - if let clientToken = value.clientToken { - items.add(SmithyHTTPAPI.Header(name: "X-Amz-Client-Token", value: Swift.String(clientToken))) - } - return items - } -} - -extension DeleteStudioComponentInput { - - static func urlPathProvider(_ value: DeleteStudioComponentInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - guard let studioComponentId = value.studioComponentId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/studio-components/\(studioComponentId.urlPercentEncoding())" - } -} - -extension DeleteStudioComponentInput { - - static func headerProvider(_ value: DeleteStudioComponentInput) -> SmithyHTTPAPI.Headers { - var items = SmithyHTTPAPI.Headers() - if let clientToken = value.clientToken { - items.add(SmithyHTTPAPI.Header(name: "X-Amz-Client-Token", value: Swift.String(clientToken))) - } - return items - } -} - -extension DeleteStudioMemberInput { - - static func urlPathProvider(_ value: DeleteStudioMemberInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - guard let principalId = value.principalId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/membership/\(principalId.urlPercentEncoding())" - } -} - -extension DeleteStudioMemberInput { - - static func headerProvider(_ value: DeleteStudioMemberInput) -> SmithyHTTPAPI.Headers { - var items = SmithyHTTPAPI.Headers() - if let clientToken = value.clientToken { - items.add(SmithyHTTPAPI.Header(name: "X-Amz-Client-Token", value: Swift.String(clientToken))) - } - return items - } -} - -extension GetEulaInput { - - static func urlPathProvider(_ value: GetEulaInput) -> Swift.String? { - guard let eulaId = value.eulaId else { - return nil - } - return "/2020-08-01/eulas/\(eulaId.urlPercentEncoding())" - } -} - -extension GetLaunchProfileInput { - - static func urlPathProvider(_ value: GetLaunchProfileInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - guard let launchProfileId = value.launchProfileId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/launch-profiles/\(launchProfileId.urlPercentEncoding())" - } -} - -extension GetLaunchProfileDetailsInput { - - static func urlPathProvider(_ value: GetLaunchProfileDetailsInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - guard let launchProfileId = value.launchProfileId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/launch-profiles/\(launchProfileId.urlPercentEncoding())/details" - } -} - -extension GetLaunchProfileInitializationInput { - - static func urlPathProvider(_ value: GetLaunchProfileInitializationInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - guard let launchProfileId = value.launchProfileId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/launch-profiles/\(launchProfileId.urlPercentEncoding())/init" - } -} - -extension GetLaunchProfileInitializationInput { - - static func queryItemProvider(_ value: GetLaunchProfileInitializationInput) throws -> [Smithy.URIQueryItem] { - var items = [Smithy.URIQueryItem]() - guard let launchProfileProtocolVersions = value.launchProfileProtocolVersions else { - let message = "Creating a URL Query Item failed. launchProfileProtocolVersions is required and must not be nil." - throw Smithy.ClientError.unknownError(message) - } - launchProfileProtocolVersions.forEach { queryItemValue in - let queryItem = Smithy.URIQueryItem(name: "launchProfileProtocolVersions".urlPercentEncoding(), value: Swift.String(queryItemValue).urlPercentEncoding()) - items.append(queryItem) - } - guard let launchPurpose = value.launchPurpose else { - let message = "Creating a URL Query Item failed. launchPurpose is required and must not be nil." - throw Smithy.ClientError.unknownError(message) - } - let launchPurposeQueryItem = Smithy.URIQueryItem(name: "launchPurpose".urlPercentEncoding(), value: Swift.String(launchPurpose).urlPercentEncoding()) - items.append(launchPurposeQueryItem) - guard let platform = value.platform else { - let message = "Creating a URL Query Item failed. platform is required and must not be nil." - throw Smithy.ClientError.unknownError(message) - } - let platformQueryItem = Smithy.URIQueryItem(name: "platform".urlPercentEncoding(), value: Swift.String(platform).urlPercentEncoding()) - items.append(platformQueryItem) - return items - } -} - -extension GetLaunchProfileMemberInput { - - static func urlPathProvider(_ value: GetLaunchProfileMemberInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - guard let launchProfileId = value.launchProfileId else { - return nil - } - guard let principalId = value.principalId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/launch-profiles/\(launchProfileId.urlPercentEncoding())/membership/\(principalId.urlPercentEncoding())" - } -} - -extension GetStreamingImageInput { - - static func urlPathProvider(_ value: GetStreamingImageInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - guard let streamingImageId = value.streamingImageId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/streaming-images/\(streamingImageId.urlPercentEncoding())" - } -} - -extension GetStreamingSessionInput { - - static func urlPathProvider(_ value: GetStreamingSessionInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - guard let sessionId = value.sessionId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/streaming-sessions/\(sessionId.urlPercentEncoding())" - } -} - -extension GetStreamingSessionBackupInput { - - static func urlPathProvider(_ value: GetStreamingSessionBackupInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - guard let backupId = value.backupId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/streaming-session-backups/\(backupId.urlPercentEncoding())" - } -} - -extension GetStreamingSessionStreamInput { - - static func urlPathProvider(_ value: GetStreamingSessionStreamInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - guard let sessionId = value.sessionId else { - return nil - } - guard let streamId = value.streamId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/streaming-sessions/\(sessionId.urlPercentEncoding())/streams/\(streamId.urlPercentEncoding())" - } -} - -extension GetStudioInput { - - static func urlPathProvider(_ value: GetStudioInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())" - } -} - -extension GetStudioComponentInput { - - static func urlPathProvider(_ value: GetStudioComponentInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - guard let studioComponentId = value.studioComponentId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/studio-components/\(studioComponentId.urlPercentEncoding())" - } -} - -extension GetStudioMemberInput { - - static func urlPathProvider(_ value: GetStudioMemberInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - guard let principalId = value.principalId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/membership/\(principalId.urlPercentEncoding())" - } -} - -extension ListEulaAcceptancesInput { - - static func urlPathProvider(_ value: ListEulaAcceptancesInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/eula-acceptances" - } -} - -extension ListEulaAcceptancesInput { - - static func queryItemProvider(_ value: ListEulaAcceptancesInput) 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 eulaIds = value.eulaIds { - eulaIds.forEach { queryItemValue in - let queryItem = Smithy.URIQueryItem(name: "eulaIds".urlPercentEncoding(), value: Swift.String(queryItemValue).urlPercentEncoding()) - items.append(queryItem) - } - } - return items - } -} - -extension ListEulasInput { - - static func urlPathProvider(_ value: ListEulasInput) -> Swift.String? { - return "/2020-08-01/eulas" - } -} - -extension ListEulasInput { - - static func queryItemProvider(_ value: ListEulasInput) 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 eulaIds = value.eulaIds { - eulaIds.forEach { queryItemValue in - let queryItem = Smithy.URIQueryItem(name: "eulaIds".urlPercentEncoding(), value: Swift.String(queryItemValue).urlPercentEncoding()) - items.append(queryItem) - } - } - return items - } -} - -extension ListLaunchProfileMembersInput { - - static func urlPathProvider(_ value: ListLaunchProfileMembersInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - guard let launchProfileId = value.launchProfileId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/launch-profiles/\(launchProfileId.urlPercentEncoding())/membership" - } -} - -extension ListLaunchProfileMembersInput { - - static func queryItemProvider(_ value: ListLaunchProfileMembersInput) 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) - } - return items - } -} - -extension ListLaunchProfilesInput { - - static func urlPathProvider(_ value: ListLaunchProfilesInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/launch-profiles" - } -} - -extension ListLaunchProfilesInput { - - static func queryItemProvider(_ value: ListLaunchProfilesInput) 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 principalId = value.principalId { - let principalIdQueryItem = Smithy.URIQueryItem(name: "principalId".urlPercentEncoding(), value: Swift.String(principalId).urlPercentEncoding()) - items.append(principalIdQueryItem) - } - if let states = value.states { - states.forEach { queryItemValue in - let queryItem = Smithy.URIQueryItem(name: "states".urlPercentEncoding(), value: Swift.String(queryItemValue.rawValue).urlPercentEncoding()) - items.append(queryItem) - } - } - return items - } -} - -extension ListStreamingImagesInput { - - static func urlPathProvider(_ value: ListStreamingImagesInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/streaming-images" - } -} - -extension ListStreamingImagesInput { - - static func queryItemProvider(_ value: ListStreamingImagesInput) throws -> [Smithy.URIQueryItem] { - var items = [Smithy.URIQueryItem]() - if let owner = value.owner { - let ownerQueryItem = Smithy.URIQueryItem(name: "owner".urlPercentEncoding(), value: Swift.String(owner).urlPercentEncoding()) - items.append(ownerQueryItem) - } - if let nextToken = value.nextToken { - let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) - items.append(nextTokenQueryItem) - } - return items - } -} - -extension ListStreamingSessionBackupsInput { - - static func urlPathProvider(_ value: ListStreamingSessionBackupsInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/streaming-session-backups" - } -} - -extension ListStreamingSessionBackupsInput { - - static func queryItemProvider(_ value: ListStreamingSessionBackupsInput) 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 ownedBy = value.ownedBy { - let ownedByQueryItem = Smithy.URIQueryItem(name: "ownedBy".urlPercentEncoding(), value: Swift.String(ownedBy).urlPercentEncoding()) - items.append(ownedByQueryItem) - } - return items - } -} - -extension ListStreamingSessionsInput { - - static func urlPathProvider(_ value: ListStreamingSessionsInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/streaming-sessions" - } -} - -extension ListStreamingSessionsInput { - - static func queryItemProvider(_ value: ListStreamingSessionsInput) throws -> [Smithy.URIQueryItem] { - var items = [Smithy.URIQueryItem]() - if let createdBy = value.createdBy { - let createdByQueryItem = Smithy.URIQueryItem(name: "createdBy".urlPercentEncoding(), value: Swift.String(createdBy).urlPercentEncoding()) - items.append(createdByQueryItem) - } - if let nextToken = value.nextToken { - let nextTokenQueryItem = Smithy.URIQueryItem(name: "nextToken".urlPercentEncoding(), value: Swift.String(nextToken).urlPercentEncoding()) - items.append(nextTokenQueryItem) - } - if let ownedBy = value.ownedBy { - let ownedByQueryItem = Smithy.URIQueryItem(name: "ownedBy".urlPercentEncoding(), value: Swift.String(ownedBy).urlPercentEncoding()) - items.append(ownedByQueryItem) - } - if let sessionIds = value.sessionIds { - let sessionIdsQueryItem = Smithy.URIQueryItem(name: "sessionIds".urlPercentEncoding(), value: Swift.String(sessionIds).urlPercentEncoding()) - items.append(sessionIdsQueryItem) - } - return items - } -} - -extension ListStudioComponentsInput { - - static func urlPathProvider(_ value: ListStudioComponentsInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/studio-components" - } -} - -extension ListStudioComponentsInput { - - static func queryItemProvider(_ value: ListStudioComponentsInput) throws -> [Smithy.URIQueryItem] { - var items = [Smithy.URIQueryItem]() - if let types = value.types { - types.forEach { queryItemValue in - let queryItem = Smithy.URIQueryItem(name: "types".urlPercentEncoding(), value: Swift.String(queryItemValue.rawValue).urlPercentEncoding()) - items.append(queryItem) - } - } - 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 states = value.states { - states.forEach { queryItemValue in - let queryItem = Smithy.URIQueryItem(name: "states".urlPercentEncoding(), value: Swift.String(queryItemValue.rawValue).urlPercentEncoding()) - items.append(queryItem) - } - } - return items - } -} - -extension ListStudioMembersInput { - - static func urlPathProvider(_ value: ListStudioMembersInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/membership" - } -} - -extension ListStudioMembersInput { - - static func queryItemProvider(_ value: ListStudioMembersInput) 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) - } - return items - } -} - -extension ListStudiosInput { - - static func urlPathProvider(_ value: ListStudiosInput) -> Swift.String? { - return "/2020-08-01/studios" - } -} - -extension ListStudiosInput { - - static func queryItemProvider(_ value: ListStudiosInput) 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) - } - return items - } -} - -extension ListTagsForResourceInput { - - static func urlPathProvider(_ value: ListTagsForResourceInput) -> Swift.String? { - guard let resourceArn = value.resourceArn else { - return nil - } - return "/2020-08-01/tags/\(resourceArn.urlPercentEncoding())" - } -} - -extension PutLaunchProfileMembersInput { - - static func urlPathProvider(_ value: PutLaunchProfileMembersInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - guard let launchProfileId = value.launchProfileId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/launch-profiles/\(launchProfileId.urlPercentEncoding())/membership" - } -} - -extension PutLaunchProfileMembersInput { - - static func headerProvider(_ value: PutLaunchProfileMembersInput) -> SmithyHTTPAPI.Headers { - var items = SmithyHTTPAPI.Headers() - if let clientToken = value.clientToken { - items.add(SmithyHTTPAPI.Header(name: "X-Amz-Client-Token", value: Swift.String(clientToken))) - } - return items - } -} - -extension PutStudioMembersInput { - - static func urlPathProvider(_ value: PutStudioMembersInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/membership" - } -} - -extension PutStudioMembersInput { - - static func headerProvider(_ value: PutStudioMembersInput) -> SmithyHTTPAPI.Headers { - var items = SmithyHTTPAPI.Headers() - if let clientToken = value.clientToken { - items.add(SmithyHTTPAPI.Header(name: "X-Amz-Client-Token", value: Swift.String(clientToken))) - } - return items - } -} - -extension StartStreamingSessionInput { - - static func urlPathProvider(_ value: StartStreamingSessionInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - guard let sessionId = value.sessionId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/streaming-sessions/\(sessionId.urlPercentEncoding())/start" - } -} - -extension StartStreamingSessionInput { - - static func headerProvider(_ value: StartStreamingSessionInput) -> SmithyHTTPAPI.Headers { - var items = SmithyHTTPAPI.Headers() - if let clientToken = value.clientToken { - items.add(SmithyHTTPAPI.Header(name: "X-Amz-Client-Token", value: Swift.String(clientToken))) - } - return items - } -} - -extension StartStudioSSOConfigurationRepairInput { - - static func urlPathProvider(_ value: StartStudioSSOConfigurationRepairInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/sso-configuration" - } -} - -extension StartStudioSSOConfigurationRepairInput { - - static func headerProvider(_ value: StartStudioSSOConfigurationRepairInput) -> SmithyHTTPAPI.Headers { - var items = SmithyHTTPAPI.Headers() - if let clientToken = value.clientToken { - items.add(SmithyHTTPAPI.Header(name: "X-Amz-Client-Token", value: Swift.String(clientToken))) - } - return items - } -} - -extension StopStreamingSessionInput { - - static func urlPathProvider(_ value: StopStreamingSessionInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - guard let sessionId = value.sessionId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/streaming-sessions/\(sessionId.urlPercentEncoding())/stop" - } -} - -extension StopStreamingSessionInput { - - static func headerProvider(_ value: StopStreamingSessionInput) -> SmithyHTTPAPI.Headers { - var items = SmithyHTTPAPI.Headers() - if let clientToken = value.clientToken { - items.add(SmithyHTTPAPI.Header(name: "X-Amz-Client-Token", value: Swift.String(clientToken))) - } - return items - } -} - -extension TagResourceInput { - - static func urlPathProvider(_ value: TagResourceInput) -> Swift.String? { - guard let resourceArn = value.resourceArn else { - return nil - } - return "/2020-08-01/tags/\(resourceArn.urlPercentEncoding())" - } -} - -extension UntagResourceInput { - - static func urlPathProvider(_ value: UntagResourceInput) -> Swift.String? { - guard let resourceArn = value.resourceArn else { - return nil - } - return "/2020-08-01/tags/\(resourceArn.urlPercentEncoding())" - } -} - -extension UntagResourceInput { - - 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 - } -} - -extension UpdateLaunchProfileInput { - - static func urlPathProvider(_ value: UpdateLaunchProfileInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - guard let launchProfileId = value.launchProfileId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/launch-profiles/\(launchProfileId.urlPercentEncoding())" - } -} - -extension UpdateLaunchProfileInput { - - static func headerProvider(_ value: UpdateLaunchProfileInput) -> SmithyHTTPAPI.Headers { - var items = SmithyHTTPAPI.Headers() - if let clientToken = value.clientToken { - items.add(SmithyHTTPAPI.Header(name: "X-Amz-Client-Token", value: Swift.String(clientToken))) - } - return items - } -} - -extension UpdateLaunchProfileMemberInput { - - static func urlPathProvider(_ value: UpdateLaunchProfileMemberInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - guard let launchProfileId = value.launchProfileId else { - return nil - } - guard let principalId = value.principalId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/launch-profiles/\(launchProfileId.urlPercentEncoding())/membership/\(principalId.urlPercentEncoding())" - } -} - -extension UpdateLaunchProfileMemberInput { - - static func headerProvider(_ value: UpdateLaunchProfileMemberInput) -> SmithyHTTPAPI.Headers { - var items = SmithyHTTPAPI.Headers() - if let clientToken = value.clientToken { - items.add(SmithyHTTPAPI.Header(name: "X-Amz-Client-Token", value: Swift.String(clientToken))) - } - return items - } -} - -extension UpdateStreamingImageInput { - - static func urlPathProvider(_ value: UpdateStreamingImageInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - guard let streamingImageId = value.streamingImageId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/streaming-images/\(streamingImageId.urlPercentEncoding())" - } -} - -extension UpdateStreamingImageInput { - - static func headerProvider(_ value: UpdateStreamingImageInput) -> SmithyHTTPAPI.Headers { - var items = SmithyHTTPAPI.Headers() - if let clientToken = value.clientToken { - items.add(SmithyHTTPAPI.Header(name: "X-Amz-Client-Token", value: Swift.String(clientToken))) - } - return items - } -} - -extension UpdateStudioInput { - - static func urlPathProvider(_ value: UpdateStudioInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())" - } -} - -extension UpdateStudioInput { - - static func headerProvider(_ value: UpdateStudioInput) -> SmithyHTTPAPI.Headers { - var items = SmithyHTTPAPI.Headers() - if let clientToken = value.clientToken { - items.add(SmithyHTTPAPI.Header(name: "X-Amz-Client-Token", value: Swift.String(clientToken))) - } - return items - } -} - -extension UpdateStudioComponentInput { - - static func urlPathProvider(_ value: UpdateStudioComponentInput) -> Swift.String? { - guard let studioId = value.studioId else { - return nil - } - guard let studioComponentId = value.studioComponentId else { - return nil - } - return "/2020-08-01/studios/\(studioId.urlPercentEncoding())/studio-components/\(studioComponentId.urlPercentEncoding())" - } -} - -extension UpdateStudioComponentInput { - - static func headerProvider(_ value: UpdateStudioComponentInput) -> SmithyHTTPAPI.Headers { - var items = SmithyHTTPAPI.Headers() - if let clientToken = value.clientToken { - items.add(SmithyHTTPAPI.Header(name: "X-Amz-Client-Token", value: Swift.String(clientToken))) - } - return items - } -} - -extension AcceptEulasInput { - - static func write(value: AcceptEulasInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["eulaIds"].writeList(value.eulaIds, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) - } -} - -extension CreateLaunchProfileInput { - - static func write(value: CreateLaunchProfileInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["description"].write(value.description) - try writer["ec2SubnetIds"].writeList(value.ec2SubnetIds, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["launchProfileProtocolVersions"].writeList(value.launchProfileProtocolVersions, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["name"].write(value.name) - try writer["streamConfiguration"].write(value.streamConfiguration, with: NimbleClientTypes.StreamConfigurationCreate.write(value:to:)) - try writer["studioComponentIds"].writeList(value.studioComponentIds, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["tags"].writeMap(value.tags, valueWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) - } -} - -extension CreateStreamingImageInput { - - static func write(value: CreateStreamingImageInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["description"].write(value.description) - try writer["ec2ImageId"].write(value.ec2ImageId) - try writer["name"].write(value.name) - try writer["tags"].writeMap(value.tags, valueWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) - } -} - -extension CreateStreamingSessionInput { - - static func write(value: CreateStreamingSessionInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["ec2InstanceType"].write(value.ec2InstanceType) - try writer["launchProfileId"].write(value.launchProfileId) - try writer["ownedBy"].write(value.ownedBy) - try writer["streamingImageId"].write(value.streamingImageId) - try writer["tags"].writeMap(value.tags, valueWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) - } -} - -extension CreateStreamingSessionStreamInput { - - static func write(value: CreateStreamingSessionStreamInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["expirationInSeconds"].write(value.expirationInSeconds) - } -} - -extension CreateStudioInput { - - static func write(value: CreateStudioInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["adminRoleArn"].write(value.adminRoleArn) - try writer["displayName"].write(value.displayName) - try writer["studioEncryptionConfiguration"].write(value.studioEncryptionConfiguration, with: NimbleClientTypes.StudioEncryptionConfiguration.write(value:to:)) - try writer["studioName"].write(value.studioName) - try writer["tags"].writeMap(value.tags, valueWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) - try writer["userRoleArn"].write(value.userRoleArn) - } -} - -extension CreateStudioComponentInput { - - static func write(value: CreateStudioComponentInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["configuration"].write(value.configuration, with: NimbleClientTypes.StudioComponentConfiguration.write(value:to:)) - try writer["description"].write(value.description) - try writer["ec2SecurityGroupIds"].writeList(value.ec2SecurityGroupIds, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["initializationScripts"].writeList(value.initializationScripts, memberWritingClosure: NimbleClientTypes.StudioComponentInitializationScript.write(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["name"].write(value.name) - try writer["runtimeRoleArn"].write(value.runtimeRoleArn) - try writer["scriptParameters"].writeList(value.scriptParameters, memberWritingClosure: NimbleClientTypes.ScriptParameterKeyValue.write(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["secureInitializationRoleArn"].write(value.secureInitializationRoleArn) - try writer["subtype"].write(value.subtype) - try writer["tags"].writeMap(value.tags, valueWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) - try writer["type"].write(value.type) - } -} - -extension PutLaunchProfileMembersInput { - - static func write(value: PutLaunchProfileMembersInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["identityStoreId"].write(value.identityStoreId) - try writer["members"].writeList(value.members, memberWritingClosure: NimbleClientTypes.NewLaunchProfileMember.write(value:to:), memberNodeInfo: "member", isFlattened: false) - } -} - -extension PutStudioMembersInput { - - static func write(value: PutStudioMembersInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["identityStoreId"].write(value.identityStoreId) - try writer["members"].writeList(value.members, memberWritingClosure: NimbleClientTypes.NewStudioMember.write(value:to:), memberNodeInfo: "member", isFlattened: false) - } -} - -extension StartStreamingSessionInput { - - static func write(value: StartStreamingSessionInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["backupId"].write(value.backupId) - } -} - -extension StopStreamingSessionInput { - - static func write(value: StopStreamingSessionInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["volumeRetentionMode"].write(value.volumeRetentionMode) - } -} - -extension TagResourceInput { - - 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) - } -} - -extension UpdateLaunchProfileInput { - - static func write(value: UpdateLaunchProfileInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["description"].write(value.description) - try writer["launchProfileProtocolVersions"].writeList(value.launchProfileProtocolVersions, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["name"].write(value.name) - try writer["streamConfiguration"].write(value.streamConfiguration, with: NimbleClientTypes.StreamConfigurationCreate.write(value:to:)) - try writer["studioComponentIds"].writeList(value.studioComponentIds, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) - } -} - -extension UpdateLaunchProfileMemberInput { - - static func write(value: UpdateLaunchProfileMemberInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["persona"].write(value.persona) - } -} - -extension UpdateStreamingImageInput { - - static func write(value: UpdateStreamingImageInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["description"].write(value.description) - try writer["name"].write(value.name) - } -} - -extension UpdateStudioInput { - - static func write(value: UpdateStudioInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["adminRoleArn"].write(value.adminRoleArn) - try writer["displayName"].write(value.displayName) - try writer["userRoleArn"].write(value.userRoleArn) - } -} - -extension UpdateStudioComponentInput { - - static func write(value: UpdateStudioComponentInput?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["configuration"].write(value.configuration, with: NimbleClientTypes.StudioComponentConfiguration.write(value:to:)) - try writer["description"].write(value.description) - try writer["ec2SecurityGroupIds"].writeList(value.ec2SecurityGroupIds, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["initializationScripts"].writeList(value.initializationScripts, memberWritingClosure: NimbleClientTypes.StudioComponentInitializationScript.write(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["name"].write(value.name) - try writer["runtimeRoleArn"].write(value.runtimeRoleArn) - try writer["scriptParameters"].writeList(value.scriptParameters, memberWritingClosure: NimbleClientTypes.ScriptParameterKeyValue.write(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["secureInitializationRoleArn"].write(value.secureInitializationRoleArn) - try writer["subtype"].write(value.subtype) - try writer["type"].write(value.type) - } -} - -extension AcceptEulasOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> AcceptEulasOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = AcceptEulasOutput() - value.eulaAcceptances = try reader["eulaAcceptances"].readListIfPresent(memberReadingClosure: NimbleClientTypes.EulaAcceptance.read(from:), memberNodeInfo: "member", isFlattened: false) - return value - } -} - -extension CreateLaunchProfileOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateLaunchProfileOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = CreateLaunchProfileOutput() - value.launchProfile = try reader["launchProfile"].readIfPresent(with: NimbleClientTypes.LaunchProfile.read(from:)) - return value - } -} - -extension CreateStreamingImageOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateStreamingImageOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = CreateStreamingImageOutput() - value.streamingImage = try reader["streamingImage"].readIfPresent(with: NimbleClientTypes.StreamingImage.read(from:)) - return value - } -} - -extension CreateStreamingSessionOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateStreamingSessionOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = CreateStreamingSessionOutput() - value.session = try reader["session"].readIfPresent(with: NimbleClientTypes.StreamingSession.read(from:)) - return value - } -} - -extension CreateStreamingSessionStreamOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateStreamingSessionStreamOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = CreateStreamingSessionStreamOutput() - value.stream = try reader["stream"].readIfPresent(with: NimbleClientTypes.StreamingSessionStream.read(from:)) - return value - } -} - -extension CreateStudioOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateStudioOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = CreateStudioOutput() - value.studio = try reader["studio"].readIfPresent(with: NimbleClientTypes.Studio.read(from:)) - return value - } -} - -extension CreateStudioComponentOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> CreateStudioComponentOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = CreateStudioComponentOutput() - value.studioComponent = try reader["studioComponent"].readIfPresent(with: NimbleClientTypes.StudioComponent.read(from:)) - return value - } -} - -extension DeleteLaunchProfileOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteLaunchProfileOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = DeleteLaunchProfileOutput() - value.launchProfile = try reader["launchProfile"].readIfPresent(with: NimbleClientTypes.LaunchProfile.read(from:)) - return value - } -} - -extension DeleteLaunchProfileMemberOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteLaunchProfileMemberOutput { - return DeleteLaunchProfileMemberOutput() - } -} - -extension DeleteStreamingImageOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteStreamingImageOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = DeleteStreamingImageOutput() - value.streamingImage = try reader["streamingImage"].readIfPresent(with: NimbleClientTypes.StreamingImage.read(from:)) - return value - } -} - -extension DeleteStreamingSessionOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteStreamingSessionOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = DeleteStreamingSessionOutput() - value.session = try reader["session"].readIfPresent(with: NimbleClientTypes.StreamingSession.read(from:)) - return value - } -} - -extension DeleteStudioOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteStudioOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = DeleteStudioOutput() - value.studio = try reader["studio"].readIfPresent(with: NimbleClientTypes.Studio.read(from:)) - return value - } -} - -extension DeleteStudioComponentOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteStudioComponentOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = DeleteStudioComponentOutput() - value.studioComponent = try reader["studioComponent"].readIfPresent(with: NimbleClientTypes.StudioComponent.read(from:)) - return value - } -} - -extension DeleteStudioMemberOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> DeleteStudioMemberOutput { - return DeleteStudioMemberOutput() - } -} - -extension GetEulaOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetEulaOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = GetEulaOutput() - value.eula = try reader["eula"].readIfPresent(with: NimbleClientTypes.Eula.read(from:)) - return value - } -} - -extension GetLaunchProfileOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetLaunchProfileOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = GetLaunchProfileOutput() - value.launchProfile = try reader["launchProfile"].readIfPresent(with: NimbleClientTypes.LaunchProfile.read(from:)) - return value - } -} - -extension GetLaunchProfileDetailsOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetLaunchProfileDetailsOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = GetLaunchProfileDetailsOutput() - value.launchProfile = try reader["launchProfile"].readIfPresent(with: NimbleClientTypes.LaunchProfile.read(from:)) - value.streamingImages = try reader["streamingImages"].readListIfPresent(memberReadingClosure: NimbleClientTypes.StreamingImage.read(from:), memberNodeInfo: "member", isFlattened: false) - value.studioComponentSummaries = try reader["studioComponentSummaries"].readListIfPresent(memberReadingClosure: NimbleClientTypes.StudioComponentSummary.read(from:), memberNodeInfo: "member", isFlattened: false) - return value - } -} - -extension GetLaunchProfileInitializationOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetLaunchProfileInitializationOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = GetLaunchProfileInitializationOutput() - value.launchProfileInitialization = try reader["launchProfileInitialization"].readIfPresent(with: NimbleClientTypes.LaunchProfileInitialization.read(from:)) - return value - } -} - -extension GetLaunchProfileMemberOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetLaunchProfileMemberOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = GetLaunchProfileMemberOutput() - value.member = try reader["member"].readIfPresent(with: NimbleClientTypes.LaunchProfileMembership.read(from:)) - return value - } -} - -extension GetStreamingImageOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetStreamingImageOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = GetStreamingImageOutput() - value.streamingImage = try reader["streamingImage"].readIfPresent(with: NimbleClientTypes.StreamingImage.read(from:)) - return value - } -} - -extension GetStreamingSessionOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetStreamingSessionOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = GetStreamingSessionOutput() - value.session = try reader["session"].readIfPresent(with: NimbleClientTypes.StreamingSession.read(from:)) - return value - } -} - -extension GetStreamingSessionBackupOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetStreamingSessionBackupOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = GetStreamingSessionBackupOutput() - value.streamingSessionBackup = try reader["streamingSessionBackup"].readIfPresent(with: NimbleClientTypes.StreamingSessionBackup.read(from:)) - return value - } -} - -extension GetStreamingSessionStreamOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetStreamingSessionStreamOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = GetStreamingSessionStreamOutput() - value.stream = try reader["stream"].readIfPresent(with: NimbleClientTypes.StreamingSessionStream.read(from:)) - return value - } -} - -extension GetStudioOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetStudioOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = GetStudioOutput() - value.studio = try reader["studio"].readIfPresent(with: NimbleClientTypes.Studio.read(from:)) - return value - } -} - -extension GetStudioComponentOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetStudioComponentOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = GetStudioComponentOutput() - value.studioComponent = try reader["studioComponent"].readIfPresent(with: NimbleClientTypes.StudioComponent.read(from:)) - return value - } -} - -extension GetStudioMemberOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> GetStudioMemberOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = GetStudioMemberOutput() - value.member = try reader["member"].readIfPresent(with: NimbleClientTypes.StudioMembership.read(from:)) - return value - } -} - -extension ListEulaAcceptancesOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListEulaAcceptancesOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = ListEulaAcceptancesOutput() - value.eulaAcceptances = try reader["eulaAcceptances"].readListIfPresent(memberReadingClosure: NimbleClientTypes.EulaAcceptance.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() - return value - } -} - -extension ListEulasOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListEulasOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = ListEulasOutput() - value.eulas = try reader["eulas"].readListIfPresent(memberReadingClosure: NimbleClientTypes.Eula.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() - return value - } -} - -extension ListLaunchProfileMembersOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListLaunchProfileMembersOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = ListLaunchProfileMembersOutput() - value.members = try reader["members"].readListIfPresent(memberReadingClosure: NimbleClientTypes.LaunchProfileMembership.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() - return value - } -} - -extension ListLaunchProfilesOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListLaunchProfilesOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = ListLaunchProfilesOutput() - value.launchProfiles = try reader["launchProfiles"].readListIfPresent(memberReadingClosure: NimbleClientTypes.LaunchProfile.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() - return value - } -} - -extension ListStreamingImagesOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListStreamingImagesOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = ListStreamingImagesOutput() - value.nextToken = try reader["nextToken"].readIfPresent() - value.streamingImages = try reader["streamingImages"].readListIfPresent(memberReadingClosure: NimbleClientTypes.StreamingImage.read(from:), memberNodeInfo: "member", isFlattened: false) - return value - } -} - -extension ListStreamingSessionBackupsOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListStreamingSessionBackupsOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = ListStreamingSessionBackupsOutput() - value.nextToken = try reader["nextToken"].readIfPresent() - value.streamingSessionBackups = try reader["streamingSessionBackups"].readListIfPresent(memberReadingClosure: NimbleClientTypes.StreamingSessionBackup.read(from:), memberNodeInfo: "member", isFlattened: false) - return value - } -} - -extension ListStreamingSessionsOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListStreamingSessionsOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = ListStreamingSessionsOutput() - value.nextToken = try reader["nextToken"].readIfPresent() - value.sessions = try reader["sessions"].readListIfPresent(memberReadingClosure: NimbleClientTypes.StreamingSession.read(from:), memberNodeInfo: "member", isFlattened: false) - return value - } -} - -extension ListStudioComponentsOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListStudioComponentsOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = ListStudioComponentsOutput() - value.nextToken = try reader["nextToken"].readIfPresent() - value.studioComponents = try reader["studioComponents"].readListIfPresent(memberReadingClosure: NimbleClientTypes.StudioComponent.read(from:), memberNodeInfo: "member", isFlattened: false) - return value - } -} - -extension ListStudioMembersOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListStudioMembersOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = ListStudioMembersOutput() - value.members = try reader["members"].readListIfPresent(memberReadingClosure: NimbleClientTypes.StudioMembership.read(from:), memberNodeInfo: "member", isFlattened: false) - value.nextToken = try reader["nextToken"].readIfPresent() - return value - } -} - -extension ListStudiosOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> ListStudiosOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = ListStudiosOutput() - value.nextToken = try reader["nextToken"].readIfPresent() - value.studios = try reader["studios"].readListIfPresent(memberReadingClosure: NimbleClientTypes.Studio.read(from:), memberNodeInfo: "member", isFlattened: false) ?? [] - return value - } -} - -extension ListTagsForResourceOutput { - - 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 = ListTagsForResourceOutput() - value.tags = try reader["tags"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) - return value - } -} - -extension PutLaunchProfileMembersOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> PutLaunchProfileMembersOutput { - return PutLaunchProfileMembersOutput() - } -} - -extension PutStudioMembersOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> PutStudioMembersOutput { - return PutStudioMembersOutput() - } -} - -extension StartStreamingSessionOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> StartStreamingSessionOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = StartStreamingSessionOutput() - value.session = try reader["session"].readIfPresent(with: NimbleClientTypes.StreamingSession.read(from:)) - return value - } -} - -extension StartStudioSSOConfigurationRepairOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> StartStudioSSOConfigurationRepairOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = StartStudioSSOConfigurationRepairOutput() - value.studio = try reader["studio"].readIfPresent(with: NimbleClientTypes.Studio.read(from:)) - return value - } -} - -extension StopStreamingSessionOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> StopStreamingSessionOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = StopStreamingSessionOutput() - value.session = try reader["session"].readIfPresent(with: NimbleClientTypes.StreamingSession.read(from:)) - return value - } -} - -extension TagResourceOutput { - - 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 UpdateLaunchProfileOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateLaunchProfileOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = UpdateLaunchProfileOutput() - value.launchProfile = try reader["launchProfile"].readIfPresent(with: NimbleClientTypes.LaunchProfile.read(from:)) - return value - } -} - -extension UpdateLaunchProfileMemberOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateLaunchProfileMemberOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = UpdateLaunchProfileMemberOutput() - value.member = try reader["member"].readIfPresent(with: NimbleClientTypes.LaunchProfileMembership.read(from:)) - return value - } -} - -extension UpdateStreamingImageOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateStreamingImageOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = UpdateStreamingImageOutput() - value.streamingImage = try reader["streamingImage"].readIfPresent(with: NimbleClientTypes.StreamingImage.read(from:)) - return value - } -} - -extension UpdateStudioOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateStudioOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = UpdateStudioOutput() - value.studio = try reader["studio"].readIfPresent(with: NimbleClientTypes.Studio.read(from:)) - return value - } -} - -extension UpdateStudioComponentOutput { - - static func httpOutput(from httpResponse: SmithyHTTPAPI.HTTPResponse) async throws -> UpdateStudioComponentOutput { - let data = try await httpResponse.data() - let responseReader = try SmithyJSON.Reader.from(data: data) - let reader = responseReader - var value = UpdateStudioComponentOutput() - value.studioComponent = try reader["studioComponent"].readIfPresent(with: NimbleClientTypes.StudioComponent.read(from:)) - return value - } -} - -enum AcceptEulasOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 CreateLaunchProfileOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 CreateStreamingImageOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 CreateStreamingSessionOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 CreateStreamingSessionStreamOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 CreateStudioOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 CreateStudioComponentOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 DeleteLaunchProfileOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 DeleteLaunchProfileMemberOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 DeleteStreamingImageOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 DeleteStreamingSessionOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 DeleteStudioOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 DeleteStudioComponentOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 DeleteStudioMemberOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 GetEulaOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 GetLaunchProfileOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 GetLaunchProfileDetailsOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 GetLaunchProfileInitializationOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 GetLaunchProfileMemberOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 GetStreamingImageOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 GetStreamingSessionOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 GetStreamingSessionBackupOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 GetStreamingSessionStreamOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 GetStudioOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 GetStudioComponentOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 GetStudioMemberOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 ListEulaAcceptancesOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 ListEulasOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 ListLaunchProfileMembersOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 ListLaunchProfilesOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 ListStreamingImagesOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 ListStreamingSessionBackupsOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 ListStreamingSessionsOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 ListStudioComponentsOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 ListStudioMembersOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 ListStudiosOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 ListTagsForResourceOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 PutLaunchProfileMembersOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 PutStudioMembersOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 StartStreamingSessionOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 StartStudioSSOConfigurationRepairOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 StopStreamingSessionOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 TagResourceOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 UpdateLaunchProfileOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 UpdateLaunchProfileMemberOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 UpdateStreamingImageOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 UpdateStudioOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 UpdateStudioComponentOutputError { - - 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 } - switch baseError.code { - case "AccessDeniedException": return try AccessDeniedException.makeError(baseError: baseError) - case "ConflictException": return try ConflictException.makeError(baseError: baseError) - case "InternalServerErrorException": return try InternalServerErrorException.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 ServiceQuotaExceededException { - - static func makeError(baseError: AWSClientRuntime.RestJSONError) throws -> ServiceQuotaExceededException { - let reader = baseError.errorBodyReader - var value = ServiceQuotaExceededException() - value.properties.code = try reader["code"].readIfPresent() - value.properties.context = try reader["context"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) - value.properties.message = try reader["message"].readIfPresent() - value.httpResponse = baseError.httpResponse - value.requestID = baseError.requestID - value.message = baseError.message - return value - } -} - -extension InternalServerErrorException { - - static func makeError(baseError: AWSClientRuntime.RestJSONError) throws -> InternalServerErrorException { - let reader = baseError.errorBodyReader - var value = InternalServerErrorException() - value.properties.code = try reader["code"].readIfPresent() - value.properties.context = try reader["context"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) - 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.code = try reader["code"].readIfPresent() - value.properties.context = try reader["context"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) - 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.code = try reader["code"].readIfPresent() - value.properties.context = try reader["context"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) - 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.code = try reader["code"].readIfPresent() - value.properties.context = try reader["context"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) - 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.code = try reader["code"].readIfPresent() - value.properties.context = try reader["context"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) - 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.code = try reader["code"].readIfPresent() - value.properties.context = try reader["context"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) - value.properties.message = try reader["message"].readIfPresent() - value.httpResponse = baseError.httpResponse - value.requestID = baseError.requestID - value.message = baseError.message - return value - } -} - -extension NimbleClientTypes.EulaAcceptance { - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.EulaAcceptance { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.EulaAcceptance() - value.acceptedAt = try reader["acceptedAt"].readTimestampIfPresent(format: SmithyTimestamps.TimestampFormat.dateTime) - value.acceptedBy = try reader["acceptedBy"].readIfPresent() - value.accepteeId = try reader["accepteeId"].readIfPresent() - value.eulaAcceptanceId = try reader["eulaAcceptanceId"].readIfPresent() - value.eulaId = try reader["eulaId"].readIfPresent() - return value - } -} - -extension NimbleClientTypes.LaunchProfile { - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.LaunchProfile { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.LaunchProfile() - value.arn = try reader["arn"].readIfPresent() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: SmithyTimestamps.TimestampFormat.dateTime) - value.createdBy = try reader["createdBy"].readIfPresent() - value.description = try reader["description"].readIfPresent() - value.ec2SubnetIds = try reader["ec2SubnetIds"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.launchProfileId = try reader["launchProfileId"].readIfPresent() - value.launchProfileProtocolVersions = try reader["launchProfileProtocolVersions"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.name = try reader["name"].readIfPresent() - value.state = try reader["state"].readIfPresent() - value.statusCode = try reader["statusCode"].readIfPresent() - value.statusMessage = try reader["statusMessage"].readIfPresent() - value.streamConfiguration = try reader["streamConfiguration"].readIfPresent(with: NimbleClientTypes.StreamConfiguration.read(from:)) - value.studioComponentIds = try reader["studioComponentIds"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.tags = try reader["tags"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: SmithyTimestamps.TimestampFormat.dateTime) - value.updatedBy = try reader["updatedBy"].readIfPresent() - value.validationResults = try reader["validationResults"].readListIfPresent(memberReadingClosure: NimbleClientTypes.ValidationResult.read(from:), memberNodeInfo: "member", isFlattened: false) - return value - } -} - -extension NimbleClientTypes.ValidationResult { - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.ValidationResult { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.ValidationResult() - value.type = try reader["type"].readIfPresent() ?? .sdkUnknown("") - value.state = try reader["state"].readIfPresent() ?? .sdkUnknown("") - value.statusCode = try reader["statusCode"].readIfPresent() ?? .sdkUnknown("") - value.statusMessage = try reader["statusMessage"].readIfPresent() ?? "" - return value - } -} - -extension NimbleClientTypes.StreamConfiguration { - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.StreamConfiguration { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.StreamConfiguration() - value.clipboardMode = try reader["clipboardMode"].readIfPresent() ?? .sdkUnknown("") - value.ec2InstanceTypes = try reader["ec2InstanceTypes"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosureBox().read(from:), memberNodeInfo: "member", isFlattened: false) ?? [] - value.maxSessionLengthInMinutes = try reader["maxSessionLengthInMinutes"].readIfPresent() ?? 690 - value.streamingImageIds = try reader["streamingImageIds"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) ?? [] - value.maxStoppedSessionLengthInMinutes = try reader["maxStoppedSessionLengthInMinutes"].readIfPresent() ?? 0 - value.sessionStorage = try reader["sessionStorage"].readIfPresent(with: NimbleClientTypes.StreamConfigurationSessionStorage.read(from:)) - value.sessionBackup = try reader["sessionBackup"].readIfPresent(with: NimbleClientTypes.StreamConfigurationSessionBackup.read(from:)) - value.sessionPersistenceMode = try reader["sessionPersistenceMode"].readIfPresent() - value.volumeConfiguration = try reader["volumeConfiguration"].readIfPresent(with: NimbleClientTypes.VolumeConfiguration.read(from:)) - value.automaticTerminationMode = try reader["automaticTerminationMode"].readIfPresent() - return value - } -} - -extension NimbleClientTypes.VolumeConfiguration { - - static func write(value: NimbleClientTypes.VolumeConfiguration?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["iops"].write(value.iops) - try writer["size"].write(value.size) - try writer["throughput"].write(value.throughput) - } - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.VolumeConfiguration { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.VolumeConfiguration() - value.size = try reader["size"].readIfPresent() ?? 500 - value.throughput = try reader["throughput"].readIfPresent() ?? 125 - value.iops = try reader["iops"].readIfPresent() ?? 3000 - return value - } -} - -extension NimbleClientTypes.StreamConfigurationSessionBackup { - - static func write(value: NimbleClientTypes.StreamConfigurationSessionBackup?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["maxBackupsToRetain"].write(value.maxBackupsToRetain) - try writer["mode"].write(value.mode) - } - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.StreamConfigurationSessionBackup { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.StreamConfigurationSessionBackup() - value.mode = try reader["mode"].readIfPresent() - value.maxBackupsToRetain = try reader["maxBackupsToRetain"].readIfPresent() ?? 0 - return value - } -} - -extension NimbleClientTypes.StreamConfigurationSessionStorage { - - static func write(value: NimbleClientTypes.StreamConfigurationSessionStorage?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["mode"].writeList(value.mode, memberWritingClosure: SmithyReadWrite.WritingClosureBox().write(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["root"].write(value.root, with: NimbleClientTypes.StreamingSessionStorageRoot.write(value:to:)) - } - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.StreamConfigurationSessionStorage { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.StreamConfigurationSessionStorage() - value.root = try reader["root"].readIfPresent(with: NimbleClientTypes.StreamingSessionStorageRoot.read(from:)) - value.mode = try reader["mode"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosureBox().read(from:), memberNodeInfo: "member", isFlattened: false) ?? [] - return value - } -} - -extension NimbleClientTypes.StreamingSessionStorageRoot { - - static func write(value: NimbleClientTypes.StreamingSessionStorageRoot?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["linux"].write(value.linux) - try writer["windows"].write(value.windows) - } - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.StreamingSessionStorageRoot { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.StreamingSessionStorageRoot() - value.linux = try reader["linux"].readIfPresent() - value.windows = try reader["windows"].readIfPresent() - return value - } -} - -extension NimbleClientTypes.StreamingImage { - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.StreamingImage { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.StreamingImage() - value.arn = try reader["arn"].readIfPresent() - value.description = try reader["description"].readIfPresent() - value.ec2ImageId = try reader["ec2ImageId"].readIfPresent() - value.encryptionConfiguration = try reader["encryptionConfiguration"].readIfPresent(with: NimbleClientTypes.StreamingImageEncryptionConfiguration.read(from:)) - value.eulaIds = try reader["eulaIds"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.name = try reader["name"].readIfPresent() - value.owner = try reader["owner"].readIfPresent() - value.platform = try reader["platform"].readIfPresent() - value.state = try reader["state"].readIfPresent() - value.statusCode = try reader["statusCode"].readIfPresent() - value.statusMessage = try reader["statusMessage"].readIfPresent() - value.streamingImageId = try reader["streamingImageId"].readIfPresent() - value.tags = try reader["tags"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) - return value - } -} - -extension NimbleClientTypes.StreamingImageEncryptionConfiguration { - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.StreamingImageEncryptionConfiguration { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.StreamingImageEncryptionConfiguration() - value.keyArn = try reader["keyArn"].readIfPresent() - value.keyType = try reader["keyType"].readIfPresent() ?? .sdkUnknown("") - return value - } -} - -extension NimbleClientTypes.StreamingSession { - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.StreamingSession { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.StreamingSession() - value.arn = try reader["arn"].readIfPresent() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: SmithyTimestamps.TimestampFormat.dateTime) - value.createdBy = try reader["createdBy"].readIfPresent() - value.ec2InstanceType = try reader["ec2InstanceType"].readIfPresent() - value.launchProfileId = try reader["launchProfileId"].readIfPresent() - value.ownedBy = try reader["ownedBy"].readIfPresent() - value.sessionId = try reader["sessionId"].readIfPresent() - value.state = try reader["state"].readIfPresent() - value.statusCode = try reader["statusCode"].readIfPresent() - value.statusMessage = try reader["statusMessage"].readIfPresent() - value.streamingImageId = try reader["streamingImageId"].readIfPresent() - value.tags = try reader["tags"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) - value.terminateAt = try reader["terminateAt"].readTimestampIfPresent(format: SmithyTimestamps.TimestampFormat.dateTime) - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: SmithyTimestamps.TimestampFormat.dateTime) - value.updatedBy = try reader["updatedBy"].readIfPresent() - value.stoppedAt = try reader["stoppedAt"].readTimestampIfPresent(format: SmithyTimestamps.TimestampFormat.dateTime) - value.stoppedBy = try reader["stoppedBy"].readIfPresent() - value.startedAt = try reader["startedAt"].readTimestampIfPresent(format: SmithyTimestamps.TimestampFormat.dateTime) - value.startedBy = try reader["startedBy"].readIfPresent() - value.stopAt = try reader["stopAt"].readTimestampIfPresent(format: SmithyTimestamps.TimestampFormat.dateTime) - value.startedFromBackupId = try reader["startedFromBackupId"].readIfPresent() - value.backupMode = try reader["backupMode"].readIfPresent() - value.maxBackupsToRetain = try reader["maxBackupsToRetain"].readIfPresent() ?? 0 - value.volumeRetentionMode = try reader["volumeRetentionMode"].readIfPresent() - value.sessionPersistenceMode = try reader["sessionPersistenceMode"].readIfPresent() - value.volumeConfiguration = try reader["volumeConfiguration"].readIfPresent(with: NimbleClientTypes.VolumeConfiguration.read(from:)) - value.automaticTerminationMode = try reader["automaticTerminationMode"].readIfPresent() - return value - } -} - -extension NimbleClientTypes.StreamingSessionStream { - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.StreamingSessionStream { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.StreamingSessionStream() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: SmithyTimestamps.TimestampFormat.dateTime) - value.createdBy = try reader["createdBy"].readIfPresent() - value.expiresAt = try reader["expiresAt"].readTimestampIfPresent(format: SmithyTimestamps.TimestampFormat.dateTime) - value.ownedBy = try reader["ownedBy"].readIfPresent() - value.state = try reader["state"].readIfPresent() - value.statusCode = try reader["statusCode"].readIfPresent() - value.streamId = try reader["streamId"].readIfPresent() - value.url = try reader["url"].readIfPresent() - return value - } -} - -extension NimbleClientTypes.Studio { - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.Studio { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.Studio() - value.adminRoleArn = try reader["adminRoleArn"].readIfPresent() - value.arn = try reader["arn"].readIfPresent() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: SmithyTimestamps.TimestampFormat.dateTime) - value.displayName = try reader["displayName"].readIfPresent() - value.homeRegion = try reader["homeRegion"].readIfPresent() - value.ssoClientId = try reader["ssoClientId"].readIfPresent() - value.state = try reader["state"].readIfPresent() - value.statusCode = try reader["statusCode"].readIfPresent() - value.statusMessage = try reader["statusMessage"].readIfPresent() - value.studioEncryptionConfiguration = try reader["studioEncryptionConfiguration"].readIfPresent(with: NimbleClientTypes.StudioEncryptionConfiguration.read(from:)) - value.studioId = try reader["studioId"].readIfPresent() - value.studioName = try reader["studioName"].readIfPresent() - value.studioUrl = try reader["studioUrl"].readIfPresent() - value.tags = try reader["tags"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: SmithyTimestamps.TimestampFormat.dateTime) - value.userRoleArn = try reader["userRoleArn"].readIfPresent() - return value - } -} - -extension NimbleClientTypes.StudioEncryptionConfiguration { - - static func write(value: NimbleClientTypes.StudioEncryptionConfiguration?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["keyArn"].write(value.keyArn) - try writer["keyType"].write(value.keyType) - } - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.StudioEncryptionConfiguration { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.StudioEncryptionConfiguration() - value.keyArn = try reader["keyArn"].readIfPresent() - value.keyType = try reader["keyType"].readIfPresent() ?? .sdkUnknown("") - return value - } -} - -extension NimbleClientTypes.StudioComponent { - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.StudioComponent { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.StudioComponent() - value.arn = try reader["arn"].readIfPresent() - value.configuration = try reader["configuration"].readIfPresent(with: NimbleClientTypes.StudioComponentConfiguration.read(from:)) - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: SmithyTimestamps.TimestampFormat.dateTime) - value.createdBy = try reader["createdBy"].readIfPresent() - value.description = try reader["description"].readIfPresent() - value.ec2SecurityGroupIds = try reader["ec2SecurityGroupIds"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.initializationScripts = try reader["initializationScripts"].readListIfPresent(memberReadingClosure: NimbleClientTypes.StudioComponentInitializationScript.read(from:), memberNodeInfo: "member", isFlattened: false) - value.name = try reader["name"].readIfPresent() - value.scriptParameters = try reader["scriptParameters"].readListIfPresent(memberReadingClosure: NimbleClientTypes.ScriptParameterKeyValue.read(from:), memberNodeInfo: "member", isFlattened: false) - value.state = try reader["state"].readIfPresent() - value.statusCode = try reader["statusCode"].readIfPresent() - value.statusMessage = try reader["statusMessage"].readIfPresent() - value.studioComponentId = try reader["studioComponentId"].readIfPresent() - value.subtype = try reader["subtype"].readIfPresent() - value.tags = try reader["tags"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) - value.type = try reader["type"].readIfPresent() - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: SmithyTimestamps.TimestampFormat.dateTime) - value.updatedBy = try reader["updatedBy"].readIfPresent() - value.secureInitializationRoleArn = try reader["secureInitializationRoleArn"].readIfPresent() - value.runtimeRoleArn = try reader["runtimeRoleArn"].readIfPresent() - return value - } -} - -extension NimbleClientTypes.ScriptParameterKeyValue { - - static func write(value: NimbleClientTypes.ScriptParameterKeyValue?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["key"].write(value.key) - try writer["value"].write(value.value) - } - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.ScriptParameterKeyValue { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.ScriptParameterKeyValue() - value.key = try reader["key"].readIfPresent() - value.value = try reader["value"].readIfPresent() - return value - } -} - -extension NimbleClientTypes.StudioComponentInitializationScript { - - static func write(value: NimbleClientTypes.StudioComponentInitializationScript?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["launchProfileProtocolVersion"].write(value.launchProfileProtocolVersion) - try writer["platform"].write(value.platform) - try writer["runContext"].write(value.runContext) - try writer["script"].write(value.script) - } - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.StudioComponentInitializationScript { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.StudioComponentInitializationScript() - value.launchProfileProtocolVersion = try reader["launchProfileProtocolVersion"].readIfPresent() - value.platform = try reader["platform"].readIfPresent() - value.runContext = try reader["runContext"].readIfPresent() - value.script = try reader["script"].readIfPresent() - return value - } -} - -extension NimbleClientTypes.StudioComponentConfiguration { - - static func write(value: NimbleClientTypes.StudioComponentConfiguration?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - switch value { - case let .activedirectoryconfiguration(activedirectoryconfiguration): - try writer["activeDirectoryConfiguration"].write(activedirectoryconfiguration, with: NimbleClientTypes.ActiveDirectoryConfiguration.write(value:to:)) - case let .computefarmconfiguration(computefarmconfiguration): - try writer["computeFarmConfiguration"].write(computefarmconfiguration, with: NimbleClientTypes.ComputeFarmConfiguration.write(value:to:)) - case let .licenseserviceconfiguration(licenseserviceconfiguration): - try writer["licenseServiceConfiguration"].write(licenseserviceconfiguration, with: NimbleClientTypes.LicenseServiceConfiguration.write(value:to:)) - case let .sharedfilesystemconfiguration(sharedfilesystemconfiguration): - try writer["sharedFileSystemConfiguration"].write(sharedfilesystemconfiguration, with: NimbleClientTypes.SharedFileSystemConfiguration.write(value:to:)) - case let .sdkUnknown(sdkUnknown): - try writer["sdkUnknown"].write(sdkUnknown) - } - } - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.StudioComponentConfiguration { - 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 "activeDirectoryConfiguration": - return .activedirectoryconfiguration(try reader["activeDirectoryConfiguration"].read(with: NimbleClientTypes.ActiveDirectoryConfiguration.read(from:))) - case "computeFarmConfiguration": - return .computefarmconfiguration(try reader["computeFarmConfiguration"].read(with: NimbleClientTypes.ComputeFarmConfiguration.read(from:))) - case "licenseServiceConfiguration": - return .licenseserviceconfiguration(try reader["licenseServiceConfiguration"].read(with: NimbleClientTypes.LicenseServiceConfiguration.read(from:))) - case "sharedFileSystemConfiguration": - return .sharedfilesystemconfiguration(try reader["sharedFileSystemConfiguration"].read(with: NimbleClientTypes.SharedFileSystemConfiguration.read(from:))) - default: - return .sdkUnknown(name ?? "") - } - } -} - -extension NimbleClientTypes.SharedFileSystemConfiguration { - - static func write(value: NimbleClientTypes.SharedFileSystemConfiguration?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["endpoint"].write(value.endpoint) - try writer["fileSystemId"].write(value.fileSystemId) - try writer["linuxMountPoint"].write(value.linuxMountPoint) - try writer["shareName"].write(value.shareName) - try writer["windowsMountDrive"].write(value.windowsMountDrive) - } - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.SharedFileSystemConfiguration { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.SharedFileSystemConfiguration() - value.endpoint = try reader["endpoint"].readIfPresent() - value.fileSystemId = try reader["fileSystemId"].readIfPresent() - value.linuxMountPoint = try reader["linuxMountPoint"].readIfPresent() - value.shareName = try reader["shareName"].readIfPresent() - value.windowsMountDrive = try reader["windowsMountDrive"].readIfPresent() - return value - } -} - -extension NimbleClientTypes.LicenseServiceConfiguration { - - static func write(value: NimbleClientTypes.LicenseServiceConfiguration?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["endpoint"].write(value.endpoint) - } - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.LicenseServiceConfiguration { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.LicenseServiceConfiguration() - value.endpoint = try reader["endpoint"].readIfPresent() - return value - } -} - -extension NimbleClientTypes.ComputeFarmConfiguration { - - static func write(value: NimbleClientTypes.ComputeFarmConfiguration?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["activeDirectoryUser"].write(value.activeDirectoryUser) - try writer["endpoint"].write(value.endpoint) - } - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.ComputeFarmConfiguration { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.ComputeFarmConfiguration() - value.activeDirectoryUser = try reader["activeDirectoryUser"].readIfPresent() - value.endpoint = try reader["endpoint"].readIfPresent() - return value - } -} - -extension NimbleClientTypes.ActiveDirectoryConfiguration { - - static func write(value: NimbleClientTypes.ActiveDirectoryConfiguration?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["computerAttributes"].writeList(value.computerAttributes, memberWritingClosure: NimbleClientTypes.ActiveDirectoryComputerAttribute.write(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["directoryId"].write(value.directoryId) - try writer["organizationalUnitDistinguishedName"].write(value.organizationalUnitDistinguishedName) - } - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.ActiveDirectoryConfiguration { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.ActiveDirectoryConfiguration() - value.computerAttributes = try reader["computerAttributes"].readListIfPresent(memberReadingClosure: NimbleClientTypes.ActiveDirectoryComputerAttribute.read(from:), memberNodeInfo: "member", isFlattened: false) - value.directoryId = try reader["directoryId"].readIfPresent() - value.organizationalUnitDistinguishedName = try reader["organizationalUnitDistinguishedName"].readIfPresent() - return value - } -} - -extension NimbleClientTypes.ActiveDirectoryComputerAttribute { - - static func write(value: NimbleClientTypes.ActiveDirectoryComputerAttribute?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["name"].write(value.name) - try writer["value"].write(value.value) - } - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.ActiveDirectoryComputerAttribute { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.ActiveDirectoryComputerAttribute() - value.name = try reader["name"].readIfPresent() - value.value = try reader["value"].readIfPresent() - return value - } -} - -extension NimbleClientTypes.Eula { - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.Eula { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.Eula() - value.content = try reader["content"].readIfPresent() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: SmithyTimestamps.TimestampFormat.dateTime) - value.eulaId = try reader["eulaId"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: SmithyTimestamps.TimestampFormat.dateTime) - return value - } -} - -extension NimbleClientTypes.StudioComponentSummary { - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.StudioComponentSummary { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.StudioComponentSummary() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: SmithyTimestamps.TimestampFormat.dateTime) - value.createdBy = try reader["createdBy"].readIfPresent() - value.description = try reader["description"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.studioComponentId = try reader["studioComponentId"].readIfPresent() - value.subtype = try reader["subtype"].readIfPresent() - value.type = try reader["type"].readIfPresent() - value.updatedAt = try reader["updatedAt"].readTimestampIfPresent(format: SmithyTimestamps.TimestampFormat.dateTime) - value.updatedBy = try reader["updatedBy"].readIfPresent() - return value - } -} - -extension NimbleClientTypes.LaunchProfileInitialization { - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.LaunchProfileInitialization { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.LaunchProfileInitialization() - value.activeDirectory = try reader["activeDirectory"].readIfPresent(with: NimbleClientTypes.LaunchProfileInitializationActiveDirectory.read(from:)) - value.ec2SecurityGroupIds = try reader["ec2SecurityGroupIds"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.launchProfileId = try reader["launchProfileId"].readIfPresent() - value.launchProfileProtocolVersion = try reader["launchProfileProtocolVersion"].readIfPresent() - value.launchPurpose = try reader["launchPurpose"].readIfPresent() - value.name = try reader["name"].readIfPresent() - value.platform = try reader["platform"].readIfPresent() - value.systemInitializationScripts = try reader["systemInitializationScripts"].readListIfPresent(memberReadingClosure: NimbleClientTypes.LaunchProfileInitializationScript.read(from:), memberNodeInfo: "member", isFlattened: false) - value.userInitializationScripts = try reader["userInitializationScripts"].readListIfPresent(memberReadingClosure: NimbleClientTypes.LaunchProfileInitializationScript.read(from:), memberNodeInfo: "member", isFlattened: false) - return value - } -} - -extension NimbleClientTypes.LaunchProfileInitializationScript { - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.LaunchProfileInitializationScript { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.LaunchProfileInitializationScript() - value.script = try reader["script"].readIfPresent() - value.studioComponentId = try reader["studioComponentId"].readIfPresent() - value.studioComponentName = try reader["studioComponentName"].readIfPresent() - value.secureInitializationRoleArn = try reader["secureInitializationRoleArn"].readIfPresent() - value.runtimeRoleArn = try reader["runtimeRoleArn"].readIfPresent() - return value - } -} - -extension NimbleClientTypes.LaunchProfileInitializationActiveDirectory { - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.LaunchProfileInitializationActiveDirectory { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.LaunchProfileInitializationActiveDirectory() - value.computerAttributes = try reader["computerAttributes"].readListIfPresent(memberReadingClosure: NimbleClientTypes.ActiveDirectoryComputerAttribute.read(from:), memberNodeInfo: "member", isFlattened: false) - value.directoryId = try reader["directoryId"].readIfPresent() - value.directoryName = try reader["directoryName"].readIfPresent() - value.dnsIpAddresses = try reader["dnsIpAddresses"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) - value.organizationalUnitDistinguishedName = try reader["organizationalUnitDistinguishedName"].readIfPresent() - value.studioComponentId = try reader["studioComponentId"].readIfPresent() - value.studioComponentName = try reader["studioComponentName"].readIfPresent() - return value - } -} - -extension NimbleClientTypes.LaunchProfileMembership { - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.LaunchProfileMembership { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.LaunchProfileMembership() - value.identityStoreId = try reader["identityStoreId"].readIfPresent() - value.persona = try reader["persona"].readIfPresent() - value.principalId = try reader["principalId"].readIfPresent() - value.sid = try reader["sid"].readIfPresent() - return value - } -} - -extension NimbleClientTypes.StreamingSessionBackup { - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.StreamingSessionBackup { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.StreamingSessionBackup() - value.arn = try reader["arn"].readIfPresent() - value.createdAt = try reader["createdAt"].readTimestampIfPresent(format: SmithyTimestamps.TimestampFormat.dateTime) - value.launchProfileId = try reader["launchProfileId"].readIfPresent() - value.ownedBy = try reader["ownedBy"].readIfPresent() - value.sessionId = try reader["sessionId"].readIfPresent() - value.state = try reader["state"].readIfPresent() - value.statusCode = try reader["statusCode"].readIfPresent() - value.statusMessage = try reader["statusMessage"].readIfPresent() - value.backupId = try reader["backupId"].readIfPresent() - value.tags = try reader["tags"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) - return value - } -} - -extension NimbleClientTypes.StudioMembership { - - static func read(from reader: SmithyJSON.Reader) throws -> NimbleClientTypes.StudioMembership { - guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } - var value = NimbleClientTypes.StudioMembership() - value.identityStoreId = try reader["identityStoreId"].readIfPresent() - value.persona = try reader["persona"].readIfPresent() - value.principalId = try reader["principalId"].readIfPresent() - value.sid = try reader["sid"].readIfPresent() - return value - } -} - -extension NimbleClientTypes.StreamConfigurationCreate { - - static func write(value: NimbleClientTypes.StreamConfigurationCreate?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["automaticTerminationMode"].write(value.automaticTerminationMode) - try writer["clipboardMode"].write(value.clipboardMode) - try writer["ec2InstanceTypes"].writeList(value.ec2InstanceTypes, memberWritingClosure: SmithyReadWrite.WritingClosureBox().write(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["maxSessionLengthInMinutes"].write(value.maxSessionLengthInMinutes) - try writer["maxStoppedSessionLengthInMinutes"].write(value.maxStoppedSessionLengthInMinutes) - try writer["sessionBackup"].write(value.sessionBackup, with: NimbleClientTypes.StreamConfigurationSessionBackup.write(value:to:)) - try writer["sessionPersistenceMode"].write(value.sessionPersistenceMode) - try writer["sessionStorage"].write(value.sessionStorage, with: NimbleClientTypes.StreamConfigurationSessionStorage.write(value:to:)) - try writer["streamingImageIds"].writeList(value.streamingImageIds, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false) - try writer["volumeConfiguration"].write(value.volumeConfiguration, with: NimbleClientTypes.VolumeConfiguration.write(value:to:)) - } -} - -extension NimbleClientTypes.NewLaunchProfileMember { - - static func write(value: NimbleClientTypes.NewLaunchProfileMember?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["persona"].write(value.persona) - try writer["principalId"].write(value.principalId) - } -} - -extension NimbleClientTypes.NewStudioMember { - - static func write(value: NimbleClientTypes.NewStudioMember?, to writer: SmithyJSON.Writer) throws { - guard let value else { return } - try writer["persona"].write(value.persona) - try writer["principalId"].write(value.principalId) - } -} - -public enum NimbleClientTypes {} diff --git a/Sources/Services/AWSNimble/Sources/AWSNimble/NimbleClient.swift b/Sources/Services/AWSNimble/Sources/AWSNimble/NimbleClient.swift deleted file mode 100644 index d03ad126c4e..00000000000 --- a/Sources/Services/AWSNimble/Sources/AWSNimble/NimbleClient.swift +++ /dev/null @@ -1,3835 +0,0 @@ -// -// Copyright Amazon.com Inc. or its affiliates. -// All Rights Reserved. -// -// SPDX-License-Identifier: Apache-2.0 -// - -// Code generated by smithy-swift-codegen. DO NOT EDIT! - -import class AWSClientRuntime.AWSClientConfigDefaultsProvider -import class AWSClientRuntime.AmzSdkRequestMiddleware -import class AWSClientRuntime.DefaultAWSClientPlugin -import class ClientRuntime.ClientBuilder -import class ClientRuntime.DefaultClientPlugin -import class ClientRuntime.HttpClientConfiguration -import class ClientRuntime.OrchestratorBuilder -import class ClientRuntime.OrchestratorTelemetry -import class ClientRuntime.SdkHttpClient -import class Smithy.ContextBuilder -import class SmithyHTTPAPI.HTTPRequest -import class SmithyHTTPAPI.HTTPResponse -@_spi(SmithyReadWrite) import class SmithyJSON.Writer -import enum AWSClientRuntime.AWSRetryErrorInfoProvider -import enum AWSClientRuntime.AWSRetryMode -import enum ClientRuntime.ClientLogMode -import enum ClientRuntime.DefaultTelemetry -import enum ClientRuntime.OrchestratorMetricsAttributesKeys -import protocol AWSClientRuntime.AWSDefaultClientConfiguration -import protocol AWSClientRuntime.AWSRegionClientConfiguration -import protocol ClientRuntime.Client -import protocol ClientRuntime.DefaultClientConfiguration -import protocol ClientRuntime.DefaultHttpClientConfiguration -import protocol ClientRuntime.HttpInterceptorProvider -import protocol ClientRuntime.IdempotencyTokenGenerator -import protocol ClientRuntime.InterceptorProvider -import protocol ClientRuntime.TelemetryProvider -import protocol Smithy.LogAgent -import protocol SmithyHTTPAPI.HTTPClient -import protocol SmithyHTTPAuthAPI.AuthSchemeResolver -import protocol SmithyIdentity.AWSCredentialIdentityResolver -import protocol SmithyIdentity.BearerTokenIdentityResolver -@_spi(SmithyReadWrite) import protocol SmithyReadWrite.SmithyWriter -import struct AWSClientRuntime.AmzSdkInvocationIdMiddleware -import struct AWSClientRuntime.EndpointResolverMiddleware -import struct AWSClientRuntime.UserAgentMiddleware -import struct AWSSDKHTTPAuth.SigV4AuthScheme -import struct ClientRuntime.AuthSchemeMiddleware -@_spi(SmithyReadWrite) import struct ClientRuntime.BodyMiddleware -import struct ClientRuntime.ContentLengthMiddleware -import struct ClientRuntime.ContentTypeMiddleware -@_spi(SmithyReadWrite) import struct ClientRuntime.DeserializeMiddleware -import struct ClientRuntime.HeaderMiddleware -import struct ClientRuntime.IdempotencyTokenMiddleware -import struct ClientRuntime.LoggerMiddleware -import struct ClientRuntime.QueryItemMiddleware -import struct ClientRuntime.SignerMiddleware -import struct ClientRuntime.URLHostMiddleware -import struct ClientRuntime.URLPathMiddleware -import struct Smithy.Attributes -import struct SmithyIdentity.BearerTokenIdentity -import struct SmithyIdentity.StaticBearerTokenIdentityResolver -import struct SmithyRetries.DefaultRetryStrategy -import struct SmithyRetriesAPI.RetryStrategyOptions -import typealias SmithyHTTPAuthAPI.AuthSchemes - -public class NimbleClient: ClientRuntime.Client { - public static let clientName = "NimbleClient" - let client: ClientRuntime.SdkHttpClient - let config: NimbleClient.NimbleClientConfiguration - let serviceName = "nimble" - - public required init(config: NimbleClient.NimbleClientConfiguration) { - client = ClientRuntime.SdkHttpClient(engine: config.httpClientEngine, config: config.httpClientConfiguration) - self.config = config - } - - public convenience init(region: Swift.String) throws { - let config = try NimbleClient.NimbleClientConfiguration(region: region) - self.init(config: config) - } - - public convenience required init() async throws { - let config = try await NimbleClient.NimbleClientConfiguration() - self.init(config: config) - } -} - -extension NimbleClient { - public class NimbleClientConfiguration: AWSClientRuntime.AWSDefaultClientConfiguration & AWSClientRuntime.AWSRegionClientConfiguration & ClientRuntime.DefaultClientConfiguration & ClientRuntime.DefaultHttpClientConfiguration { - public var useFIPS: Swift.Bool? - - public var useDualStack: Swift.Bool? - - public var appID: Swift.String? - - public var awsCredentialIdentityResolver: any SmithyIdentity.AWSCredentialIdentityResolver - - public var awsRetryMode: AWSClientRuntime.AWSRetryMode - - public var maxAttempts: Swift.Int? - - public var region: Swift.String? - - public var signingRegion: Swift.String? - - public var endpointResolver: EndpointResolver - - public var telemetryProvider: ClientRuntime.TelemetryProvider - - public var retryStrategyOptions: SmithyRetriesAPI.RetryStrategyOptions - - public var clientLogMode: ClientRuntime.ClientLogMode - - public var endpoint: Swift.String? - - public var idempotencyTokenGenerator: ClientRuntime.IdempotencyTokenGenerator - - public var httpClientEngine: SmithyHTTPAPI.HTTPClient - - public var httpClientConfiguration: ClientRuntime.HttpClientConfiguration - - public var authSchemes: SmithyHTTPAuthAPI.AuthSchemes? - - public var authSchemeResolver: SmithyHTTPAuthAPI.AuthSchemeResolver - - public var bearerTokenIdentityResolver: any SmithyIdentity.BearerTokenIdentityResolver - - public private(set) var interceptorProviders: [ClientRuntime.InterceptorProvider] - - public private(set) var httpInterceptorProviders: [ClientRuntime.HttpInterceptorProvider] - - internal let logger: Smithy.LogAgent - - private init(_ useFIPS: Swift.Bool?, _ useDualStack: Swift.Bool?, _ appID: Swift.String?, _ awsCredentialIdentityResolver: any SmithyIdentity.AWSCredentialIdentityResolver, _ awsRetryMode: AWSClientRuntime.AWSRetryMode, _ maxAttempts: Swift.Int?, _ region: Swift.String?, _ signingRegion: Swift.String?, _ endpointResolver: EndpointResolver, _ telemetryProvider: ClientRuntime.TelemetryProvider, _ retryStrategyOptions: SmithyRetriesAPI.RetryStrategyOptions, _ clientLogMode: ClientRuntime.ClientLogMode, _ endpoint: Swift.String?, _ idempotencyTokenGenerator: ClientRuntime.IdempotencyTokenGenerator, _ httpClientEngine: SmithyHTTPAPI.HTTPClient, _ httpClientConfiguration: ClientRuntime.HttpClientConfiguration, _ authSchemes: SmithyHTTPAuthAPI.AuthSchemes?, _ authSchemeResolver: SmithyHTTPAuthAPI.AuthSchemeResolver, _ bearerTokenIdentityResolver: any SmithyIdentity.BearerTokenIdentityResolver, _ interceptorProviders: [ClientRuntime.InterceptorProvider], _ httpInterceptorProviders: [ClientRuntime.HttpInterceptorProvider]) { - self.useFIPS = useFIPS - self.useDualStack = useDualStack - self.appID = appID - self.awsCredentialIdentityResolver = awsCredentialIdentityResolver - self.awsRetryMode = awsRetryMode - self.maxAttempts = maxAttempts - self.region = region - self.signingRegion = signingRegion - self.endpointResolver = endpointResolver - self.telemetryProvider = telemetryProvider - self.retryStrategyOptions = retryStrategyOptions - self.clientLogMode = clientLogMode - self.endpoint = endpoint - self.idempotencyTokenGenerator = idempotencyTokenGenerator - self.httpClientEngine = httpClientEngine - self.httpClientConfiguration = httpClientConfiguration - self.authSchemes = authSchemes - self.authSchemeResolver = authSchemeResolver - self.bearerTokenIdentityResolver = bearerTokenIdentityResolver - self.interceptorProviders = interceptorProviders - self.httpInterceptorProviders = httpInterceptorProviders - self.logger = telemetryProvider.loggerProvider.getLogger(name: NimbleClient.clientName) - } - - public convenience init(useFIPS: Swift.Bool? = nil, useDualStack: Swift.Bool? = nil, appID: Swift.String? = nil, awsCredentialIdentityResolver: (any SmithyIdentity.AWSCredentialIdentityResolver)? = nil, awsRetryMode: AWSClientRuntime.AWSRetryMode? = nil, maxAttempts: Swift.Int? = nil, region: Swift.String? = nil, signingRegion: Swift.String? = nil, endpointResolver: EndpointResolver? = nil, telemetryProvider: ClientRuntime.TelemetryProvider? = nil, retryStrategyOptions: SmithyRetriesAPI.RetryStrategyOptions? = nil, clientLogMode: ClientRuntime.ClientLogMode? = nil, endpoint: Swift.String? = nil, idempotencyTokenGenerator: ClientRuntime.IdempotencyTokenGenerator? = nil, httpClientEngine: SmithyHTTPAPI.HTTPClient? = nil, httpClientConfiguration: ClientRuntime.HttpClientConfiguration? = nil, authSchemes: SmithyHTTPAuthAPI.AuthSchemes? = nil, authSchemeResolver: SmithyHTTPAuthAPI.AuthSchemeResolver? = nil, bearerTokenIdentityResolver: (any SmithyIdentity.BearerTokenIdentityResolver)? = nil, interceptorProviders: [ClientRuntime.InterceptorProvider]? = nil, httpInterceptorProviders: [ClientRuntime.HttpInterceptorProvider]? = nil) throws { - self.init(useFIPS, useDualStack, try appID ?? AWSClientRuntime.AWSClientConfigDefaultsProvider.appID(), try awsCredentialIdentityResolver ?? AWSClientRuntime.AWSClientConfigDefaultsProvider.awsCredentialIdentityResolver(awsCredentialIdentityResolver), try awsRetryMode ?? AWSClientRuntime.AWSClientConfigDefaultsProvider.retryMode(), maxAttempts, region, signingRegion, try endpointResolver ?? DefaultEndpointResolver(), telemetryProvider ?? ClientRuntime.DefaultTelemetry.provider, try retryStrategyOptions ?? AWSClientConfigDefaultsProvider.retryStrategyOptions(awsRetryMode, maxAttempts), clientLogMode ?? AWSClientConfigDefaultsProvider.clientLogMode(), endpoint, idempotencyTokenGenerator ?? AWSClientConfigDefaultsProvider.idempotencyTokenGenerator(), httpClientEngine ?? AWSClientConfigDefaultsProvider.httpClientEngine(), httpClientConfiguration ?? AWSClientConfigDefaultsProvider.httpClientConfiguration(), authSchemes ?? [AWSSDKHTTPAuth.SigV4AuthScheme()], authSchemeResolver ?? DefaultNimbleAuthSchemeResolver(), bearerTokenIdentityResolver ?? SmithyIdentity.StaticBearerTokenIdentityResolver(token: SmithyIdentity.BearerTokenIdentity(token: "")), interceptorProviders ?? [], httpInterceptorProviders ?? []) - } - - public convenience init(useFIPS: Swift.Bool? = nil, useDualStack: Swift.Bool? = nil, appID: Swift.String? = nil, awsCredentialIdentityResolver: (any SmithyIdentity.AWSCredentialIdentityResolver)? = nil, awsRetryMode: AWSClientRuntime.AWSRetryMode? = nil, maxAttempts: Swift.Int? = nil, region: Swift.String? = nil, signingRegion: Swift.String? = nil, endpointResolver: EndpointResolver? = nil, telemetryProvider: ClientRuntime.TelemetryProvider? = nil, retryStrategyOptions: SmithyRetriesAPI.RetryStrategyOptions? = nil, clientLogMode: ClientRuntime.ClientLogMode? = nil, endpoint: Swift.String? = nil, idempotencyTokenGenerator: ClientRuntime.IdempotencyTokenGenerator? = nil, httpClientEngine: SmithyHTTPAPI.HTTPClient? = nil, httpClientConfiguration: ClientRuntime.HttpClientConfiguration? = nil, authSchemes: SmithyHTTPAuthAPI.AuthSchemes? = nil, authSchemeResolver: SmithyHTTPAuthAPI.AuthSchemeResolver? = nil, bearerTokenIdentityResolver: (any SmithyIdentity.BearerTokenIdentityResolver)? = nil, interceptorProviders: [ClientRuntime.InterceptorProvider]? = nil, httpInterceptorProviders: [ClientRuntime.HttpInterceptorProvider]? = nil) async throws { - self.init(useFIPS, useDualStack, try appID ?? AWSClientRuntime.AWSClientConfigDefaultsProvider.appID(), try awsCredentialIdentityResolver ?? AWSClientRuntime.AWSClientConfigDefaultsProvider.awsCredentialIdentityResolver(awsCredentialIdentityResolver), try awsRetryMode ?? AWSClientRuntime.AWSClientConfigDefaultsProvider.retryMode(), maxAttempts, try await AWSClientRuntime.AWSClientConfigDefaultsProvider.region(region), try await AWSClientRuntime.AWSClientConfigDefaultsProvider.region(region), try endpointResolver ?? DefaultEndpointResolver(), telemetryProvider ?? ClientRuntime.DefaultTelemetry.provider, try retryStrategyOptions ?? AWSClientConfigDefaultsProvider.retryStrategyOptions(awsRetryMode, maxAttempts), clientLogMode ?? AWSClientConfigDefaultsProvider.clientLogMode(), endpoint, idempotencyTokenGenerator ?? AWSClientConfigDefaultsProvider.idempotencyTokenGenerator(), httpClientEngine ?? AWSClientConfigDefaultsProvider.httpClientEngine(), httpClientConfiguration ?? AWSClientConfigDefaultsProvider.httpClientConfiguration(), authSchemes ?? [AWSSDKHTTPAuth.SigV4AuthScheme()], authSchemeResolver ?? DefaultNimbleAuthSchemeResolver(), bearerTokenIdentityResolver ?? SmithyIdentity.StaticBearerTokenIdentityResolver(token: SmithyIdentity.BearerTokenIdentity(token: "")), interceptorProviders ?? [], httpInterceptorProviders ?? []) - } - - public convenience required init() async throws { - try await self.init(useFIPS: nil, useDualStack: nil, appID: nil, awsCredentialIdentityResolver: nil, awsRetryMode: nil, maxAttempts: nil, region: nil, signingRegion: nil, endpointResolver: nil, telemetryProvider: nil, retryStrategyOptions: nil, clientLogMode: nil, endpoint: nil, idempotencyTokenGenerator: nil, httpClientEngine: nil, httpClientConfiguration: nil, authSchemes: nil, authSchemeResolver: nil, bearerTokenIdentityResolver: nil, interceptorProviders: nil, httpInterceptorProviders: nil) - } - - public convenience init(region: String) throws { - self.init(nil, nil, try AWSClientRuntime.AWSClientConfigDefaultsProvider.appID(), try AWSClientConfigDefaultsProvider.awsCredentialIdentityResolver(), try AWSClientRuntime.AWSClientConfigDefaultsProvider.retryMode(), nil, region, region, try DefaultEndpointResolver(), ClientRuntime.DefaultTelemetry.provider, try AWSClientConfigDefaultsProvider.retryStrategyOptions(), AWSClientConfigDefaultsProvider.clientLogMode(), nil, AWSClientConfigDefaultsProvider.idempotencyTokenGenerator(), AWSClientConfigDefaultsProvider.httpClientEngine(), AWSClientConfigDefaultsProvider.httpClientConfiguration(), [AWSSDKHTTPAuth.SigV4AuthScheme()], DefaultNimbleAuthSchemeResolver(), SmithyIdentity.StaticBearerTokenIdentityResolver(token: SmithyIdentity.BearerTokenIdentity(token: "")), [], []) - } - - public var partitionID: String? { - return "\(NimbleClient.clientName) - \(region ?? "")" - } - public func addInterceptorProvider(_ provider: ClientRuntime.InterceptorProvider) { - self.interceptorProviders.append(provider) - } - - public func addInterceptorProvider(_ provider: ClientRuntime.HttpInterceptorProvider) { - self.httpInterceptorProviders.append(provider) - } - - } - - public static func builder() -> ClientRuntime.ClientBuilder { - return ClientRuntime.ClientBuilder(defaultPlugins: [ - ClientRuntime.DefaultClientPlugin(), - AWSClientRuntime.DefaultAWSClientPlugin(clientName: self.clientName), - DefaultAWSAuthSchemePlugin() - ]) - } -} - -extension NimbleClient { - /// Performs the `AcceptEulas` operation on the `nimble` service. - /// - /// Accept EULAs. - /// - /// - Parameter AcceptEulasInput : [no documentation found] - /// - /// - Returns: `AcceptEulasOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func acceptEulas(input: AcceptEulasInput) async throws -> AcceptEulasOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .post) - .withServiceName(value: serviceName) - .withOperation(value: "acceptEulas") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) - builder.interceptors.add(ClientRuntime.URLPathMiddleware(AcceptEulasInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.HeaderMiddleware(AcceptEulasInput.headerProvider(_:))) - builder.interceptors.add(ClientRuntime.ContentTypeMiddleware(contentType: "application/json")) - builder.serialize(ClientRuntime.BodyMiddleware(rootNodeInfo: "", inputWritingClosure: AcceptEulasInput.write(value:to:))) - builder.interceptors.add(ClientRuntime.ContentLengthMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(AcceptEulasOutput.httpOutput(from:), AcceptEulasOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "AcceptEulas") - 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 `CreateLaunchProfile` operation on the `nimble` service. - /// - /// Create a launch profile. - /// - /// - Parameter CreateLaunchProfileInput : [no documentation found] - /// - /// - Returns: `CreateLaunchProfileOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func createLaunchProfile(input: CreateLaunchProfileInput) async throws -> CreateLaunchProfileOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .post) - .withServiceName(value: serviceName) - .withOperation(value: "createLaunchProfile") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) - builder.interceptors.add(ClientRuntime.URLPathMiddleware(CreateLaunchProfileInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.HeaderMiddleware(CreateLaunchProfileInput.headerProvider(_:))) - builder.interceptors.add(ClientRuntime.ContentTypeMiddleware(contentType: "application/json")) - builder.serialize(ClientRuntime.BodyMiddleware(rootNodeInfo: "", inputWritingClosure: CreateLaunchProfileInput.write(value:to:))) - builder.interceptors.add(ClientRuntime.ContentLengthMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(CreateLaunchProfileOutput.httpOutput(from:), CreateLaunchProfileOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "CreateLaunchProfile") - 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 `CreateStreamingImage` operation on the `nimble` service. - /// - /// Creates a streaming image resource in a studio. - /// - /// - Parameter CreateStreamingImageInput : [no documentation found] - /// - /// - Returns: `CreateStreamingImageOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func createStreamingImage(input: CreateStreamingImageInput) async throws -> CreateStreamingImageOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .post) - .withServiceName(value: serviceName) - .withOperation(value: "createStreamingImage") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) - builder.interceptors.add(ClientRuntime.URLPathMiddleware(CreateStreamingImageInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.HeaderMiddleware(CreateStreamingImageInput.headerProvider(_:))) - builder.interceptors.add(ClientRuntime.ContentTypeMiddleware(contentType: "application/json")) - builder.serialize(ClientRuntime.BodyMiddleware(rootNodeInfo: "", inputWritingClosure: CreateStreamingImageInput.write(value:to:))) - builder.interceptors.add(ClientRuntime.ContentLengthMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(CreateStreamingImageOutput.httpOutput(from:), CreateStreamingImageOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "CreateStreamingImage") - 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 `CreateStreamingSession` operation on the `nimble` service. - /// - /// Creates a streaming session in a studio. After invoking this operation, you must poll GetStreamingSession until the streaming session is in the READY state. - /// - /// - Parameter CreateStreamingSessionInput : [no documentation found] - /// - /// - Returns: `CreateStreamingSessionOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func createStreamingSession(input: CreateStreamingSessionInput) async throws -> CreateStreamingSessionOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .post) - .withServiceName(value: serviceName) - .withOperation(value: "createStreamingSession") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) - builder.interceptors.add(ClientRuntime.URLPathMiddleware(CreateStreamingSessionInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.HeaderMiddleware(CreateStreamingSessionInput.headerProvider(_:))) - builder.interceptors.add(ClientRuntime.ContentTypeMiddleware(contentType: "application/json")) - builder.serialize(ClientRuntime.BodyMiddleware(rootNodeInfo: "", inputWritingClosure: CreateStreamingSessionInput.write(value:to:))) - builder.interceptors.add(ClientRuntime.ContentLengthMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(CreateStreamingSessionOutput.httpOutput(from:), CreateStreamingSessionOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "CreateStreamingSession") - 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 `CreateStreamingSessionStream` operation on the `nimble` service. - /// - /// Creates a streaming session stream for a streaming session. After invoking this API, invoke GetStreamingSessionStream with the returned streamId to poll the resource until it is in the READY state. - /// - /// - Parameter CreateStreamingSessionStreamInput : [no documentation found] - /// - /// - Returns: `CreateStreamingSessionStreamOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func createStreamingSessionStream(input: CreateStreamingSessionStreamInput) async throws -> CreateStreamingSessionStreamOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .post) - .withServiceName(value: serviceName) - .withOperation(value: "createStreamingSessionStream") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) - builder.interceptors.add(ClientRuntime.URLPathMiddleware(CreateStreamingSessionStreamInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.HeaderMiddleware(CreateStreamingSessionStreamInput.headerProvider(_:))) - builder.interceptors.add(ClientRuntime.ContentTypeMiddleware(contentType: "application/json")) - builder.serialize(ClientRuntime.BodyMiddleware(rootNodeInfo: "", inputWritingClosure: CreateStreamingSessionStreamInput.write(value:to:))) - builder.interceptors.add(ClientRuntime.ContentLengthMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(CreateStreamingSessionStreamOutput.httpOutput(from:), CreateStreamingSessionStreamOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "CreateStreamingSessionStream") - 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 `CreateStudio` operation on the `nimble` service. - /// - /// Create a new studio. When creating a studio, two IAM roles must be provided: the admin role and the user role. These roles are assumed by your users when they log in to the Nimble Studio portal. The user role must have the AmazonNimbleStudio-StudioUser managed policy attached for the portal to function properly. The admin role must have the AmazonNimbleStudio-StudioAdmin managed policy attached for the portal to function properly. You may optionally specify a KMS key in the StudioEncryptionConfiguration. In Nimble Studio, resource names, descriptions, initialization scripts, and other data you provide are always encrypted at rest using an KMS key. By default, this key is owned by Amazon Web Services and managed on your behalf. You may provide your own KMS key when calling CreateStudio to encrypt this data using a key you own and manage. When providing an KMS key during studio creation, Nimble Studio creates KMS grants in your account to provide your studio user and admin roles access to these KMS keys. If you delete this grant, the studio will no longer be accessible to your portal users. If you delete the studio KMS key, your studio will no longer be accessible. - /// - /// - Parameter CreateStudioInput : [no documentation found] - /// - /// - Returns: `CreateStudioOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func createStudio(input: CreateStudioInput) async throws -> CreateStudioOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .post) - .withServiceName(value: serviceName) - .withOperation(value: "createStudio") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) - builder.interceptors.add(ClientRuntime.URLPathMiddleware(CreateStudioInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.HeaderMiddleware(CreateStudioInput.headerProvider(_:))) - builder.interceptors.add(ClientRuntime.ContentTypeMiddleware(contentType: "application/json")) - builder.serialize(ClientRuntime.BodyMiddleware(rootNodeInfo: "", inputWritingClosure: CreateStudioInput.write(value:to:))) - builder.interceptors.add(ClientRuntime.ContentLengthMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(CreateStudioOutput.httpOutput(from:), CreateStudioOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "CreateStudio") - 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 `CreateStudioComponent` operation on the `nimble` service. - /// - /// Creates a studio component resource. - /// - /// - Parameter CreateStudioComponentInput : [no documentation found] - /// - /// - Returns: `CreateStudioComponentOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func createStudioComponent(input: CreateStudioComponentInput) async throws -> CreateStudioComponentOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .post) - .withServiceName(value: serviceName) - .withOperation(value: "createStudioComponent") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) - builder.interceptors.add(ClientRuntime.URLPathMiddleware(CreateStudioComponentInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.HeaderMiddleware(CreateStudioComponentInput.headerProvider(_:))) - builder.interceptors.add(ClientRuntime.ContentTypeMiddleware(contentType: "application/json")) - builder.serialize(ClientRuntime.BodyMiddleware(rootNodeInfo: "", inputWritingClosure: CreateStudioComponentInput.write(value:to:))) - builder.interceptors.add(ClientRuntime.ContentLengthMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(CreateStudioComponentOutput.httpOutput(from:), CreateStudioComponentOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "CreateStudioComponent") - 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 `DeleteLaunchProfile` operation on the `nimble` service. - /// - /// Permanently delete a launch profile. - /// - /// - Parameter DeleteLaunchProfileInput : [no documentation found] - /// - /// - Returns: `DeleteLaunchProfileOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func deleteLaunchProfile(input: DeleteLaunchProfileInput) async throws -> DeleteLaunchProfileOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .delete) - .withServiceName(value: serviceName) - .withOperation(value: "deleteLaunchProfile") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) - builder.interceptors.add(ClientRuntime.URLPathMiddleware(DeleteLaunchProfileInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.HeaderMiddleware(DeleteLaunchProfileInput.headerProvider(_:))) - builder.deserialize(ClientRuntime.DeserializeMiddleware(DeleteLaunchProfileOutput.httpOutput(from:), DeleteLaunchProfileOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "DeleteLaunchProfile") - 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 `DeleteLaunchProfileMember` operation on the `nimble` service. - /// - /// Delete a user from launch profile membership. - /// - /// - Parameter DeleteLaunchProfileMemberInput : [no documentation found] - /// - /// - Returns: `DeleteLaunchProfileMemberOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func deleteLaunchProfileMember(input: DeleteLaunchProfileMemberInput) async throws -> DeleteLaunchProfileMemberOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .delete) - .withServiceName(value: serviceName) - .withOperation(value: "deleteLaunchProfileMember") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) - builder.interceptors.add(ClientRuntime.URLPathMiddleware(DeleteLaunchProfileMemberInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.HeaderMiddleware(DeleteLaunchProfileMemberInput.headerProvider(_:))) - builder.deserialize(ClientRuntime.DeserializeMiddleware(DeleteLaunchProfileMemberOutput.httpOutput(from:), DeleteLaunchProfileMemberOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "DeleteLaunchProfileMember") - 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 `DeleteStreamingImage` operation on the `nimble` service. - /// - /// Delete streaming image. - /// - /// - Parameter DeleteStreamingImageInput : [no documentation found] - /// - /// - Returns: `DeleteStreamingImageOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func deleteStreamingImage(input: DeleteStreamingImageInput) async throws -> DeleteStreamingImageOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .delete) - .withServiceName(value: serviceName) - .withOperation(value: "deleteStreamingImage") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) - builder.interceptors.add(ClientRuntime.URLPathMiddleware(DeleteStreamingImageInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.HeaderMiddleware(DeleteStreamingImageInput.headerProvider(_:))) - builder.deserialize(ClientRuntime.DeserializeMiddleware(DeleteStreamingImageOutput.httpOutput(from:), DeleteStreamingImageOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "DeleteStreamingImage") - 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 `DeleteStreamingSession` operation on the `nimble` service. - /// - /// Deletes streaming session resource. After invoking this operation, use GetStreamingSession to poll the resource until it transitions to a DELETED state. A streaming session will count against your streaming session quota until it is marked DELETED. - /// - /// - Parameter DeleteStreamingSessionInput : [no documentation found] - /// - /// - Returns: `DeleteStreamingSessionOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func deleteStreamingSession(input: DeleteStreamingSessionInput) async throws -> DeleteStreamingSessionOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .delete) - .withServiceName(value: serviceName) - .withOperation(value: "deleteStreamingSession") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) - builder.interceptors.add(ClientRuntime.URLPathMiddleware(DeleteStreamingSessionInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.HeaderMiddleware(DeleteStreamingSessionInput.headerProvider(_:))) - builder.deserialize(ClientRuntime.DeserializeMiddleware(DeleteStreamingSessionOutput.httpOutput(from:), DeleteStreamingSessionOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "DeleteStreamingSession") - 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 `DeleteStudio` operation on the `nimble` service. - /// - /// Delete a studio resource. - /// - /// - Parameter DeleteStudioInput : [no documentation found] - /// - /// - Returns: `DeleteStudioOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func deleteStudio(input: DeleteStudioInput) async throws -> DeleteStudioOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .delete) - .withServiceName(value: serviceName) - .withOperation(value: "deleteStudio") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) - builder.interceptors.add(ClientRuntime.URLPathMiddleware(DeleteStudioInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.HeaderMiddleware(DeleteStudioInput.headerProvider(_:))) - builder.deserialize(ClientRuntime.DeserializeMiddleware(DeleteStudioOutput.httpOutput(from:), DeleteStudioOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "DeleteStudio") - 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 `DeleteStudioComponent` operation on the `nimble` service. - /// - /// Deletes a studio component resource. - /// - /// - Parameter DeleteStudioComponentInput : [no documentation found] - /// - /// - Returns: `DeleteStudioComponentOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func deleteStudioComponent(input: DeleteStudioComponentInput) async throws -> DeleteStudioComponentOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .delete) - .withServiceName(value: serviceName) - .withOperation(value: "deleteStudioComponent") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) - builder.interceptors.add(ClientRuntime.URLPathMiddleware(DeleteStudioComponentInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.HeaderMiddleware(DeleteStudioComponentInput.headerProvider(_:))) - builder.deserialize(ClientRuntime.DeserializeMiddleware(DeleteStudioComponentOutput.httpOutput(from:), DeleteStudioComponentOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "DeleteStudioComponent") - 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 `DeleteStudioMember` operation on the `nimble` service. - /// - /// Delete a user from studio membership. - /// - /// - Parameter DeleteStudioMemberInput : [no documentation found] - /// - /// - Returns: `DeleteStudioMemberOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func deleteStudioMember(input: DeleteStudioMemberInput) async throws -> DeleteStudioMemberOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .delete) - .withServiceName(value: serviceName) - .withOperation(value: "deleteStudioMember") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) - builder.interceptors.add(ClientRuntime.URLPathMiddleware(DeleteStudioMemberInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.HeaderMiddleware(DeleteStudioMemberInput.headerProvider(_:))) - builder.deserialize(ClientRuntime.DeserializeMiddleware(DeleteStudioMemberOutput.httpOutput(from:), DeleteStudioMemberOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "DeleteStudioMember") - 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 `GetEula` operation on the `nimble` service. - /// - /// Get EULA. - /// - /// - Parameter GetEulaInput : [no documentation found] - /// - /// - Returns: `GetEulaOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func getEula(input: GetEulaInput) async throws -> GetEulaOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .get) - .withServiceName(value: serviceName) - .withOperation(value: "getEula") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(GetEulaInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(GetEulaOutput.httpOutput(from:), GetEulaOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "GetEula") - 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 `GetLaunchProfile` operation on the `nimble` service. - /// - /// Get a launch profile. - /// - /// - Parameter GetLaunchProfileInput : [no documentation found] - /// - /// - Returns: `GetLaunchProfileOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func getLaunchProfile(input: GetLaunchProfileInput) async throws -> GetLaunchProfileOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .get) - .withServiceName(value: serviceName) - .withOperation(value: "getLaunchProfile") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(GetLaunchProfileInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(GetLaunchProfileOutput.httpOutput(from:), GetLaunchProfileOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "GetLaunchProfile") - 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 `GetLaunchProfileDetails` operation on the `nimble` service. - /// - /// Launch profile details include the launch profile resource and summary information of resources that are used by, or available to, the launch profile. This includes the name and description of all studio components used by the launch profiles, and the name and description of streaming images that can be used with this launch profile. - /// - /// - Parameter GetLaunchProfileDetailsInput : [no documentation found] - /// - /// - Returns: `GetLaunchProfileDetailsOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func getLaunchProfileDetails(input: GetLaunchProfileDetailsInput) async throws -> GetLaunchProfileDetailsOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .get) - .withServiceName(value: serviceName) - .withOperation(value: "getLaunchProfileDetails") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(GetLaunchProfileDetailsInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(GetLaunchProfileDetailsOutput.httpOutput(from:), GetLaunchProfileDetailsOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "GetLaunchProfileDetails") - 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 `GetLaunchProfileInitialization` operation on the `nimble` service. - /// - /// Get a launch profile initialization. - /// - /// - Parameter GetLaunchProfileInitializationInput : [no documentation found] - /// - /// - Returns: `GetLaunchProfileInitializationOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func getLaunchProfileInitialization(input: GetLaunchProfileInitializationInput) async throws -> GetLaunchProfileInitializationOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .get) - .withServiceName(value: serviceName) - .withOperation(value: "getLaunchProfileInitialization") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(GetLaunchProfileInitializationInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.QueryItemMiddleware(GetLaunchProfileInitializationInput.queryItemProvider(_:))) - builder.deserialize(ClientRuntime.DeserializeMiddleware(GetLaunchProfileInitializationOutput.httpOutput(from:), GetLaunchProfileInitializationOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "GetLaunchProfileInitialization") - 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 `GetLaunchProfileMember` operation on the `nimble` service. - /// - /// Get a user persona in launch profile membership. - /// - /// - Parameter GetLaunchProfileMemberInput : [no documentation found] - /// - /// - Returns: `GetLaunchProfileMemberOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func getLaunchProfileMember(input: GetLaunchProfileMemberInput) async throws -> GetLaunchProfileMemberOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .get) - .withServiceName(value: serviceName) - .withOperation(value: "getLaunchProfileMember") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(GetLaunchProfileMemberInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(GetLaunchProfileMemberOutput.httpOutput(from:), GetLaunchProfileMemberOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "GetLaunchProfileMember") - 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 `GetStreamingImage` operation on the `nimble` service. - /// - /// Get streaming image. - /// - /// - Parameter GetStreamingImageInput : [no documentation found] - /// - /// - Returns: `GetStreamingImageOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func getStreamingImage(input: GetStreamingImageInput) async throws -> GetStreamingImageOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .get) - .withServiceName(value: serviceName) - .withOperation(value: "getStreamingImage") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(GetStreamingImageInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(GetStreamingImageOutput.httpOutput(from:), GetStreamingImageOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "GetStreamingImage") - 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 `GetStreamingSession` operation on the `nimble` service. - /// - /// Gets StreamingSession resource. Invoke this operation to poll for a streaming session state while creating or deleting a session. - /// - /// - Parameter GetStreamingSessionInput : [no documentation found] - /// - /// - Returns: `GetStreamingSessionOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func getStreamingSession(input: GetStreamingSessionInput) async throws -> GetStreamingSessionOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .get) - .withServiceName(value: serviceName) - .withOperation(value: "getStreamingSession") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(GetStreamingSessionInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(GetStreamingSessionOutput.httpOutput(from:), GetStreamingSessionOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "GetStreamingSession") - 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 `GetStreamingSessionBackup` operation on the `nimble` service. - /// - /// Gets StreamingSessionBackup resource. Invoke this operation to poll for a streaming session backup while stopping a streaming session. - /// - /// - Parameter GetStreamingSessionBackupInput : [no documentation found] - /// - /// - Returns: `GetStreamingSessionBackupOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func getStreamingSessionBackup(input: GetStreamingSessionBackupInput) async throws -> GetStreamingSessionBackupOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .get) - .withServiceName(value: serviceName) - .withOperation(value: "getStreamingSessionBackup") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(GetStreamingSessionBackupInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(GetStreamingSessionBackupOutput.httpOutput(from:), GetStreamingSessionBackupOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "GetStreamingSessionBackup") - 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 `GetStreamingSessionStream` operation on the `nimble` service. - /// - /// Gets a StreamingSessionStream for a streaming session. Invoke this operation to poll the resource after invoking CreateStreamingSessionStream. After the StreamingSessionStream changes to the READY state, the url property will contain a stream to be used with the DCV streaming client. - /// - /// - Parameter GetStreamingSessionStreamInput : [no documentation found] - /// - /// - Returns: `GetStreamingSessionStreamOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func getStreamingSessionStream(input: GetStreamingSessionStreamInput) async throws -> GetStreamingSessionStreamOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .get) - .withServiceName(value: serviceName) - .withOperation(value: "getStreamingSessionStream") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(GetStreamingSessionStreamInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(GetStreamingSessionStreamOutput.httpOutput(from:), GetStreamingSessionStreamOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "GetStreamingSessionStream") - 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 `GetStudio` operation on the `nimble` service. - /// - /// Get a studio resource. - /// - /// - Parameter GetStudioInput : [no documentation found] - /// - /// - Returns: `GetStudioOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func getStudio(input: GetStudioInput) async throws -> GetStudioOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .get) - .withServiceName(value: serviceName) - .withOperation(value: "getStudio") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(GetStudioInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(GetStudioOutput.httpOutput(from:), GetStudioOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "GetStudio") - 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 `GetStudioComponent` operation on the `nimble` service. - /// - /// Gets a studio component resource. - /// - /// - Parameter GetStudioComponentInput : [no documentation found] - /// - /// - Returns: `GetStudioComponentOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func getStudioComponent(input: GetStudioComponentInput) async throws -> GetStudioComponentOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .get) - .withServiceName(value: serviceName) - .withOperation(value: "getStudioComponent") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(GetStudioComponentInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(GetStudioComponentOutput.httpOutput(from:), GetStudioComponentOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "GetStudioComponent") - 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 `GetStudioMember` operation on the `nimble` service. - /// - /// Get a user's membership in a studio. - /// - /// - Parameter GetStudioMemberInput : [no documentation found] - /// - /// - Returns: `GetStudioMemberOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func getStudioMember(input: GetStudioMemberInput) async throws -> GetStudioMemberOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .get) - .withServiceName(value: serviceName) - .withOperation(value: "getStudioMember") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(GetStudioMemberInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(GetStudioMemberOutput.httpOutput(from:), GetStudioMemberOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "GetStudioMember") - 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 `ListEulaAcceptances` operation on the `nimble` service. - /// - /// List EULA acceptances. - /// - /// - Parameter ListEulaAcceptancesInput : [no documentation found] - /// - /// - Returns: `ListEulaAcceptancesOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func listEulaAcceptances(input: ListEulaAcceptancesInput) async throws -> ListEulaAcceptancesOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .get) - .withServiceName(value: serviceName) - .withOperation(value: "listEulaAcceptances") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(ListEulaAcceptancesInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.QueryItemMiddleware(ListEulaAcceptancesInput.queryItemProvider(_:))) - builder.deserialize(ClientRuntime.DeserializeMiddleware(ListEulaAcceptancesOutput.httpOutput(from:), ListEulaAcceptancesOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "ListEulaAcceptances") - 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 `ListEulas` operation on the `nimble` service. - /// - /// List EULAs. - /// - /// - Parameter ListEulasInput : [no documentation found] - /// - /// - Returns: `ListEulasOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func listEulas(input: ListEulasInput) async throws -> ListEulasOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .get) - .withServiceName(value: serviceName) - .withOperation(value: "listEulas") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(ListEulasInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.QueryItemMiddleware(ListEulasInput.queryItemProvider(_:))) - builder.deserialize(ClientRuntime.DeserializeMiddleware(ListEulasOutput.httpOutput(from:), ListEulasOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "ListEulas") - 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 `ListLaunchProfileMembers` operation on the `nimble` service. - /// - /// Get all users in a given launch profile membership. - /// - /// - Parameter ListLaunchProfileMembersInput : [no documentation found] - /// - /// - Returns: `ListLaunchProfileMembersOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func listLaunchProfileMembers(input: ListLaunchProfileMembersInput) async throws -> ListLaunchProfileMembersOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .get) - .withServiceName(value: serviceName) - .withOperation(value: "listLaunchProfileMembers") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(ListLaunchProfileMembersInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.QueryItemMiddleware(ListLaunchProfileMembersInput.queryItemProvider(_:))) - builder.deserialize(ClientRuntime.DeserializeMiddleware(ListLaunchProfileMembersOutput.httpOutput(from:), ListLaunchProfileMembersOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "ListLaunchProfileMembers") - 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 `ListLaunchProfiles` operation on the `nimble` service. - /// - /// List all the launch profiles a studio. - /// - /// - Parameter ListLaunchProfilesInput : [no documentation found] - /// - /// - Returns: `ListLaunchProfilesOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func listLaunchProfiles(input: ListLaunchProfilesInput) async throws -> ListLaunchProfilesOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .get) - .withServiceName(value: serviceName) - .withOperation(value: "listLaunchProfiles") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(ListLaunchProfilesInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.QueryItemMiddleware(ListLaunchProfilesInput.queryItemProvider(_:))) - builder.deserialize(ClientRuntime.DeserializeMiddleware(ListLaunchProfilesOutput.httpOutput(from:), ListLaunchProfilesOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "ListLaunchProfiles") - 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 `ListStreamingImages` operation on the `nimble` service. - /// - /// List the streaming image resources available to this studio. This list will contain both images provided by Amazon Web Services, as well as streaming images that you have created in your studio. - /// - /// - Parameter ListStreamingImagesInput : [no documentation found] - /// - /// - Returns: `ListStreamingImagesOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func listStreamingImages(input: ListStreamingImagesInput) async throws -> ListStreamingImagesOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .get) - .withServiceName(value: serviceName) - .withOperation(value: "listStreamingImages") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(ListStreamingImagesInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.QueryItemMiddleware(ListStreamingImagesInput.queryItemProvider(_:))) - builder.deserialize(ClientRuntime.DeserializeMiddleware(ListStreamingImagesOutput.httpOutput(from:), ListStreamingImagesOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "ListStreamingImages") - 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 `ListStreamingSessionBackups` operation on the `nimble` service. - /// - /// Lists the backups of a streaming session in a studio. - /// - /// - Parameter ListStreamingSessionBackupsInput : [no documentation found] - /// - /// - Returns: `ListStreamingSessionBackupsOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func listStreamingSessionBackups(input: ListStreamingSessionBackupsInput) async throws -> ListStreamingSessionBackupsOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .get) - .withServiceName(value: serviceName) - .withOperation(value: "listStreamingSessionBackups") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(ListStreamingSessionBackupsInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.QueryItemMiddleware(ListStreamingSessionBackupsInput.queryItemProvider(_:))) - builder.deserialize(ClientRuntime.DeserializeMiddleware(ListStreamingSessionBackupsOutput.httpOutput(from:), ListStreamingSessionBackupsOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "ListStreamingSessionBackups") - 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 `ListStreamingSessions` operation on the `nimble` service. - /// - /// Lists the streaming sessions in a studio. - /// - /// - Parameter ListStreamingSessionsInput : [no documentation found] - /// - /// - Returns: `ListStreamingSessionsOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func listStreamingSessions(input: ListStreamingSessionsInput) async throws -> ListStreamingSessionsOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .get) - .withServiceName(value: serviceName) - .withOperation(value: "listStreamingSessions") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(ListStreamingSessionsInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.QueryItemMiddleware(ListStreamingSessionsInput.queryItemProvider(_:))) - builder.deserialize(ClientRuntime.DeserializeMiddleware(ListStreamingSessionsOutput.httpOutput(from:), ListStreamingSessionsOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "ListStreamingSessions") - 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 `ListStudioComponents` operation on the `nimble` service. - /// - /// Lists the StudioComponents in a studio. - /// - /// - Parameter ListStudioComponentsInput : [no documentation found] - /// - /// - Returns: `ListStudioComponentsOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func listStudioComponents(input: ListStudioComponentsInput) async throws -> ListStudioComponentsOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .get) - .withServiceName(value: serviceName) - .withOperation(value: "listStudioComponents") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(ListStudioComponentsInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.QueryItemMiddleware(ListStudioComponentsInput.queryItemProvider(_:))) - builder.deserialize(ClientRuntime.DeserializeMiddleware(ListStudioComponentsOutput.httpOutput(from:), ListStudioComponentsOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "ListStudioComponents") - 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 `ListStudioMembers` operation on the `nimble` service. - /// - /// Get all users in a given studio membership. ListStudioMembers only returns admin members. - /// - /// - Parameter ListStudioMembersInput : [no documentation found] - /// - /// - Returns: `ListStudioMembersOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func listStudioMembers(input: ListStudioMembersInput) async throws -> ListStudioMembersOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .get) - .withServiceName(value: serviceName) - .withOperation(value: "listStudioMembers") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(ListStudioMembersInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.QueryItemMiddleware(ListStudioMembersInput.queryItemProvider(_:))) - builder.deserialize(ClientRuntime.DeserializeMiddleware(ListStudioMembersOutput.httpOutput(from:), ListStudioMembersOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "ListStudioMembers") - 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 `ListStudios` operation on the `nimble` service. - /// - /// List studios in your Amazon Web Services accounts in the requested Amazon Web Services Region. - /// - /// - Parameter ListStudiosInput : [no documentation found] - /// - /// - Returns: `ListStudiosOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func listStudios(input: ListStudiosInput) async throws -> ListStudiosOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .get) - .withServiceName(value: serviceName) - .withOperation(value: "listStudios") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(ListStudiosInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.QueryItemMiddleware(ListStudiosInput.queryItemProvider(_:))) - builder.deserialize(ClientRuntime.DeserializeMiddleware(ListStudiosOutput.httpOutput(from:), ListStudiosOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "ListStudios") - 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 `ListTagsForResource` operation on the `nimble` service. - /// - /// Gets the tags for a resource, given its Amazon Resource Names (ARN). This operation supports ARNs for all resource types in Nimble Studio that support tags, including studio, studio component, launch profile, streaming image, and streaming session. All resources that can be tagged will contain an ARN property, so you do not have to create this ARN yourself. - /// - /// - Parameter ListTagsForResourceInput : [no documentation found] - /// - /// - Returns: `ListTagsForResourceOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func listTagsForResource(input: ListTagsForResourceInput) async throws -> ListTagsForResourceOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .get) - .withServiceName(value: serviceName) - .withOperation(value: "listTagsForResource") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(ListTagsForResourceInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(ListTagsForResourceOutput.httpOutput(from:), ListTagsForResourceOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "ListTagsForResource") - 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 `PutLaunchProfileMembers` operation on the `nimble` service. - /// - /// Add/update users with given persona to launch profile membership. - /// - /// - Parameter PutLaunchProfileMembersInput : [no documentation found] - /// - /// - Returns: `PutLaunchProfileMembersOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func putLaunchProfileMembers(input: PutLaunchProfileMembersInput) async throws -> PutLaunchProfileMembersOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .post) - .withServiceName(value: serviceName) - .withOperation(value: "putLaunchProfileMembers") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) - builder.interceptors.add(ClientRuntime.URLPathMiddleware(PutLaunchProfileMembersInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.HeaderMiddleware(PutLaunchProfileMembersInput.headerProvider(_:))) - builder.interceptors.add(ClientRuntime.ContentTypeMiddleware(contentType: "application/json")) - builder.serialize(ClientRuntime.BodyMiddleware(rootNodeInfo: "", inputWritingClosure: PutLaunchProfileMembersInput.write(value:to:))) - builder.interceptors.add(ClientRuntime.ContentLengthMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(PutLaunchProfileMembersOutput.httpOutput(from:), PutLaunchProfileMembersOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "PutLaunchProfileMembers") - 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 `PutStudioMembers` operation on the `nimble` service. - /// - /// Add/update users with given persona to studio membership. - /// - /// - Parameter PutStudioMembersInput : [no documentation found] - /// - /// - Returns: `PutStudioMembersOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func putStudioMembers(input: PutStudioMembersInput) async throws -> PutStudioMembersOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .post) - .withServiceName(value: serviceName) - .withOperation(value: "putStudioMembers") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) - builder.interceptors.add(ClientRuntime.URLPathMiddleware(PutStudioMembersInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.HeaderMiddleware(PutStudioMembersInput.headerProvider(_:))) - builder.interceptors.add(ClientRuntime.ContentTypeMiddleware(contentType: "application/json")) - builder.serialize(ClientRuntime.BodyMiddleware(rootNodeInfo: "", inputWritingClosure: PutStudioMembersInput.write(value:to:))) - builder.interceptors.add(ClientRuntime.ContentLengthMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(PutStudioMembersOutput.httpOutput(from:), PutStudioMembersOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "PutStudioMembers") - 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 `StartStreamingSession` operation on the `nimble` service. - /// - /// Transitions sessions from the STOPPED state into the READY state. The START_IN_PROGRESS state is the intermediate state between the STOPPED and READY states. - /// - /// - Parameter StartStreamingSessionInput : [no documentation found] - /// - /// - Returns: `StartStreamingSessionOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func startStreamingSession(input: StartStreamingSessionInput) async throws -> StartStreamingSessionOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .post) - .withServiceName(value: serviceName) - .withOperation(value: "startStreamingSession") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) - builder.interceptors.add(ClientRuntime.URLPathMiddleware(StartStreamingSessionInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.HeaderMiddleware(StartStreamingSessionInput.headerProvider(_:))) - builder.interceptors.add(ClientRuntime.ContentTypeMiddleware(contentType: "application/json")) - builder.serialize(ClientRuntime.BodyMiddleware(rootNodeInfo: "", inputWritingClosure: StartStreamingSessionInput.write(value:to:))) - builder.interceptors.add(ClientRuntime.ContentLengthMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(StartStreamingSessionOutput.httpOutput(from:), StartStreamingSessionOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "StartStreamingSession") - 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 `StartStudioSSOConfigurationRepair` operation on the `nimble` service. - /// - /// Repairs the IAM Identity Center configuration for a given studio. If the studio has a valid IAM Identity Center configuration currently associated with it, this operation will fail with a validation error. If the studio does not have a valid IAM Identity Center configuration currently associated with it, then a new IAM Identity Center application is created for the studio and the studio is changed to the READY state. After the IAM Identity Center application is repaired, you must use the Amazon Nimble Studio console to add administrators and users to your studio. - /// - /// - Parameter StartStudioSSOConfigurationRepairInput : [no documentation found] - /// - /// - Returns: `StartStudioSSOConfigurationRepairOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func startStudioSSOConfigurationRepair(input: StartStudioSSOConfigurationRepairInput) async throws -> StartStudioSSOConfigurationRepairOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .put) - .withServiceName(value: serviceName) - .withOperation(value: "startStudioSSOConfigurationRepair") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) - builder.interceptors.add(ClientRuntime.URLPathMiddleware(StartStudioSSOConfigurationRepairInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.HeaderMiddleware(StartStudioSSOConfigurationRepairInput.headerProvider(_:))) - builder.deserialize(ClientRuntime.DeserializeMiddleware(StartStudioSSOConfigurationRepairOutput.httpOutput(from:), StartStudioSSOConfigurationRepairOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "StartStudioSSOConfigurationRepair") - 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 `StopStreamingSession` operation on the `nimble` service. - /// - /// Transitions sessions from the READY state into the STOPPED state. The STOP_IN_PROGRESS state is the intermediate state between the READY and STOPPED states. - /// - /// - Parameter StopStreamingSessionInput : [no documentation found] - /// - /// - Returns: `StopStreamingSessionOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func stopStreamingSession(input: StopStreamingSessionInput) async throws -> StopStreamingSessionOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .post) - .withServiceName(value: serviceName) - .withOperation(value: "stopStreamingSession") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) - builder.interceptors.add(ClientRuntime.URLPathMiddleware(StopStreamingSessionInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.HeaderMiddleware(StopStreamingSessionInput.headerProvider(_:))) - builder.interceptors.add(ClientRuntime.ContentTypeMiddleware(contentType: "application/json")) - builder.serialize(ClientRuntime.BodyMiddleware(rootNodeInfo: "", inputWritingClosure: StopStreamingSessionInput.write(value:to:))) - builder.interceptors.add(ClientRuntime.ContentLengthMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(StopStreamingSessionOutput.httpOutput(from:), StopStreamingSessionOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "StopStreamingSession") - 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 `TagResource` operation on the `nimble` service. - /// - /// Creates tags for a resource, given its ARN. - /// - /// - Parameter TagResourceInput : [no documentation found] - /// - /// - Returns: `TagResourceOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func tagResource(input: TagResourceInput) async throws -> TagResourceOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .post) - .withServiceName(value: serviceName) - .withOperation(value: "tagResource") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(TagResourceInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.interceptors.add(ClientRuntime.ContentTypeMiddleware(contentType: "application/json")) - builder.serialize(ClientRuntime.BodyMiddleware(rootNodeInfo: "", inputWritingClosure: TagResourceInput.write(value:to:))) - builder.interceptors.add(ClientRuntime.ContentLengthMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(TagResourceOutput.httpOutput(from:), TagResourceOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "TagResource") - 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 `UntagResource` operation on the `nimble` service. - /// - /// Deletes the tags for a resource. - /// - /// - Parameter UntagResourceInput : [no documentation found] - /// - /// - Returns: `UntagResourceOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func untagResource(input: UntagResourceInput) async throws -> UntagResourceOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .delete) - .withServiceName(value: serviceName) - .withOperation(value: "untagResource") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.URLPathMiddleware(UntagResourceInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.QueryItemMiddleware(UntagResourceInput.queryItemProvider(_:))) - builder.deserialize(ClientRuntime.DeserializeMiddleware(UntagResourceOutput.httpOutput(from:), UntagResourceOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "UntagResource") - 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 `UpdateLaunchProfile` operation on the `nimble` service. - /// - /// Update a launch profile. - /// - /// - Parameter UpdateLaunchProfileInput : [no documentation found] - /// - /// - Returns: `UpdateLaunchProfileOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func updateLaunchProfile(input: UpdateLaunchProfileInput) async throws -> UpdateLaunchProfileOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .patch) - .withServiceName(value: serviceName) - .withOperation(value: "updateLaunchProfile") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) - builder.interceptors.add(ClientRuntime.URLPathMiddleware(UpdateLaunchProfileInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.HeaderMiddleware(UpdateLaunchProfileInput.headerProvider(_:))) - builder.interceptors.add(ClientRuntime.ContentTypeMiddleware(contentType: "application/json")) - builder.serialize(ClientRuntime.BodyMiddleware(rootNodeInfo: "", inputWritingClosure: UpdateLaunchProfileInput.write(value:to:))) - builder.interceptors.add(ClientRuntime.ContentLengthMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(UpdateLaunchProfileOutput.httpOutput(from:), UpdateLaunchProfileOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "UpdateLaunchProfile") - 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 `UpdateLaunchProfileMember` operation on the `nimble` service. - /// - /// Update a user persona in launch profile membership. - /// - /// - Parameter UpdateLaunchProfileMemberInput : [no documentation found] - /// - /// - Returns: `UpdateLaunchProfileMemberOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func updateLaunchProfileMember(input: UpdateLaunchProfileMemberInput) async throws -> UpdateLaunchProfileMemberOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .patch) - .withServiceName(value: serviceName) - .withOperation(value: "updateLaunchProfileMember") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) - builder.interceptors.add(ClientRuntime.URLPathMiddleware(UpdateLaunchProfileMemberInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.HeaderMiddleware(UpdateLaunchProfileMemberInput.headerProvider(_:))) - builder.interceptors.add(ClientRuntime.ContentTypeMiddleware(contentType: "application/json")) - builder.serialize(ClientRuntime.BodyMiddleware(rootNodeInfo: "", inputWritingClosure: UpdateLaunchProfileMemberInput.write(value:to:))) - builder.interceptors.add(ClientRuntime.ContentLengthMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(UpdateLaunchProfileMemberOutput.httpOutput(from:), UpdateLaunchProfileMemberOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "UpdateLaunchProfileMember") - 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 `UpdateStreamingImage` operation on the `nimble` service. - /// - /// Update streaming image. - /// - /// - Parameter UpdateStreamingImageInput : [no documentation found] - /// - /// - Returns: `UpdateStreamingImageOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func updateStreamingImage(input: UpdateStreamingImageInput) async throws -> UpdateStreamingImageOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .patch) - .withServiceName(value: serviceName) - .withOperation(value: "updateStreamingImage") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) - builder.interceptors.add(ClientRuntime.URLPathMiddleware(UpdateStreamingImageInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.HeaderMiddleware(UpdateStreamingImageInput.headerProvider(_:))) - builder.interceptors.add(ClientRuntime.ContentTypeMiddleware(contentType: "application/json")) - builder.serialize(ClientRuntime.BodyMiddleware(rootNodeInfo: "", inputWritingClosure: UpdateStreamingImageInput.write(value:to:))) - builder.interceptors.add(ClientRuntime.ContentLengthMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(UpdateStreamingImageOutput.httpOutput(from:), UpdateStreamingImageOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "UpdateStreamingImage") - 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 `UpdateStudio` operation on the `nimble` service. - /// - /// Update a Studio resource. Currently, this operation only supports updating the displayName of your studio. - /// - /// - Parameter UpdateStudioInput : [no documentation found] - /// - /// - Returns: `UpdateStudioOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func updateStudio(input: UpdateStudioInput) async throws -> UpdateStudioOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .patch) - .withServiceName(value: serviceName) - .withOperation(value: "updateStudio") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) - builder.interceptors.add(ClientRuntime.URLPathMiddleware(UpdateStudioInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.HeaderMiddleware(UpdateStudioInput.headerProvider(_:))) - builder.interceptors.add(ClientRuntime.ContentTypeMiddleware(contentType: "application/json")) - builder.serialize(ClientRuntime.BodyMiddleware(rootNodeInfo: "", inputWritingClosure: UpdateStudioInput.write(value:to:))) - builder.interceptors.add(ClientRuntime.ContentLengthMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(UpdateStudioOutput.httpOutput(from:), UpdateStudioOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "UpdateStudio") - 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 `UpdateStudioComponent` operation on the `nimble` service. - /// - /// Updates a studio component resource. - /// - /// - Parameter UpdateStudioComponentInput : [no documentation found] - /// - /// - Returns: `UpdateStudioComponentOutput` : [no documentation found] - /// - /// - Throws: One of the exceptions listed below __Possible Exceptions__. - /// - /// __Possible Exceptions:__ - /// - `AccessDeniedException` : You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys. - /// - `ConflictException` : Another operation is in progress. - /// - `InternalServerErrorException` : An internal error has occurred. Please retry your request. - /// - `ResourceNotFoundException` : The specified resource could not be found. - /// - `ServiceQuotaExceededException` : Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased. Please use Amazon Web Services Service Quotas to request an increase. - /// - `ThrottlingException` : The request throughput limit was exceeded. - /// - `ValidationException` : One of the parameters in the request is invalid. - public func updateStudioComponent(input: UpdateStudioComponentInput) async throws -> UpdateStudioComponentOutput { - let context = Smithy.ContextBuilder() - .withMethod(value: .patch) - .withServiceName(value: serviceName) - .withOperation(value: "updateStudioComponent") - .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: "nimble") - .withSigningRegion(value: config.signingRegion) - .build() - let builder = ClientRuntime.OrchestratorBuilder() - config.interceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - config.httpInterceptorProviders.forEach { provider in - builder.interceptors.add(provider.create()) - } - builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware(keyPath: \.clientToken)) - builder.interceptors.add(ClientRuntime.URLPathMiddleware(UpdateStudioComponentInput.urlPathProvider(_:))) - builder.interceptors.add(ClientRuntime.URLHostMiddleware()) - builder.serialize(ClientRuntime.HeaderMiddleware(UpdateStudioComponentInput.headerProvider(_:))) - builder.interceptors.add(ClientRuntime.ContentTypeMiddleware(contentType: "application/json")) - builder.serialize(ClientRuntime.BodyMiddleware(rootNodeInfo: "", inputWritingClosure: UpdateStudioComponentInput.write(value:to:))) - builder.interceptors.add(ClientRuntime.ContentLengthMiddleware()) - builder.deserialize(ClientRuntime.DeserializeMiddleware(UpdateStudioComponentOutput.httpOutput(from:), UpdateStudioComponentOutputError.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, useDualStack: config.useDualStack ?? false, 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: "Nimble") - metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "UpdateStudioComponent") - 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) - } - -} diff --git a/Sources/Services/AWSNimble/Sources/AWSNimble/Plugins.swift b/Sources/Services/AWSNimble/Sources/AWSNimble/Plugins.swift deleted file mode 100644 index 1ca0f41a98b..00000000000 --- a/Sources/Services/AWSNimble/Sources/AWSNimble/Plugins.swift +++ /dev/null @@ -1,82 +0,0 @@ -// -// Copyright Amazon.com Inc. or its affiliates. -// All Rights Reserved. -// -// SPDX-License-Identifier: Apache-2.0 -// - -// Code generated by smithy-swift-codegen. DO NOT EDIT! - -import class AWSClientRuntime.AWSClientConfigDefaultsProvider -import protocol ClientRuntime.ClientConfiguration -import protocol ClientRuntime.Plugin -import protocol SmithyHTTPAuthAPI.AuthSchemeResolver -import protocol SmithyIdentity.AWSCredentialIdentityResolver -import protocol SmithyIdentity.BearerTokenIdentityResolver -import struct AWSSDKHTTPAuth.SigV4AuthScheme -import struct SmithyIdentity.BearerTokenIdentity -import struct SmithyIdentity.StaticBearerTokenIdentityResolver -import typealias SmithyHTTPAuthAPI.AuthSchemes - -public class NimbleClientEndpointPlugin: Plugin { - private var endpointResolver: EndpointResolver - - public init(endpointResolver: EndpointResolver) { - self.endpointResolver = endpointResolver - } - - public convenience init() throws { - self.init(endpointResolver: try DefaultEndpointResolver()) - } - - public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws { - if let config = clientConfiguration as? NimbleClient.NimbleClientConfiguration { - config.endpointResolver = self.endpointResolver - } - } -} - -public class DefaultAWSAuthSchemePlugin: ClientRuntime.Plugin { - - public init() {} - - public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws { - if let config = clientConfiguration as? NimbleClient.NimbleClientConfiguration { - config.authSchemeResolver = DefaultNimbleAuthSchemeResolver() - config.authSchemes = [AWSSDKHTTPAuth.SigV4AuthScheme()] - config.awsCredentialIdentityResolver = try AWSClientRuntime.AWSClientConfigDefaultsProvider.awsCredentialIdentityResolver() - config.bearerTokenIdentityResolver = SmithyIdentity.StaticBearerTokenIdentityResolver(token: SmithyIdentity.BearerTokenIdentity(token: "")) - } - } -} - -public class NimbleClientAuthSchemePlugin: ClientRuntime.Plugin { - private var authSchemes: SmithyHTTPAuthAPI.AuthSchemes? - private var authSchemeResolver: SmithyHTTPAuthAPI.AuthSchemeResolver? - private var awsCredentialIdentityResolver: (any SmithyIdentity.AWSCredentialIdentityResolver)? - private var bearerTokenIdentityResolver: (any SmithyIdentity.BearerTokenIdentityResolver)? - - public init(authSchemes: SmithyHTTPAuthAPI.AuthSchemes? = nil, authSchemeResolver: NimbleAuthSchemeResolver? = nil, awsCredentialIdentityResolver: (any SmithyIdentity.AWSCredentialIdentityResolver)? = nil, bearerTokenIdentityResolver: (any SmithyIdentity.BearerTokenIdentityResolver)? = nil) { - self.authSchemeResolver = authSchemeResolver - self.authSchemes = authSchemes - self.awsCredentialIdentityResolver = awsCredentialIdentityResolver - self.bearerTokenIdentityResolver = bearerTokenIdentityResolver - } - - public func configureClient(clientConfiguration: ClientRuntime.ClientConfiguration) throws { - if let config = clientConfiguration as? NimbleClient.NimbleClientConfiguration { - if (self.authSchemes != nil) { - config.authSchemes = self.authSchemes - } - if (self.authSchemeResolver != nil) { - config.authSchemeResolver = self.authSchemeResolver! - } - if (self.awsCredentialIdentityResolver != nil) { - config.awsCredentialIdentityResolver = self.awsCredentialIdentityResolver! - } - if (self.bearerTokenIdentityResolver != nil) { - config.bearerTokenIdentityResolver = self.bearerTokenIdentityResolver! - } - } - } -} diff --git a/Sources/Services/AWSNimble/Sources/AWSNimble/Resources/Package.version b/Sources/Services/AWSNimble/Sources/AWSNimble/Resources/Package.version deleted file mode 100644 index d3827e75a5c..00000000000 --- a/Sources/Services/AWSNimble/Sources/AWSNimble/Resources/Package.version +++ /dev/null @@ -1 +0,0 @@ -1.0 diff --git a/Sources/Services/AWSNimble/Sources/AWSNimble/Waiters.swift b/Sources/Services/AWSNimble/Sources/AWSNimble/Waiters.swift deleted file mode 100644 index b0d930f2524..00000000000 --- a/Sources/Services/AWSNimble/Sources/AWSNimble/Waiters.swift +++ /dev/null @@ -1,13 +0,0 @@ -// -// Copyright Amazon.com Inc. or its affiliates. -// All Rights Reserved. -// -// SPDX-License-Identifier: Apache-2.0 -// - -// Code generated by smithy-swift-codegen. DO NOT EDIT! - - - -extension NimbleClient { -} diff --git a/Sources/Services/AWSNimble/Tests/AWSNimbleTests/EndpointResolverTest.swift b/Sources/Services/AWSNimble/Tests/AWSNimbleTests/EndpointResolverTest.swift deleted file mode 100644 index a2ad4f60047..00000000000 --- a/Sources/Services/AWSNimble/Tests/AWSNimbleTests/EndpointResolverTest.swift +++ /dev/null @@ -1,616 +0,0 @@ -// -// Copyright Amazon.com Inc. or its affiliates. -// All Rights Reserved. -// -// SPDX-License-Identifier: Apache-2.0 -// - -// Code generated by smithy-swift-codegen. DO NOT EDIT! - -@testable import AWSNimble -import SmithyTestUtil -import XCTest -import enum ClientRuntime.EndpointError -import struct SmithyHTTPAPI.Endpoint -import struct SmithyHTTPAPI.Headers - -class EndpointResolverTest: XCTestCase { - - override class func setUp() { - SmithyTestUtil.TestInitializer.initialize() - } - - /// For region ap-northeast-1 with FIPS disabled and DualStack disabled - func testResolve1() throws { - let endpointParams = EndpointParams( - region: "ap-northeast-1", - useDualStack: false, - useFIPS: false - ) - let resolver = try DefaultEndpointResolver() - - let actual = try resolver.resolve(params: endpointParams) - - let properties: [String: AnyHashable] = - [:] - - let headers = SmithyHTTPAPI.Headers() - let expected = try SmithyHTTPAPI.Endpoint(urlString: "https://nimble.ap-northeast-1.amazonaws.com", headers: headers, properties: properties) - - XCTAssertEqual(expected, actual) - } - - /// For region ap-southeast-2 with FIPS disabled and DualStack disabled - func testResolve2() throws { - let endpointParams = EndpointParams( - region: "ap-southeast-2", - useDualStack: false, - useFIPS: false - ) - let resolver = try DefaultEndpointResolver() - - let actual = try resolver.resolve(params: endpointParams) - - let properties: [String: AnyHashable] = - [:] - - let headers = SmithyHTTPAPI.Headers() - let expected = try SmithyHTTPAPI.Endpoint(urlString: "https://nimble.ap-southeast-2.amazonaws.com", headers: headers, properties: properties) - - XCTAssertEqual(expected, actual) - } - - /// For region ca-central-1 with FIPS disabled and DualStack disabled - func testResolve3() throws { - let endpointParams = EndpointParams( - region: "ca-central-1", - useDualStack: false, - useFIPS: false - ) - let resolver = try DefaultEndpointResolver() - - let actual = try resolver.resolve(params: endpointParams) - - let properties: [String: AnyHashable] = - [:] - - let headers = SmithyHTTPAPI.Headers() - let expected = try SmithyHTTPAPI.Endpoint(urlString: "https://nimble.ca-central-1.amazonaws.com", headers: headers, properties: properties) - - XCTAssertEqual(expected, actual) - } - - /// For region eu-west-2 with FIPS disabled and DualStack disabled - func testResolve4() throws { - let endpointParams = EndpointParams( - region: "eu-west-2", - useDualStack: false, - useFIPS: false - ) - let resolver = try DefaultEndpointResolver() - - let actual = try resolver.resolve(params: endpointParams) - - let properties: [String: AnyHashable] = - [:] - - let headers = SmithyHTTPAPI.Headers() - let expected = try SmithyHTTPAPI.Endpoint(urlString: "https://nimble.eu-west-2.amazonaws.com", headers: headers, properties: properties) - - XCTAssertEqual(expected, actual) - } - - /// For region us-east-1 with FIPS disabled and DualStack disabled - func testResolve5() throws { - let endpointParams = EndpointParams( - region: "us-east-1", - useDualStack: false, - useFIPS: false - ) - let resolver = try DefaultEndpointResolver() - - let actual = try resolver.resolve(params: endpointParams) - - let properties: [String: AnyHashable] = - [:] - - let headers = SmithyHTTPAPI.Headers() - let expected = try SmithyHTTPAPI.Endpoint(urlString: "https://nimble.us-east-1.amazonaws.com", headers: headers, properties: properties) - - XCTAssertEqual(expected, actual) - } - - /// For region us-west-2 with FIPS disabled and DualStack disabled - func testResolve6() throws { - let endpointParams = EndpointParams( - region: "us-west-2", - useDualStack: false, - useFIPS: false - ) - let resolver = try DefaultEndpointResolver() - - let actual = try resolver.resolve(params: endpointParams) - - let properties: [String: AnyHashable] = - [:] - - let headers = SmithyHTTPAPI.Headers() - let expected = try SmithyHTTPAPI.Endpoint(urlString: "https://nimble.us-west-2.amazonaws.com", headers: headers, properties: properties) - - XCTAssertEqual(expected, actual) - } - - /// For region us-east-1 with FIPS enabled and DualStack enabled - func testResolve7() throws { - let endpointParams = EndpointParams( - region: "us-east-1", - useDualStack: true, - useFIPS: true - ) - let resolver = try DefaultEndpointResolver() - - let actual = try resolver.resolve(params: endpointParams) - - let properties: [String: AnyHashable] = - [:] - - let headers = SmithyHTTPAPI.Headers() - let expected = try SmithyHTTPAPI.Endpoint(urlString: "https://nimble-fips.us-east-1.api.aws", headers: headers, properties: properties) - - XCTAssertEqual(expected, actual) - } - - /// For region us-east-1 with FIPS enabled and DualStack disabled - func testResolve8() throws { - let endpointParams = EndpointParams( - region: "us-east-1", - useDualStack: false, - useFIPS: true - ) - let resolver = try DefaultEndpointResolver() - - let actual = try resolver.resolve(params: endpointParams) - - let properties: [String: AnyHashable] = - [:] - - let headers = SmithyHTTPAPI.Headers() - let expected = try SmithyHTTPAPI.Endpoint(urlString: "https://nimble-fips.us-east-1.amazonaws.com", headers: headers, properties: properties) - - XCTAssertEqual(expected, actual) - } - - /// For region us-east-1 with FIPS disabled and DualStack enabled - func testResolve9() throws { - let endpointParams = EndpointParams( - region: "us-east-1", - useDualStack: true, - useFIPS: false - ) - let resolver = try DefaultEndpointResolver() - - let actual = try resolver.resolve(params: endpointParams) - - let properties: [String: AnyHashable] = - [:] - - let headers = SmithyHTTPAPI.Headers() - let expected = try SmithyHTTPAPI.Endpoint(urlString: "https://nimble.us-east-1.api.aws", headers: headers, properties: properties) - - XCTAssertEqual(expected, actual) - } - - /// For region cn-north-1 with FIPS enabled and DualStack enabled - func testResolve10() throws { - let endpointParams = EndpointParams( - region: "cn-north-1", - useDualStack: true, - useFIPS: true - ) - let resolver = try DefaultEndpointResolver() - - let actual = try resolver.resolve(params: endpointParams) - - let properties: [String: AnyHashable] = - [:] - - let headers = SmithyHTTPAPI.Headers() - let expected = try SmithyHTTPAPI.Endpoint(urlString: "https://nimble-fips.cn-north-1.api.amazonwebservices.com.cn", headers: headers, properties: properties) - - XCTAssertEqual(expected, actual) - } - - /// For region cn-north-1 with FIPS enabled and DualStack disabled - func testResolve11() throws { - let endpointParams = EndpointParams( - region: "cn-north-1", - useDualStack: false, - useFIPS: true - ) - let resolver = try DefaultEndpointResolver() - - let actual = try resolver.resolve(params: endpointParams) - - let properties: [String: AnyHashable] = - [:] - - let headers = SmithyHTTPAPI.Headers() - let expected = try SmithyHTTPAPI.Endpoint(urlString: "https://nimble-fips.cn-north-1.amazonaws.com.cn", headers: headers, properties: properties) - - XCTAssertEqual(expected, actual) - } - - /// For region cn-north-1 with FIPS disabled and DualStack enabled - func testResolve12() throws { - let endpointParams = EndpointParams( - region: "cn-north-1", - useDualStack: true, - useFIPS: false - ) - let resolver = try DefaultEndpointResolver() - - let actual = try resolver.resolve(params: endpointParams) - - let properties: [String: AnyHashable] = - [:] - - let headers = SmithyHTTPAPI.Headers() - let expected = try SmithyHTTPAPI.Endpoint(urlString: "https://nimble.cn-north-1.api.amazonwebservices.com.cn", headers: headers, properties: properties) - - XCTAssertEqual(expected, actual) - } - - /// For region cn-north-1 with FIPS disabled and DualStack disabled - func testResolve13() throws { - let endpointParams = EndpointParams( - region: "cn-north-1", - useDualStack: false, - useFIPS: false - ) - let resolver = try DefaultEndpointResolver() - - let actual = try resolver.resolve(params: endpointParams) - - let properties: [String: AnyHashable] = - [:] - - let headers = SmithyHTTPAPI.Headers() - let expected = try SmithyHTTPAPI.Endpoint(urlString: "https://nimble.cn-north-1.amazonaws.com.cn", headers: headers, properties: properties) - - XCTAssertEqual(expected, actual) - } - - /// For region us-gov-east-1 with FIPS enabled and DualStack enabled - func testResolve14() throws { - let endpointParams = EndpointParams( - region: "us-gov-east-1", - useDualStack: true, - useFIPS: true - ) - let resolver = try DefaultEndpointResolver() - - let actual = try resolver.resolve(params: endpointParams) - - let properties: [String: AnyHashable] = - [:] - - let headers = SmithyHTTPAPI.Headers() - let expected = try SmithyHTTPAPI.Endpoint(urlString: "https://nimble-fips.us-gov-east-1.api.aws", headers: headers, properties: properties) - - XCTAssertEqual(expected, actual) - } - - /// For region us-gov-east-1 with FIPS enabled and DualStack disabled - func testResolve15() throws { - let endpointParams = EndpointParams( - region: "us-gov-east-1", - useDualStack: false, - useFIPS: true - ) - let resolver = try DefaultEndpointResolver() - - let actual = try resolver.resolve(params: endpointParams) - - let properties: [String: AnyHashable] = - [:] - - let headers = SmithyHTTPAPI.Headers() - let expected = try SmithyHTTPAPI.Endpoint(urlString: "https://nimble-fips.us-gov-east-1.amazonaws.com", headers: headers, properties: properties) - - XCTAssertEqual(expected, actual) - } - - /// For region us-gov-east-1 with FIPS disabled and DualStack enabled - func testResolve16() throws { - let endpointParams = EndpointParams( - region: "us-gov-east-1", - useDualStack: true, - useFIPS: false - ) - let resolver = try DefaultEndpointResolver() - - let actual = try resolver.resolve(params: endpointParams) - - let properties: [String: AnyHashable] = - [:] - - let headers = SmithyHTTPAPI.Headers() - let expected = try SmithyHTTPAPI.Endpoint(urlString: "https://nimble.us-gov-east-1.api.aws", headers: headers, properties: properties) - - XCTAssertEqual(expected, actual) - } - - /// For region us-gov-east-1 with FIPS disabled and DualStack disabled - func testResolve17() throws { - let endpointParams = EndpointParams( - region: "us-gov-east-1", - useDualStack: false, - useFIPS: false - ) - let resolver = try DefaultEndpointResolver() - - let actual = try resolver.resolve(params: endpointParams) - - let properties: [String: AnyHashable] = - [:] - - let headers = SmithyHTTPAPI.Headers() - let expected = try SmithyHTTPAPI.Endpoint(urlString: "https://nimble.us-gov-east-1.amazonaws.com", headers: headers, properties: properties) - - XCTAssertEqual(expected, actual) - } - - /// For region us-iso-east-1 with FIPS enabled and DualStack enabled - func testResolve18() throws { - let endpointParams = EndpointParams( - region: "us-iso-east-1", - useDualStack: true, - useFIPS: true - ) - let resolver = try DefaultEndpointResolver() - - XCTAssertThrowsError(try resolver.resolve(params: endpointParams)) { error in - switch error { - case ClientRuntime.EndpointError.unresolved(let message): - XCTAssertEqual("FIPS and DualStack are enabled, but this partition does not support one or both", message) - default: - XCTFail() - } - } - } - - /// For region us-iso-east-1 with FIPS enabled and DualStack disabled - func testResolve19() throws { - let endpointParams = EndpointParams( - region: "us-iso-east-1", - useDualStack: false, - useFIPS: true - ) - let resolver = try DefaultEndpointResolver() - - let actual = try resolver.resolve(params: endpointParams) - - let properties: [String: AnyHashable] = - [:] - - let headers = SmithyHTTPAPI.Headers() - let expected = try SmithyHTTPAPI.Endpoint(urlString: "https://nimble-fips.us-iso-east-1.c2s.ic.gov", headers: headers, properties: properties) - - XCTAssertEqual(expected, actual) - } - - /// For region us-iso-east-1 with FIPS disabled and DualStack enabled - func testResolve20() throws { - let endpointParams = EndpointParams( - region: "us-iso-east-1", - useDualStack: true, - useFIPS: false - ) - let resolver = try DefaultEndpointResolver() - - XCTAssertThrowsError(try resolver.resolve(params: endpointParams)) { error in - switch error { - case ClientRuntime.EndpointError.unresolved(let message): - XCTAssertEqual("DualStack is enabled but this partition does not support DualStack", message) - default: - XCTFail() - } - } - } - - /// For region us-iso-east-1 with FIPS disabled and DualStack disabled - func testResolve21() throws { - let endpointParams = EndpointParams( - region: "us-iso-east-1", - useDualStack: false, - useFIPS: false - ) - let resolver = try DefaultEndpointResolver() - - let actual = try resolver.resolve(params: endpointParams) - - let properties: [String: AnyHashable] = - [:] - - let headers = SmithyHTTPAPI.Headers() - let expected = try SmithyHTTPAPI.Endpoint(urlString: "https://nimble.us-iso-east-1.c2s.ic.gov", headers: headers, properties: properties) - - XCTAssertEqual(expected, actual) - } - - /// For region us-isob-east-1 with FIPS enabled and DualStack enabled - func testResolve22() throws { - let endpointParams = EndpointParams( - region: "us-isob-east-1", - useDualStack: true, - useFIPS: true - ) - let resolver = try DefaultEndpointResolver() - - XCTAssertThrowsError(try resolver.resolve(params: endpointParams)) { error in - switch error { - case ClientRuntime.EndpointError.unresolved(let message): - XCTAssertEqual("FIPS and DualStack are enabled, but this partition does not support one or both", message) - default: - XCTFail() - } - } - } - - /// For region us-isob-east-1 with FIPS enabled and DualStack disabled - func testResolve23() throws { - let endpointParams = EndpointParams( - region: "us-isob-east-1", - useDualStack: false, - useFIPS: true - ) - let resolver = try DefaultEndpointResolver() - - let actual = try resolver.resolve(params: endpointParams) - - let properties: [String: AnyHashable] = - [:] - - let headers = SmithyHTTPAPI.Headers() - let expected = try SmithyHTTPAPI.Endpoint(urlString: "https://nimble-fips.us-isob-east-1.sc2s.sgov.gov", headers: headers, properties: properties) - - XCTAssertEqual(expected, actual) - } - - /// For region us-isob-east-1 with FIPS disabled and DualStack enabled - func testResolve24() throws { - let endpointParams = EndpointParams( - region: "us-isob-east-1", - useDualStack: true, - useFIPS: false - ) - let resolver = try DefaultEndpointResolver() - - XCTAssertThrowsError(try resolver.resolve(params: endpointParams)) { error in - switch error { - case ClientRuntime.EndpointError.unresolved(let message): - XCTAssertEqual("DualStack is enabled but this partition does not support DualStack", message) - default: - XCTFail() - } - } - } - - /// For region us-isob-east-1 with FIPS disabled and DualStack disabled - func testResolve25() throws { - let endpointParams = EndpointParams( - region: "us-isob-east-1", - useDualStack: false, - useFIPS: false - ) - let resolver = try DefaultEndpointResolver() - - let actual = try resolver.resolve(params: endpointParams) - - let properties: [String: AnyHashable] = - [:] - - let headers = SmithyHTTPAPI.Headers() - let expected = try SmithyHTTPAPI.Endpoint(urlString: "https://nimble.us-isob-east-1.sc2s.sgov.gov", headers: headers, properties: properties) - - XCTAssertEqual(expected, actual) - } - - /// For custom endpoint with region set and fips disabled and dualstack disabled - func testResolve26() throws { - let endpointParams = EndpointParams( - endpoint: "https://example.com", - region: "us-east-1", - useDualStack: false, - useFIPS: false - ) - let resolver = try DefaultEndpointResolver() - - let actual = try resolver.resolve(params: endpointParams) - - let properties: [String: AnyHashable] = - [:] - - let headers = SmithyHTTPAPI.Headers() - let expected = try SmithyHTTPAPI.Endpoint(urlString: "https://example.com", headers: headers, properties: properties) - - XCTAssertEqual(expected, actual) - } - - /// For custom endpoint with region not set and fips disabled and dualstack disabled - func testResolve27() throws { - let endpointParams = EndpointParams( - endpoint: "https://example.com", - useDualStack: false, - useFIPS: false - ) - let resolver = try DefaultEndpointResolver() - - let actual = try resolver.resolve(params: endpointParams) - - let properties: [String: AnyHashable] = - [:] - - let headers = SmithyHTTPAPI.Headers() - let expected = try SmithyHTTPAPI.Endpoint(urlString: "https://example.com", headers: headers, properties: properties) - - XCTAssertEqual(expected, actual) - } - - /// For custom endpoint with fips enabled and dualstack disabled - func testResolve28() throws { - let endpointParams = EndpointParams( - endpoint: "https://example.com", - region: "us-east-1", - useDualStack: false, - useFIPS: true - ) - let resolver = try DefaultEndpointResolver() - - XCTAssertThrowsError(try resolver.resolve(params: endpointParams)) { error in - switch error { - case ClientRuntime.EndpointError.unresolved(let message): - XCTAssertEqual("Invalid Configuration: FIPS and custom endpoint are not supported", message) - default: - XCTFail() - } - } - } - - /// For custom endpoint with fips disabled and dualstack enabled - func testResolve29() throws { - let endpointParams = EndpointParams( - endpoint: "https://example.com", - region: "us-east-1", - useDualStack: true, - useFIPS: false - ) - let resolver = try DefaultEndpointResolver() - - XCTAssertThrowsError(try resolver.resolve(params: endpointParams)) { error in - switch error { - case ClientRuntime.EndpointError.unresolved(let message): - XCTAssertEqual("Invalid Configuration: Dualstack and custom endpoint are not supported", message) - default: - XCTFail() - } - } - } - - /// Missing region - func testResolve30() throws { - let endpointParams = EndpointParams( - ) - let resolver = try DefaultEndpointResolver() - - XCTAssertThrowsError(try resolver.resolve(params: endpointParams)) { error in - switch error { - case ClientRuntime.EndpointError.unresolved(let message): - XCTAssertEqual("Invalid Configuration: Missing Region", message) - default: - XCTFail() - } - } - } - -} diff --git a/Sources/Services/AWSPCS/Sources/AWSPCS/Models.swift b/Sources/Services/AWSPCS/Sources/AWSPCS/Models.swift index a2f5aad427d..a7ee401e00c 100644 --- a/Sources/Services/AWSPCS/Sources/AWSPCS/Models.swift +++ b/Sources/Services/AWSPCS/Sources/AWSPCS/Models.swift @@ -1157,7 +1157,7 @@ extension PCSClientTypes { /// Additional options related to the Slurm scheduler. public struct ClusterSlurmConfigurationRequest: Swift.Sendable { - /// The time before an idle node is scaled down. + /// The time (in seconds) before an idle node is scaled down. Default: 600 public var scaleDownIdleTimeInSeconds: Swift.Int? /// Additional Slurm-specific configuration that directly maps to Slurm settings. public var slurmCustomSettings: [PCSClientTypes.SlurmCustomSetting]? @@ -1379,7 +1379,7 @@ extension PCSClientTypes { public struct ClusterSlurmConfiguration: Swift.Sendable { /// The shared Slurm key for authentication, also known as the cluster secret. public var authKey: PCSClientTypes.SlurmAuthKey? - /// The time before an idle node is scaled down. + /// The time (in seconds) before an idle node is scaled down. Default: 600 public var scaleDownIdleTimeInSeconds: Swift.Int? /// Additional Slurm-specific configuration that directly maps to Slurm settings. public var slurmCustomSettings: [PCSClientTypes.SlurmCustomSetting]? diff --git a/Sources/Services/AWSQBusiness/Sources/AWSQBusiness/Models.swift b/Sources/Services/AWSQBusiness/Sources/AWSQBusiness/Models.swift index 93954239259..b6320daec7b 100644 --- a/Sources/Services/AWSQBusiness/Sources/AWSQBusiness/Models.swift +++ b/Sources/Services/AWSQBusiness/Sources/AWSQBusiness/Models.swift @@ -398,6 +398,8 @@ extension QBusinessClientTypes { public var allowedFormat: Swift.String? /// Information about the field values that an end user can use to provide to Amazon Q Business for Amazon Q Business to perform the requested plugin action. public var allowedValues: [QBusinessClientTypes.ActionReviewPayloadFieldAllowedValue]? + /// Use to create a custom form with array fields (fields with nested objects inside an array). + public var arrayItemJsonSchema: Smithy.Document? /// The field level description of each action review input field. This could be an explanation of the field. In the Amazon Q Business web experience, these descriptions could be used to display as tool tips to help users understand the field. public var displayDescription: Swift.String? /// The name of the field. @@ -414,6 +416,7 @@ extension QBusinessClientTypes { public init( allowedFormat: Swift.String? = nil, allowedValues: [QBusinessClientTypes.ActionReviewPayloadFieldAllowedValue]? = nil, + arrayItemJsonSchema: Smithy.Document? = nil, displayDescription: Swift.String? = nil, displayName: Swift.String? = nil, displayOrder: Swift.Int? = nil, @@ -424,6 +427,7 @@ extension QBusinessClientTypes { { self.allowedFormat = allowedFormat self.allowedValues = allowedValues + self.arrayItemJsonSchema = arrayItemJsonSchema self.displayDescription = displayDescription self.displayName = displayName self.displayOrder = displayOrder @@ -10111,6 +10115,7 @@ extension QBusinessClientTypes.ActionReviewPayloadField { value.value = try reader["value"].readIfPresent() value.allowedValues = try reader["allowedValues"].readListIfPresent(memberReadingClosure: QBusinessClientTypes.ActionReviewPayloadFieldAllowedValue.read(from:), memberNodeInfo: "member", isFlattened: false) value.allowedFormat = try reader["allowedFormat"].readIfPresent() + value.arrayItemJsonSchema = try reader["arrayItemJsonSchema"].readIfPresent() value.`required` = try reader["required"].readIfPresent() return value } diff --git a/packageDependencies.plist b/packageDependencies.plist index c89d3b5f093..b3b30e4df80 100644 --- a/packageDependencies.plist +++ b/packageDependencies.plist @@ -9,6 +9,6 @@ clientRuntimeBranch main clientRuntimeVersion - 0.83.0 + 0.84.0