commonMain.aws.sdk.kotlin.services.appstream.DefaultAppStreamClient.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appstream-jvm Show documentation
Show all versions of appstream-jvm Show documentation
The AWS SDK for Kotlin client for AppStream
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appstream
import aws.sdk.kotlin.runtime.client.AwsClientOption
import aws.sdk.kotlin.runtime.http.ApiMetadata
import aws.sdk.kotlin.runtime.http.AwsUserAgentMetadata
import aws.sdk.kotlin.runtime.http.middleware.AwsRetryHeaderMiddleware
import aws.sdk.kotlin.runtime.http.middleware.RecursionDetection
import aws.sdk.kotlin.runtime.http.middleware.UserAgent
import aws.sdk.kotlin.services.appstream.auth.AuthSchemeProviderAdapter
import aws.sdk.kotlin.services.appstream.auth.IdentityProviderConfigAdapter
import aws.sdk.kotlin.services.appstream.endpoints.internal.EndpointResolverAdapter
import aws.sdk.kotlin.services.appstream.model.*
import aws.sdk.kotlin.services.appstream.transform.*
import aws.smithy.kotlin.runtime.auth.AuthSchemeId
import aws.smithy.kotlin.runtime.auth.awssigning.AwsSigningAttributes
import aws.smithy.kotlin.runtime.auth.awssigning.DefaultAwsSigner
import aws.smithy.kotlin.runtime.awsprotocol.json.AwsJsonProtocol
import aws.smithy.kotlin.runtime.client.SdkClientOption
import aws.smithy.kotlin.runtime.http.SdkHttpClient
import aws.smithy.kotlin.runtime.http.auth.HttpAuthScheme
import aws.smithy.kotlin.runtime.http.auth.SigV4AuthScheme
import aws.smithy.kotlin.runtime.http.operation.OperationAuthConfig
import aws.smithy.kotlin.runtime.http.operation.SdkHttpOperation
import aws.smithy.kotlin.runtime.http.operation.context
import aws.smithy.kotlin.runtime.http.operation.roundTrip
import aws.smithy.kotlin.runtime.http.operation.sdkRequestId
import aws.smithy.kotlin.runtime.io.SdkManagedGroup
import aws.smithy.kotlin.runtime.io.addIfManaged
import aws.smithy.kotlin.runtime.operation.ExecutionContext
import aws.smithy.kotlin.runtime.tracing.withRootTraceSpan
import aws.smithy.kotlin.runtime.util.putIfAbsent
import kotlin.coroutines.coroutineContext
public const val ServiceId: String = "AppStream"
public const val ServiceApiVersion: String = "2016-12-01"
public const val SdkVersion: String = "0.25.0-beta"
internal class DefaultAppStreamClient(override val config: AppStreamClient.Config) : AppStreamClient {
private val managedResources = SdkManagedGroup()
private val client = SdkHttpClient(config.httpClient)
private val identityProviderConfig = IdentityProviderConfigAdapter(config)
private val configuredAuthSchemes = with(config.authSchemes.associateBy(HttpAuthScheme::schemeId).toMutableMap()){
getOrPut(AuthSchemeId.AwsSigV4){
SigV4AuthScheme(DefaultAwsSigner, "appstream")
}
toMap()
}
init {
managedResources.addIfManaged(config.httpClient)
managedResources.addIfManaged(config.credentialsProvider)
}
private val awsUserAgentMetadata = AwsUserAgentMetadata.fromEnvironment(ApiMetadata(ServiceId, SdkVersion))
/**
* Associates the specified application with the specified fleet. This is only supported for Elastic fleets.
*/
override suspend fun associateApplicationFleet(input: AssociateApplicationFleetRequest): AssociateApplicationFleetResponse {
val op = SdkHttpOperation.build {
serializer = AssociateApplicationFleetOperationSerializer()
deserializer = AssociateApplicationFleetOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "AssociateApplicationFleet"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("AssociateApplicationFleet-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Associates an application to entitle.
*/
override suspend fun associateApplicationToEntitlement(input: AssociateApplicationToEntitlementRequest): AssociateApplicationToEntitlementResponse {
val op = SdkHttpOperation.build {
serializer = AssociateApplicationToEntitlementOperationSerializer()
deserializer = AssociateApplicationToEntitlementOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "AssociateApplicationToEntitlement"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("AssociateApplicationToEntitlement-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Associates the specified fleet with the specified stack.
*/
override suspend fun associateFleet(input: AssociateFleetRequest): AssociateFleetResponse {
val op = SdkHttpOperation.build {
serializer = AssociateFleetOperationSerializer()
deserializer = AssociateFleetOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "AssociateFleet"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("AssociateFleet-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Associates the specified users with the specified stacks. Users in a user pool cannot be assigned to stacks with fleets that are joined to an Active Directory domain.
*/
override suspend fun batchAssociateUserStack(input: BatchAssociateUserStackRequest): BatchAssociateUserStackResponse {
val op = SdkHttpOperation.build {
serializer = BatchAssociateUserStackOperationSerializer()
deserializer = BatchAssociateUserStackOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "BatchAssociateUserStack"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("BatchAssociateUserStack-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Disassociates the specified users from the specified stacks.
*/
override suspend fun batchDisassociateUserStack(input: BatchDisassociateUserStackRequest): BatchDisassociateUserStackResponse {
val op = SdkHttpOperation.build {
serializer = BatchDisassociateUserStackOperationSerializer()
deserializer = BatchDisassociateUserStackOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "BatchDisassociateUserStack"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("BatchDisassociateUserStack-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Copies the image within the same region or to a new region within the same AWS account. Note that any tags you added to the image will not be copied.
*/
override suspend fun copyImage(input: CopyImageRequest): CopyImageResponse {
val op = SdkHttpOperation.build {
serializer = CopyImageOperationSerializer()
deserializer = CopyImageOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "CopyImage"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("CopyImage-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Creates an app block.
*
* App blocks are an Amazon AppStream 2.0 resource that stores the details about the virtual hard disk in an S3 bucket. It also stores the setup script with details about how to mount the virtual hard disk. The virtual hard disk includes the application binaries and other files necessary to launch your applications. Multiple applications can be assigned to a single app block.
*
* This is only supported for Elastic fleets.
*/
override suspend fun createAppBlock(input: CreateAppBlockRequest): CreateAppBlockResponse {
val op = SdkHttpOperation.build {
serializer = CreateAppBlockOperationSerializer()
deserializer = CreateAppBlockOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "CreateAppBlock"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("CreateAppBlock-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Creates an application.
*
* Applications are an Amazon AppStream 2.0 resource that stores the details about how to launch applications on Elastic fleet streaming instances. An application consists of the launch details, icon, and display name. Applications are associated with an app block that contains the application binaries and other files. The applications assigned to an Elastic fleet are the applications users can launch.
*
* This is only supported for Elastic fleets.
*/
override suspend fun createApplication(input: CreateApplicationRequest): CreateApplicationResponse {
val op = SdkHttpOperation.build {
serializer = CreateApplicationOperationSerializer()
deserializer = CreateApplicationOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "CreateApplication"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("CreateApplication-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Creates a Directory Config object in AppStream 2.0. This object includes the configuration information required to join fleets and image builders to Microsoft Active Directory domains.
*/
override suspend fun createDirectoryConfig(input: CreateDirectoryConfigRequest): CreateDirectoryConfigResponse {
val op = SdkHttpOperation.build {
serializer = CreateDirectoryConfigOperationSerializer()
deserializer = CreateDirectoryConfigOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "CreateDirectoryConfig"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("CreateDirectoryConfig-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Creates a new entitlement. Entitlements control access to specific applications within a stack, based on user attributes. Entitlements apply to SAML 2.0 federated user identities. Amazon AppStream 2.0 user pool and streaming URL users are entitled to all applications in a stack. Entitlements don't apply to the desktop stream view application, or to applications managed by a dynamic app provider using the Dynamic Application Framework.
*/
override suspend fun createEntitlement(input: CreateEntitlementRequest): CreateEntitlementResponse {
val op = SdkHttpOperation.build {
serializer = CreateEntitlementOperationSerializer()
deserializer = CreateEntitlementOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "CreateEntitlement"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("CreateEntitlement-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Creates a fleet. A fleet consists of streaming instances that your users access for their applications and desktops.
*/
override suspend fun createFleet(input: CreateFleetRequest): CreateFleetResponse {
val op = SdkHttpOperation.build {
serializer = CreateFleetOperationSerializer()
deserializer = CreateFleetOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "CreateFleet"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("CreateFleet-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Creates an image builder. An image builder is a virtual machine that is used to create an image.
*
* The initial state of the builder is `PENDING`. When it is ready, the state is `RUNNING`.
*/
override suspend fun createImageBuilder(input: CreateImageBuilderRequest): CreateImageBuilderResponse {
val op = SdkHttpOperation.build {
serializer = CreateImageBuilderOperationSerializer()
deserializer = CreateImageBuilderOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "CreateImageBuilder"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("CreateImageBuilder-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Creates a URL to start an image builder streaming session.
*/
override suspend fun createImageBuilderStreamingUrl(input: CreateImageBuilderStreamingUrlRequest): CreateImageBuilderStreamingUrlResponse {
val op = SdkHttpOperation.build {
serializer = CreateImageBuilderStreamingURLOperationSerializer()
deserializer = CreateImageBuilderStreamingURLOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "CreateImageBuilderStreamingURL"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("CreateImageBuilderStreamingURL-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Creates a stack to start streaming applications to users. A stack consists of an associated fleet, user access policies, and storage configurations.
*/
override suspend fun createStack(input: CreateStackRequest): CreateStackResponse {
val op = SdkHttpOperation.build {
serializer = CreateStackOperationSerializer()
deserializer = CreateStackOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "CreateStack"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("CreateStack-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Creates a temporary URL to start an AppStream 2.0 streaming session for the specified user. A streaming URL enables application streaming to be tested without user setup.
*/
override suspend fun createStreamingUrl(input: CreateStreamingUrlRequest): CreateStreamingUrlResponse {
val op = SdkHttpOperation.build {
serializer = CreateStreamingURLOperationSerializer()
deserializer = CreateStreamingURLOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "CreateStreamingURL"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("CreateStreamingURL-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Creates a new image with the latest Windows operating system updates, driver updates, and AppStream 2.0 agent software.
*
* For more information, see the "Update an Image by Using Managed AppStream 2.0 Image Updates" section in [Administer Your AppStream 2.0 Images](https://docs.aws.amazon.com/appstream2/latest/developerguide/administer-images.html), in the *Amazon AppStream 2.0 Administration Guide*.
*/
override suspend fun createUpdatedImage(input: CreateUpdatedImageRequest): CreateUpdatedImageResponse {
val op = SdkHttpOperation.build {
serializer = CreateUpdatedImageOperationSerializer()
deserializer = CreateUpdatedImageOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "CreateUpdatedImage"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("CreateUpdatedImage-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Creates a usage report subscription. Usage reports are generated daily.
*/
override suspend fun createUsageReportSubscription(input: CreateUsageReportSubscriptionRequest): CreateUsageReportSubscriptionResponse {
val op = SdkHttpOperation.build {
serializer = CreateUsageReportSubscriptionOperationSerializer()
deserializer = CreateUsageReportSubscriptionOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "CreateUsageReportSubscription"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("CreateUsageReportSubscription-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Creates a new user in the user pool.
*/
override suspend fun createUser(input: CreateUserRequest): CreateUserResponse {
val op = SdkHttpOperation.build {
serializer = CreateUserOperationSerializer()
deserializer = CreateUserOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "CreateUser"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("CreateUser-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Deletes an app block.
*/
override suspend fun deleteAppBlock(input: DeleteAppBlockRequest): DeleteAppBlockResponse {
val op = SdkHttpOperation.build {
serializer = DeleteAppBlockOperationSerializer()
deserializer = DeleteAppBlockOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DeleteAppBlock"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DeleteAppBlock-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Deletes an application.
*/
override suspend fun deleteApplication(input: DeleteApplicationRequest): DeleteApplicationResponse {
val op = SdkHttpOperation.build {
serializer = DeleteApplicationOperationSerializer()
deserializer = DeleteApplicationOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DeleteApplication"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DeleteApplication-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Deletes the specified Directory Config object from AppStream 2.0. This object includes the information required to join streaming instances to an Active Directory domain.
*/
override suspend fun deleteDirectoryConfig(input: DeleteDirectoryConfigRequest): DeleteDirectoryConfigResponse {
val op = SdkHttpOperation.build {
serializer = DeleteDirectoryConfigOperationSerializer()
deserializer = DeleteDirectoryConfigOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DeleteDirectoryConfig"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DeleteDirectoryConfig-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Deletes the specified entitlement.
*/
override suspend fun deleteEntitlement(input: DeleteEntitlementRequest): DeleteEntitlementResponse {
val op = SdkHttpOperation.build {
serializer = DeleteEntitlementOperationSerializer()
deserializer = DeleteEntitlementOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DeleteEntitlement"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DeleteEntitlement-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Deletes the specified fleet.
*/
override suspend fun deleteFleet(input: DeleteFleetRequest): DeleteFleetResponse {
val op = SdkHttpOperation.build {
serializer = DeleteFleetOperationSerializer()
deserializer = DeleteFleetOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DeleteFleet"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DeleteFleet-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Deletes the specified image. You cannot delete an image when it is in use. After you delete an image, you cannot provision new capacity using the image.
*/
override suspend fun deleteImage(input: DeleteImageRequest): DeleteImageResponse {
val op = SdkHttpOperation.build {
serializer = DeleteImageOperationSerializer()
deserializer = DeleteImageOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DeleteImage"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DeleteImage-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Deletes the specified image builder and releases the capacity.
*/
override suspend fun deleteImageBuilder(input: DeleteImageBuilderRequest): DeleteImageBuilderResponse {
val op = SdkHttpOperation.build {
serializer = DeleteImageBuilderOperationSerializer()
deserializer = DeleteImageBuilderOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DeleteImageBuilder"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DeleteImageBuilder-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Deletes permissions for the specified private image. After you delete permissions for an image, AWS accounts to which you previously granted these permissions can no longer use the image.
*/
override suspend fun deleteImagePermissions(input: DeleteImagePermissionsRequest): DeleteImagePermissionsResponse {
val op = SdkHttpOperation.build {
serializer = DeleteImagePermissionsOperationSerializer()
deserializer = DeleteImagePermissionsOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DeleteImagePermissions"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DeleteImagePermissions-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Deletes the specified stack. After the stack is deleted, the application streaming environment provided by the stack is no longer available to users. Also, any reservations made for application streaming sessions for the stack are released.
*/
override suspend fun deleteStack(input: DeleteStackRequest): DeleteStackResponse {
val op = SdkHttpOperation.build {
serializer = DeleteStackOperationSerializer()
deserializer = DeleteStackOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DeleteStack"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DeleteStack-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Disables usage report generation.
*/
override suspend fun deleteUsageReportSubscription(input: DeleteUsageReportSubscriptionRequest): DeleteUsageReportSubscriptionResponse {
val op = SdkHttpOperation.build {
serializer = DeleteUsageReportSubscriptionOperationSerializer()
deserializer = DeleteUsageReportSubscriptionOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DeleteUsageReportSubscription"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DeleteUsageReportSubscription-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Deletes a user from the user pool.
*/
override suspend fun deleteUser(input: DeleteUserRequest): DeleteUserResponse {
val op = SdkHttpOperation.build {
serializer = DeleteUserOperationSerializer()
deserializer = DeleteUserOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DeleteUser"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DeleteUser-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Retrieves a list that describes one or more app blocks.
*/
override suspend fun describeAppBlocks(input: DescribeAppBlocksRequest): DescribeAppBlocksResponse {
val op = SdkHttpOperation.build {
serializer = DescribeAppBlocksOperationSerializer()
deserializer = DescribeAppBlocksOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DescribeAppBlocks"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DescribeAppBlocks-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Retrieves a list that describes one or more application fleet associations. Either ApplicationArn or FleetName must be specified.
*/
override suspend fun describeApplicationFleetAssociations(input: DescribeApplicationFleetAssociationsRequest): DescribeApplicationFleetAssociationsResponse {
val op = SdkHttpOperation.build {
serializer = DescribeApplicationFleetAssociationsOperationSerializer()
deserializer = DescribeApplicationFleetAssociationsOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DescribeApplicationFleetAssociations"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DescribeApplicationFleetAssociations-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Retrieves a list that describes one or more applications.
*/
override suspend fun describeApplications(input: DescribeApplicationsRequest): DescribeApplicationsResponse {
val op = SdkHttpOperation.build {
serializer = DescribeApplicationsOperationSerializer()
deserializer = DescribeApplicationsOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DescribeApplications"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DescribeApplications-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Retrieves a list that describes one or more specified Directory Config objects for AppStream 2.0, if the names for these objects are provided. Otherwise, all Directory Config objects in the account are described. These objects include the configuration information required to join fleets and image builders to Microsoft Active Directory domains.
*
* Although the response syntax in this topic includes the account password, this password is not returned in the actual response.
*/
override suspend fun describeDirectoryConfigs(input: DescribeDirectoryConfigsRequest): DescribeDirectoryConfigsResponse {
val op = SdkHttpOperation.build {
serializer = DescribeDirectoryConfigsOperationSerializer()
deserializer = DescribeDirectoryConfigsOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DescribeDirectoryConfigs"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DescribeDirectoryConfigs-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Retrieves a list that describes one of more entitlements.
*/
override suspend fun describeEntitlements(input: DescribeEntitlementsRequest): DescribeEntitlementsResponse {
val op = SdkHttpOperation.build {
serializer = DescribeEntitlementsOperationSerializer()
deserializer = DescribeEntitlementsOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DescribeEntitlements"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DescribeEntitlements-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Retrieves a list that describes one or more specified fleets, if the fleet names are provided. Otherwise, all fleets in the account are described.
*/
override suspend fun describeFleets(input: DescribeFleetsRequest): DescribeFleetsResponse {
val op = SdkHttpOperation.build {
serializer = DescribeFleetsOperationSerializer()
deserializer = DescribeFleetsOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DescribeFleets"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DescribeFleets-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Retrieves a list that describes one or more specified image builders, if the image builder names are provided. Otherwise, all image builders in the account are described.
*/
override suspend fun describeImageBuilders(input: DescribeImageBuildersRequest): DescribeImageBuildersResponse {
val op = SdkHttpOperation.build {
serializer = DescribeImageBuildersOperationSerializer()
deserializer = DescribeImageBuildersOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DescribeImageBuilders"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DescribeImageBuilders-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Retrieves a list that describes the permissions for shared AWS account IDs on a private image that you own.
*/
override suspend fun describeImagePermissions(input: DescribeImagePermissionsRequest): DescribeImagePermissionsResponse {
val op = SdkHttpOperation.build {
serializer = DescribeImagePermissionsOperationSerializer()
deserializer = DescribeImagePermissionsOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DescribeImagePermissions"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DescribeImagePermissions-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Retrieves a list that describes one or more specified images, if the image names or image ARNs are provided. Otherwise, all images in the account are described.
*/
override suspend fun describeImages(input: DescribeImagesRequest): DescribeImagesResponse {
val op = SdkHttpOperation.build {
serializer = DescribeImagesOperationSerializer()
deserializer = DescribeImagesOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DescribeImages"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DescribeImages-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Retrieves a list that describes the streaming sessions for a specified stack and fleet. If a UserId is provided for the stack and fleet, only streaming sessions for that user are described. If an authentication type is not provided, the default is to authenticate users using a streaming URL.
*/
override suspend fun describeSessions(input: DescribeSessionsRequest): DescribeSessionsResponse {
val op = SdkHttpOperation.build {
serializer = DescribeSessionsOperationSerializer()
deserializer = DescribeSessionsOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DescribeSessions"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DescribeSessions-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Retrieves a list that describes one or more specified stacks, if the stack names are provided. Otherwise, all stacks in the account are described.
*/
override suspend fun describeStacks(input: DescribeStacksRequest): DescribeStacksResponse {
val op = SdkHttpOperation.build {
serializer = DescribeStacksOperationSerializer()
deserializer = DescribeStacksOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DescribeStacks"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DescribeStacks-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Retrieves a list that describes one or more usage report subscriptions.
*/
override suspend fun describeUsageReportSubscriptions(input: DescribeUsageReportSubscriptionsRequest): DescribeUsageReportSubscriptionsResponse {
val op = SdkHttpOperation.build {
serializer = DescribeUsageReportSubscriptionsOperationSerializer()
deserializer = DescribeUsageReportSubscriptionsOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DescribeUsageReportSubscriptions"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DescribeUsageReportSubscriptions-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Retrieves a list that describes the UserStackAssociation objects. You must specify either or both of the following:
* + The stack name
* + The user name (email address of the user associated with the stack) and the authentication type for the user
*/
override suspend fun describeUserStackAssociations(input: DescribeUserStackAssociationsRequest): DescribeUserStackAssociationsResponse {
val op = SdkHttpOperation.build {
serializer = DescribeUserStackAssociationsOperationSerializer()
deserializer = DescribeUserStackAssociationsOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DescribeUserStackAssociations"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DescribeUserStackAssociations-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Retrieves a list that describes one or more specified users in the user pool.
*/
override suspend fun describeUsers(input: DescribeUsersRequest): DescribeUsersResponse {
val op = SdkHttpOperation.build {
serializer = DescribeUsersOperationSerializer()
deserializer = DescribeUsersOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DescribeUsers"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DescribeUsers-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Disables the specified user in the user pool. Users can't sign in to AppStream 2.0 until they are re-enabled. This action does not delete the user.
*/
override suspend fun disableUser(input: DisableUserRequest): DisableUserResponse {
val op = SdkHttpOperation.build {
serializer = DisableUserOperationSerializer()
deserializer = DisableUserOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DisableUser"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DisableUser-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Disassociates the specified application from the fleet.
*/
override suspend fun disassociateApplicationFleet(input: DisassociateApplicationFleetRequest): DisassociateApplicationFleetResponse {
val op = SdkHttpOperation.build {
serializer = DisassociateApplicationFleetOperationSerializer()
deserializer = DisassociateApplicationFleetOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DisassociateApplicationFleet"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DisassociateApplicationFleet-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Deletes the specified application from the specified entitlement.
*/
override suspend fun disassociateApplicationFromEntitlement(input: DisassociateApplicationFromEntitlementRequest): DisassociateApplicationFromEntitlementResponse {
val op = SdkHttpOperation.build {
serializer = DisassociateApplicationFromEntitlementOperationSerializer()
deserializer = DisassociateApplicationFromEntitlementOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DisassociateApplicationFromEntitlement"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DisassociateApplicationFromEntitlement-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Disassociates the specified fleet from the specified stack.
*/
override suspend fun disassociateFleet(input: DisassociateFleetRequest): DisassociateFleetResponse {
val op = SdkHttpOperation.build {
serializer = DisassociateFleetOperationSerializer()
deserializer = DisassociateFleetOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "DisassociateFleet"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("DisassociateFleet-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Enables a user in the user pool. After being enabled, users can sign in to AppStream 2.0 and open applications from the stacks to which they are assigned.
*/
override suspend fun enableUser(input: EnableUserRequest): EnableUserResponse {
val op = SdkHttpOperation.build {
serializer = EnableUserOperationSerializer()
deserializer = EnableUserOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "EnableUser"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("EnableUser-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Immediately stops the specified streaming session.
*/
override suspend fun expireSession(input: ExpireSessionRequest): ExpireSessionResponse {
val op = SdkHttpOperation.build {
serializer = ExpireSessionOperationSerializer()
deserializer = ExpireSessionOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "ExpireSession"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("ExpireSession-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Retrieves the name of the fleet that is associated with the specified stack.
*/
override suspend fun listAssociatedFleets(input: ListAssociatedFleetsRequest): ListAssociatedFleetsResponse {
val op = SdkHttpOperation.build {
serializer = ListAssociatedFleetsOperationSerializer()
deserializer = ListAssociatedFleetsOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "ListAssociatedFleets"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("ListAssociatedFleets-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Retrieves the name of the stack with which the specified fleet is associated.
*/
override suspend fun listAssociatedStacks(input: ListAssociatedStacksRequest): ListAssociatedStacksResponse {
val op = SdkHttpOperation.build {
serializer = ListAssociatedStacksOperationSerializer()
deserializer = ListAssociatedStacksOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "ListAssociatedStacks"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("ListAssociatedStacks-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Retrieves a list of entitled applications.
*/
override suspend fun listEntitledApplications(input: ListEntitledApplicationsRequest): ListEntitledApplicationsResponse {
val op = SdkHttpOperation.build {
serializer = ListEntitledApplicationsOperationSerializer()
deserializer = ListEntitledApplicationsOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "ListEntitledApplications"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("ListEntitledApplications-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Retrieves a list of all tags for the specified AppStream 2.0 resource. You can tag AppStream 2.0 image builders, images, fleets, and stacks.
*
* For more information about tags, see [Tagging Your Resources](https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html) in the *Amazon AppStream 2.0 Administration Guide*.
*/
override suspend fun listTagsForResource(input: ListTagsForResourceRequest): ListTagsForResourceResponse {
val op = SdkHttpOperation.build {
serializer = ListTagsForResourceOperationSerializer()
deserializer = ListTagsForResourceOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "ListTagsForResource"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("ListTagsForResource-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Starts the specified fleet.
*/
override suspend fun startFleet(input: StartFleetRequest): StartFleetResponse {
val op = SdkHttpOperation.build {
serializer = StartFleetOperationSerializer()
deserializer = StartFleetOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "StartFleet"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("StartFleet-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Starts the specified image builder.
*/
override suspend fun startImageBuilder(input: StartImageBuilderRequest): StartImageBuilderResponse {
val op = SdkHttpOperation.build {
serializer = StartImageBuilderOperationSerializer()
deserializer = StartImageBuilderOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "StartImageBuilder"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("StartImageBuilder-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Stops the specified fleet.
*/
override suspend fun stopFleet(input: StopFleetRequest): StopFleetResponse {
val op = SdkHttpOperation.build {
serializer = StopFleetOperationSerializer()
deserializer = StopFleetOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "StopFleet"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("StopFleet-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Stops the specified image builder.
*/
override suspend fun stopImageBuilder(input: StopImageBuilderRequest): StopImageBuilderResponse {
val op = SdkHttpOperation.build {
serializer = StopImageBuilderOperationSerializer()
deserializer = StopImageBuilderOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "StopImageBuilder"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("StopImageBuilder-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Adds or overwrites one or more tags for the specified AppStream 2.0 resource. You can tag AppStream 2.0 image builders, images, fleets, and stacks.
*
* Each tag consists of a key and an optional value. If a resource already has a tag with the same key, this operation updates its value.
*
* To list the current tags for your resources, use ListTagsForResource. To disassociate tags from your resources, use UntagResource.
*
* For more information about tags, see [Tagging Your Resources](https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html) in the *Amazon AppStream 2.0 Administration Guide*.
*/
override suspend fun tagResource(input: TagResourceRequest): TagResourceResponse {
val op = SdkHttpOperation.build {
serializer = TagResourceOperationSerializer()
deserializer = TagResourceOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "TagResource"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("TagResource-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Disassociates one or more specified tags from the specified AppStream 2.0 resource.
*
* To list the current tags for your resources, use ListTagsForResource.
*
* For more information about tags, see [Tagging Your Resources](https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html) in the *Amazon AppStream 2.0 Administration Guide*.
*/
override suspend fun untagResource(input: UntagResourceRequest): UntagResourceResponse {
val op = SdkHttpOperation.build {
serializer = UntagResourceOperationSerializer()
deserializer = UntagResourceOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "UntagResource"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("UntagResource-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Updates the specified application.
*/
override suspend fun updateApplication(input: UpdateApplicationRequest): UpdateApplicationResponse {
val op = SdkHttpOperation.build {
serializer = UpdateApplicationOperationSerializer()
deserializer = UpdateApplicationOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "UpdateApplication"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("UpdateApplication-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Updates the specified Directory Config object in AppStream 2.0. This object includes the configuration information required to join fleets and image builders to Microsoft Active Directory domains.
*/
override suspend fun updateDirectoryConfig(input: UpdateDirectoryConfigRequest): UpdateDirectoryConfigResponse {
val op = SdkHttpOperation.build {
serializer = UpdateDirectoryConfigOperationSerializer()
deserializer = UpdateDirectoryConfigOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "UpdateDirectoryConfig"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("UpdateDirectoryConfig-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Updates the specified entitlement.
*/
override suspend fun updateEntitlement(input: UpdateEntitlementRequest): UpdateEntitlementResponse {
val op = SdkHttpOperation.build {
serializer = UpdateEntitlementOperationSerializer()
deserializer = UpdateEntitlementOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "UpdateEntitlement"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("UpdateEntitlement-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Updates the specified fleet.
*
* If the fleet is in the `STOPPED` state, you can update any attribute except the fleet name.
*
* If the fleet is in the `RUNNING` state, you can update the following based on the fleet type:
* + Always-On and On-Demand fleet typesYou can update the `DisplayName`, `ComputeCapacity`, `ImageARN`, `ImageName`, `IdleDisconnectTimeoutInSeconds`, and `DisconnectTimeoutInSeconds` attributes.
* + Elastic fleet typeYou can update the `DisplayName`, `IdleDisconnectTimeoutInSeconds`, `DisconnectTimeoutInSeconds`, `MaxConcurrentSessions`, `SessionScriptS3Location` and `UsbDeviceFilterStrings` attributes.
*
* If the fleet is in the `STARTING` or `STOPPED` state, you can't update it.
*/
override suspend fun updateFleet(input: UpdateFleetRequest): UpdateFleetResponse {
val op = SdkHttpOperation.build {
serializer = UpdateFleetOperationSerializer()
deserializer = UpdateFleetOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "UpdateFleet"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("UpdateFleet-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Adds or updates permissions for the specified private image.
*/
override suspend fun updateImagePermissions(input: UpdateImagePermissionsRequest): UpdateImagePermissionsResponse {
val op = SdkHttpOperation.build {
serializer = UpdateImagePermissionsOperationSerializer()
deserializer = UpdateImagePermissionsOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "UpdateImagePermissions"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("UpdateImagePermissions-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
/**
* Updates the specified fields for the specified stack.
*/
override suspend fun updateStack(input: UpdateStackRequest): UpdateStackResponse {
val op = SdkHttpOperation.build {
serializer = UpdateStackOperationSerializer()
deserializer = UpdateStackOperationDeserializer()
context {
expectedHttpStatus = 200
operationName = "UpdateStack"
}
execution.auth = OperationAuthConfig(AuthSchemeProviderAdapter, configuredAuthSchemes, identityProviderConfig)
execution.endpointResolver = EndpointResolverAdapter(config)
execution.retryStrategy = config.retryStrategy
}
op.execution.retryPolicy = config.retryPolicy
mergeServiceDefaults(op.context)
op.install(AwsRetryHeaderMiddleware())
op.install(AwsJsonProtocol("PhotonAdminProxyService", "1.1"))
op.install(UserAgent(awsUserAgentMetadata))
op.install(RecursionDetection())
op.interceptors.addAll(config.interceptors)
val rootSpan = config.tracer.createRootSpan("UpdateStack-${op.context.sdkRequestId}")
return coroutineContext.withRootTraceSpan(rootSpan) {
op.roundTrip(client, input)
}
}
override fun close() {
managedResources.unshareAll()
}
/**
* merge the defaults configured for the service into the execution context before firing off a request
*/
private suspend fun mergeServiceDefaults(ctx: ExecutionContext) {
ctx.putIfAbsent(AwsClientOption.Region, config.region)
ctx.putIfAbsent(SdkClientOption.ClientName, config.clientName)
ctx.putIfAbsent(SdkClientOption.LogMode, config.logMode)
ctx.putIfAbsent(AwsSigningAttributes.SigningService, "appstream")
ctx.putIfAbsent(AwsSigningAttributes.SigningRegion, config.region)
ctx.putIfAbsent(AwsSigningAttributes.CredentialsProvider, config.credentialsProvider)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy