All Downloads are FREE. Search and download functionalities are using the official Maven repository.

zio.aws.tnb.Tnb.scala Maven / Gradle / Ivy

There is a newer version: 7.28.29.10
Show newest version
package zio.aws.tnb
import zio.aws.tnb.model.GetSolNetworkInstanceResponse.ReadOnly
import software.amazon.awssdk.services.tnb.paginators.{
  ListSolFunctionPackagesPublisher,
  ListSolNetworkInstancesPublisher,
  ListSolNetworkPackagesPublisher,
  ListSolFunctionInstancesPublisher,
  ListSolNetworkOperationsPublisher
}
import software.amazon.awssdk.services.tnb.{
  TnbAsyncClientBuilder,
  TnbAsyncClient
}
import zio.aws.core.config.AwsConfig
import zio.aws.tnb.model.{
  GetSolFunctionPackageDescriptorRequest,
  UpdateSolNetworkInstanceRequest,
  CreateSolNetworkPackageRequest,
  GetSolNetworkInstanceRequest,
  GetSolNetworkOperationRequest,
  GetSolFunctionPackageRequest,
  DeleteSolFunctionPackageRequest,
  UpdateSolFunctionPackageRequest,
  ListSolFunctionPackagesRequest,
  CreateSolNetworkInstanceRequest,
  ListTagsForResourceRequest,
  GetSolFunctionPackageContentRequest,
  TerminateSolNetworkInstanceRequest,
  CreateSolFunctionPackageRequest,
  UpdateSolNetworkPackageRequest,
  ValidateSolNetworkPackageContentRequest,
  InstantiateSolNetworkInstanceRequest,
  GetSolFunctionInstanceRequest,
  ValidateSolFunctionPackageContentRequest,
  ListSolNetworkInstancesRequest,
  GetSolNetworkPackageRequest,
  GetSolNetworkPackageContentRequest,
  PutSolNetworkPackageContentRequest,
  PutSolFunctionPackageContentRequest,
  ListSolNetworkOperationsRequest,
  CancelSolNetworkOperationRequest,
  UntagResourceRequest,
  DeleteSolNetworkInstanceRequest,
  GetSolNetworkPackageDescriptorRequest,
  ListSolFunctionInstancesRequest,
  DeleteSolNetworkPackageRequest,
  ListSolNetworkPackagesRequest,
  TagResourceRequest
}
import software.amazon.awssdk.services.tnb.model.{
  GetSolNetworkInstanceResponse,
  DeleteSolFunctionPackageResponse,
  TerminateSolNetworkInstanceResponse,
  GetSolFunctionPackageContentResponse,
  ListSolFunctionPackageInfo,
  ValidateSolFunctionPackageContentResponse,
  GetSolFunctionPackageResponse,
  DeleteSolNetworkInstanceResponse,
  ListSolNetworkInstanceInfo,
  ValidateSolNetworkPackageContentResponse,
  ListSolFunctionInstanceInfo,
  GetSolNetworkPackageContentResponse,
  DeleteSolNetworkPackageResponse,
  CancelSolNetworkOperationResponse,
  ListSolNetworkInstancesResponse,
  ListSolNetworkPackagesResponse,
  UpdateSolNetworkPackageResponse,
  GetSolNetworkPackageResponse,
  CreateSolNetworkPackageResponse,
  ListTagsForResourceResponse,
  UntagResourceResponse,
  ListSolNetworkPackageInfo,
  PutSolFunctionPackageContentResponse,
  GetSolNetworkPackageDescriptorResponse,
  GetSolNetworkOperationResponse,
  PutSolNetworkPackageContentResponse,
  GetSolFunctionPackageDescriptorResponse,
  ListSolNetworkOperationsInfo,
  ListSolFunctionPackagesResponse,
  CreateSolFunctionPackageResponse,
  GetSolFunctionInstanceResponse,
  UpdateSolFunctionPackageResponse,
  UpdateSolNetworkInstanceResponse,
  ListSolFunctionInstancesResponse,
  CreateSolNetworkInstanceResponse,
  InstantiateSolNetworkInstanceResponse,
  TagResourceResponse,
  ListSolNetworkOperationsResponse
}
import zio.aws.core.{AwsServiceBase, AwsError}
import zio.aws.core.aspects.{AwsCallAspect, AspectSupport}
import zio.{ZEnvironment, IO, ZIO, ZLayer, Scope}
import zio.stream.ZStream
import scala.jdk.CollectionConverters.*
trait Tnb extends AspectSupport[Tnb] {
  val api: TnbAsyncClient
  def instantiateSolNetworkInstance(
      request: InstantiateSolNetworkInstanceRequest
  ): IO[
    AwsError,
    zio.aws.tnb.model.InstantiateSolNetworkInstanceResponse.ReadOnly
  ]
  def createSolNetworkInstance(
      request: CreateSolNetworkInstanceRequest
  ): IO[AwsError, zio.aws.tnb.model.CreateSolNetworkInstanceResponse.ReadOnly]
  def listSolNetworkInstances(request: ListSolNetworkInstancesRequest): ZStream[
    Any,
    AwsError,
    zio.aws.tnb.model.ListSolNetworkInstanceInfo.ReadOnly
  ]
  def listSolNetworkInstancesPaginated(
      request: ListSolNetworkInstancesRequest
  ): IO[AwsError, zio.aws.tnb.model.ListSolNetworkInstancesResponse.ReadOnly]
  def validateSolNetworkPackageContent(
      request: ValidateSolNetworkPackageContentRequest
  ): IO[
    AwsError,
    zio.aws.tnb.model.ValidateSolNetworkPackageContentResponse.ReadOnly
  ]
  def validateSolFunctionPackageContent(
      request: ValidateSolFunctionPackageContentRequest
  ): IO[
    AwsError,
    zio.aws.tnb.model.ValidateSolFunctionPackageContentResponse.ReadOnly
  ]
  def deleteSolNetworkInstance(
      request: DeleteSolNetworkInstanceRequest
  ): IO[AwsError, Unit]
  def getSolNetworkPackageContent(
      request: GetSolNetworkPackageContentRequest
  ): IO[
    AwsError,
    zio.aws.tnb.model.GetSolNetworkPackageContentResponse.ReadOnly
  ]
  def updateSolNetworkPackage(
      request: UpdateSolNetworkPackageRequest
  ): IO[AwsError, zio.aws.tnb.model.UpdateSolNetworkPackageResponse.ReadOnly]
  def getSolNetworkInstance(
      request: GetSolNetworkInstanceRequest
  ): IO[AwsError, ReadOnly]
  def getSolFunctionPackageContent(
      request: GetSolFunctionPackageContentRequest
  ): IO[
    AwsError,
    zio.aws.tnb.model.GetSolFunctionPackageContentResponse.ReadOnly
  ]
  def getSolNetworkPackage(
      request: GetSolNetworkPackageRequest
  ): IO[AwsError, zio.aws.tnb.model.GetSolNetworkPackageResponse.ReadOnly]
  def listSolFunctionInstances(
      request: ListSolFunctionInstancesRequest
  ): ZStream[
    Any,
    AwsError,
    zio.aws.tnb.model.ListSolFunctionInstanceInfo.ReadOnly
  ]
  def listSolFunctionInstancesPaginated(
      request: ListSolFunctionInstancesRequest
  ): IO[AwsError, zio.aws.tnb.model.ListSolFunctionInstancesResponse.ReadOnly]
  def updateSolNetworkInstance(
      request: UpdateSolNetworkInstanceRequest
  ): IO[AwsError, zio.aws.tnb.model.UpdateSolNetworkInstanceResponse.ReadOnly]
  def listSolNetworkOperations(
      request: ListSolNetworkOperationsRequest
  ): ZStream[
    Any,
    AwsError,
    zio.aws.tnb.model.ListSolNetworkOperationsInfo.ReadOnly
  ]
  def listSolNetworkOperationsPaginated(
      request: ListSolNetworkOperationsRequest
  ): IO[AwsError, zio.aws.tnb.model.ListSolNetworkOperationsResponse.ReadOnly]
  def cancelSolNetworkOperation(
      request: CancelSolNetworkOperationRequest
  ): IO[AwsError, Unit]
  def createSolFunctionPackage(
      request: CreateSolFunctionPackageRequest
  ): IO[AwsError, zio.aws.tnb.model.CreateSolFunctionPackageResponse.ReadOnly]
  def terminateSolNetworkInstance(
      request: TerminateSolNetworkInstanceRequest
  ): IO[
    AwsError,
    zio.aws.tnb.model.TerminateSolNetworkInstanceResponse.ReadOnly
  ]
  def listSolFunctionPackages(request: ListSolFunctionPackagesRequest): ZStream[
    Any,
    AwsError,
    zio.aws.tnb.model.ListSolFunctionPackageInfo.ReadOnly
  ]
  def listSolFunctionPackagesPaginated(
      request: ListSolFunctionPackagesRequest
  ): IO[AwsError, zio.aws.tnb.model.ListSolFunctionPackagesResponse.ReadOnly]
  def getSolFunctionPackage(
      request: GetSolFunctionPackageRequest
  ): IO[AwsError, zio.aws.tnb.model.GetSolFunctionPackageResponse.ReadOnly]
  def putSolFunctionPackageContent(
      request: PutSolFunctionPackageContentRequest
  ): IO[
    AwsError,
    zio.aws.tnb.model.PutSolFunctionPackageContentResponse.ReadOnly
  ]
  def untagResource(
      request: UntagResourceRequest
  ): IO[AwsError, zio.aws.tnb.model.UntagResourceResponse.ReadOnly]
  def updateSolFunctionPackage(
      request: UpdateSolFunctionPackageRequest
  ): IO[AwsError, zio.aws.tnb.model.UpdateSolFunctionPackageResponse.ReadOnly]
  def createSolNetworkPackage(
      request: CreateSolNetworkPackageRequest
  ): IO[AwsError, zio.aws.tnb.model.CreateSolNetworkPackageResponse.ReadOnly]
  def deleteSolFunctionPackage(
      request: DeleteSolFunctionPackageRequest
  ): IO[AwsError, Unit]
  def getSolFunctionInstance(
      request: GetSolFunctionInstanceRequest
  ): IO[AwsError, zio.aws.tnb.model.GetSolFunctionInstanceResponse.ReadOnly]
  def listTagsForResource(
      request: ListTagsForResourceRequest
  ): IO[AwsError, zio.aws.tnb.model.ListTagsForResourceResponse.ReadOnly]
  def getSolNetworkPackageDescriptor(
      request: GetSolNetworkPackageDescriptorRequest
  ): IO[
    AwsError,
    zio.aws.tnb.model.GetSolNetworkPackageDescriptorResponse.ReadOnly
  ]
  def tagResource(
      request: TagResourceRequest
  ): IO[AwsError, zio.aws.tnb.model.TagResourceResponse.ReadOnly]
  def deleteSolNetworkPackage(
      request: DeleteSolNetworkPackageRequest
  ): IO[AwsError, Unit]
  def putSolNetworkPackageContent(
      request: PutSolNetworkPackageContentRequest
  ): IO[
    AwsError,
    zio.aws.tnb.model.PutSolNetworkPackageContentResponse.ReadOnly
  ]
  def getSolFunctionPackageDescriptor(
      request: GetSolFunctionPackageDescriptorRequest
  ): IO[
    AwsError,
    zio.aws.tnb.model.GetSolFunctionPackageDescriptorResponse.ReadOnly
  ]
  def getSolNetworkOperation(
      request: GetSolNetworkOperationRequest
  ): IO[AwsError, zio.aws.tnb.model.GetSolNetworkOperationResponse.ReadOnly]
  def listSolNetworkPackages(request: ListSolNetworkPackagesRequest): ZStream[
    Any,
    AwsError,
    zio.aws.tnb.model.ListSolNetworkPackageInfo.ReadOnly
  ]
  def listSolNetworkPackagesPaginated(
      request: ListSolNetworkPackagesRequest
  ): IO[AwsError, zio.aws.tnb.model.ListSolNetworkPackagesResponse.ReadOnly]
}
object Tnb {
  val live: ZLayer[AwsConfig, java.lang.Throwable, Tnb] = customized(identity)
  def customized(
      customization: TnbAsyncClientBuilder => TnbAsyncClientBuilder
  ): ZLayer[AwsConfig, java.lang.Throwable, Tnb] =
    ZLayer.scoped(scoped(customization))
  def scoped(
      customization: TnbAsyncClientBuilder => TnbAsyncClientBuilder
  ): ZIO[AwsConfig with Scope, java.lang.Throwable, Tnb] = for (
    awsConfig <- ZIO.service[AwsConfig]; executor <- ZIO.executor;
    builder = TnbAsyncClient
      .builder()
      .asyncConfiguration(
        software.amazon.awssdk.core.client.config.ClientAsyncConfiguration
          .builder()
          .advancedOption(
            software.amazon.awssdk.core.client.config.SdkAdvancedAsyncClientOption.FUTURE_COMPLETION_EXECUTOR,
            executor.asJava
          )
          .build()
      );
    b0 <- awsConfig.configure[TnbAsyncClient, TnbAsyncClientBuilder](builder);
    b1 <- awsConfig.configureHttpClient[TnbAsyncClient, TnbAsyncClientBuilder](
      b0,
      zio.aws.core.httpclient.ServiceHttpCapabilities(supportsHttp2 = false)
    ); client <- ZIO.attempt(customization(b1).build())
  ) yield new TnbImpl(client, AwsCallAspect.identity, ZEnvironment.empty)
  private class TnbImpl[R](
      override val api: TnbAsyncClient,
      override val aspect: AwsCallAspect[R],
      r: ZEnvironment[R]
  ) extends Tnb
      with AwsServiceBase[R] {
    override val serviceName: String = "Tnb"
    override def withAspect[R1](
        newAspect: AwsCallAspect[R1],
        r: ZEnvironment[R1]
    ): TnbImpl[R1] = new TnbImpl(api, newAspect, r)
    def instantiateSolNetworkInstance(
        request: InstantiateSolNetworkInstanceRequest
    ): IO[
      AwsError,
      zio.aws.tnb.model.InstantiateSolNetworkInstanceResponse.ReadOnly
    ] = asyncRequestResponse[
      software.amazon.awssdk.services.tnb.model.InstantiateSolNetworkInstanceRequest,
      InstantiateSolNetworkInstanceResponse
    ]("instantiateSolNetworkInstance", api.instantiateSolNetworkInstance)(
      request.buildAwsValue()
    ).map(zio.aws.tnb.model.InstantiateSolNetworkInstanceResponse.wrap)
      .provideEnvironment(r)
    def createSolNetworkInstance(request: CreateSolNetworkInstanceRequest): IO[
      AwsError,
      zio.aws.tnb.model.CreateSolNetworkInstanceResponse.ReadOnly
    ] = asyncRequestResponse[
      software.amazon.awssdk.services.tnb.model.CreateSolNetworkInstanceRequest,
      CreateSolNetworkInstanceResponse
    ]("createSolNetworkInstance", api.createSolNetworkInstance)(
      request.buildAwsValue()
    ).map(zio.aws.tnb.model.CreateSolNetworkInstanceResponse.wrap)
      .provideEnvironment(r)
    def listSolNetworkInstances(
        request: ListSolNetworkInstancesRequest
    ): ZStream[
      Any,
      AwsError,
      zio.aws.tnb.model.ListSolNetworkInstanceInfo.ReadOnly
    ] = asyncJavaPaginatedRequest[
      software.amazon.awssdk.services.tnb.model.ListSolNetworkInstancesRequest,
      ListSolNetworkInstanceInfo,
      ListSolNetworkInstancesPublisher
    ](
      "listSolNetworkInstances",
      api.listSolNetworkInstancesPaginator,
      _.networkInstances()
    )(request.buildAwsValue())
      .map(item => zio.aws.tnb.model.ListSolNetworkInstanceInfo.wrap(item))
      .provideEnvironment(r)
    def listSolNetworkInstancesPaginated(
        request: ListSolNetworkInstancesRequest
    ): IO[
      AwsError,
      zio.aws.tnb.model.ListSolNetworkInstancesResponse.ReadOnly
    ] = asyncRequestResponse[
      software.amazon.awssdk.services.tnb.model.ListSolNetworkInstancesRequest,
      ListSolNetworkInstancesResponse
    ]("listSolNetworkInstances", api.listSolNetworkInstances)(
      request.buildAwsValue()
    ).map(zio.aws.tnb.model.ListSolNetworkInstancesResponse.wrap)
      .provideEnvironment(r)
    def validateSolNetworkPackageContent(
        request: ValidateSolNetworkPackageContentRequest
    ): IO[
      AwsError,
      zio.aws.tnb.model.ValidateSolNetworkPackageContentResponse.ReadOnly
    ] = asyncRequestResponse[
      software.amazon.awssdk.services.tnb.model.ValidateSolNetworkPackageContentRequest,
      ValidateSolNetworkPackageContentResponse
    ]("validateSolNetworkPackageContent", api.validateSolNetworkPackageContent)(
      request.buildAwsValue()
    ).map(zio.aws.tnb.model.ValidateSolNetworkPackageContentResponse.wrap)
      .provideEnvironment(r)
    def validateSolFunctionPackageContent(
        request: ValidateSolFunctionPackageContentRequest
    ): IO[
      AwsError,
      zio.aws.tnb.model.ValidateSolFunctionPackageContentResponse.ReadOnly
    ] = asyncRequestResponse[
      software.amazon.awssdk.services.tnb.model.ValidateSolFunctionPackageContentRequest,
      ValidateSolFunctionPackageContentResponse
    ](
      "validateSolFunctionPackageContent",
      api.validateSolFunctionPackageContent
    )(request.buildAwsValue())
      .map(zio.aws.tnb.model.ValidateSolFunctionPackageContentResponse.wrap)
      .provideEnvironment(r)
    def deleteSolNetworkInstance(
        request: DeleteSolNetworkInstanceRequest
    ): IO[AwsError, Unit] = asyncRequestResponse[
      software.amazon.awssdk.services.tnb.model.DeleteSolNetworkInstanceRequest,
      DeleteSolNetworkInstanceResponse
    ]("deleteSolNetworkInstance", api.deleteSolNetworkInstance)(
      request.buildAwsValue()
    ).unit.provideEnvironment(r)
    def getSolNetworkPackageContent(
        request: GetSolNetworkPackageContentRequest
    ): IO[
      AwsError,
      zio.aws.tnb.model.GetSolNetworkPackageContentResponse.ReadOnly
    ] = asyncRequestResponse[
      software.amazon.awssdk.services.tnb.model.GetSolNetworkPackageContentRequest,
      GetSolNetworkPackageContentResponse
    ]("getSolNetworkPackageContent", api.getSolNetworkPackageContent)(
      request.buildAwsValue()
    ).map(zio.aws.tnb.model.GetSolNetworkPackageContentResponse.wrap)
      .provideEnvironment(r)
    def updateSolNetworkPackage(request: UpdateSolNetworkPackageRequest): IO[
      AwsError,
      zio.aws.tnb.model.UpdateSolNetworkPackageResponse.ReadOnly
    ] = asyncRequestResponse[
      software.amazon.awssdk.services.tnb.model.UpdateSolNetworkPackageRequest,
      UpdateSolNetworkPackageResponse
    ]("updateSolNetworkPackage", api.updateSolNetworkPackage)(
      request.buildAwsValue()
    ).map(zio.aws.tnb.model.UpdateSolNetworkPackageResponse.wrap)
      .provideEnvironment(r)
    def getSolNetworkInstance(
        request: GetSolNetworkInstanceRequest
    ): IO[AwsError, ReadOnly] = asyncRequestResponse[
      software.amazon.awssdk.services.tnb.model.GetSolNetworkInstanceRequest,
      GetSolNetworkInstanceResponse
    ]("getSolNetworkInstance", api.getSolNetworkInstance)(
      request.buildAwsValue()
    ).map(zio.aws.tnb.model.GetSolNetworkInstanceResponse.wrap)
      .provideEnvironment(r)
    def getSolFunctionPackageContent(
        request: GetSolFunctionPackageContentRequest
    ): IO[
      AwsError,
      zio.aws.tnb.model.GetSolFunctionPackageContentResponse.ReadOnly
    ] = asyncRequestResponse[
      software.amazon.awssdk.services.tnb.model.GetSolFunctionPackageContentRequest,
      GetSolFunctionPackageContentResponse
    ]("getSolFunctionPackageContent", api.getSolFunctionPackageContent)(
      request.buildAwsValue()
    ).map(zio.aws.tnb.model.GetSolFunctionPackageContentResponse.wrap)
      .provideEnvironment(r)
    def getSolNetworkPackage(
        request: GetSolNetworkPackageRequest
    ): IO[AwsError, zio.aws.tnb.model.GetSolNetworkPackageResponse.ReadOnly] =
      asyncRequestResponse[
        software.amazon.awssdk.services.tnb.model.GetSolNetworkPackageRequest,
        GetSolNetworkPackageResponse
      ]("getSolNetworkPackage", api.getSolNetworkPackage)(
        request.buildAwsValue()
      ).map(zio.aws.tnb.model.GetSolNetworkPackageResponse.wrap)
        .provideEnvironment(r)
    def listSolFunctionInstances(
        request: ListSolFunctionInstancesRequest
    ): ZStream[
      Any,
      AwsError,
      zio.aws.tnb.model.ListSolFunctionInstanceInfo.ReadOnly
    ] = asyncJavaPaginatedRequest[
      software.amazon.awssdk.services.tnb.model.ListSolFunctionInstancesRequest,
      ListSolFunctionInstanceInfo,
      ListSolFunctionInstancesPublisher
    ](
      "listSolFunctionInstances",
      api.listSolFunctionInstancesPaginator,
      _.functionInstances()
    )(request.buildAwsValue())
      .map(item => zio.aws.tnb.model.ListSolFunctionInstanceInfo.wrap(item))
      .provideEnvironment(r)
    def listSolFunctionInstancesPaginated(
        request: ListSolFunctionInstancesRequest
    ): IO[
      AwsError,
      zio.aws.tnb.model.ListSolFunctionInstancesResponse.ReadOnly
    ] = asyncRequestResponse[
      software.amazon.awssdk.services.tnb.model.ListSolFunctionInstancesRequest,
      ListSolFunctionInstancesResponse
    ]("listSolFunctionInstances", api.listSolFunctionInstances)(
      request.buildAwsValue()
    ).map(zio.aws.tnb.model.ListSolFunctionInstancesResponse.wrap)
      .provideEnvironment(r)
    def updateSolNetworkInstance(request: UpdateSolNetworkInstanceRequest): IO[
      AwsError,
      zio.aws.tnb.model.UpdateSolNetworkInstanceResponse.ReadOnly
    ] = asyncRequestResponse[
      software.amazon.awssdk.services.tnb.model.UpdateSolNetworkInstanceRequest,
      UpdateSolNetworkInstanceResponse
    ]("updateSolNetworkInstance", api.updateSolNetworkInstance)(
      request.buildAwsValue()
    ).map(zio.aws.tnb.model.UpdateSolNetworkInstanceResponse.wrap)
      .provideEnvironment(r)
    def listSolNetworkOperations(
        request: ListSolNetworkOperationsRequest
    ): ZStream[
      Any,
      AwsError,
      zio.aws.tnb.model.ListSolNetworkOperationsInfo.ReadOnly
    ] = asyncJavaPaginatedRequest[
      software.amazon.awssdk.services.tnb.model.ListSolNetworkOperationsRequest,
      ListSolNetworkOperationsInfo,
      ListSolNetworkOperationsPublisher
    ](
      "listSolNetworkOperations",
      api.listSolNetworkOperationsPaginator,
      _.networkOperations()
    )(request.buildAwsValue())
      .map(item => zio.aws.tnb.model.ListSolNetworkOperationsInfo.wrap(item))
      .provideEnvironment(r)
    def listSolNetworkOperationsPaginated(
        request: ListSolNetworkOperationsRequest
    ): IO[
      AwsError,
      zio.aws.tnb.model.ListSolNetworkOperationsResponse.ReadOnly
    ] = asyncRequestResponse[
      software.amazon.awssdk.services.tnb.model.ListSolNetworkOperationsRequest,
      ListSolNetworkOperationsResponse
    ]("listSolNetworkOperations", api.listSolNetworkOperations)(
      request.buildAwsValue()
    ).map(zio.aws.tnb.model.ListSolNetworkOperationsResponse.wrap)
      .provideEnvironment(r)
    def cancelSolNetworkOperation(
        request: CancelSolNetworkOperationRequest
    ): IO[AwsError, Unit] = asyncRequestResponse[
      software.amazon.awssdk.services.tnb.model.CancelSolNetworkOperationRequest,
      CancelSolNetworkOperationResponse
    ]("cancelSolNetworkOperation", api.cancelSolNetworkOperation)(
      request.buildAwsValue()
    ).unit.provideEnvironment(r)
    def createSolFunctionPackage(request: CreateSolFunctionPackageRequest): IO[
      AwsError,
      zio.aws.tnb.model.CreateSolFunctionPackageResponse.ReadOnly
    ] = asyncRequestResponse[
      software.amazon.awssdk.services.tnb.model.CreateSolFunctionPackageRequest,
      CreateSolFunctionPackageResponse
    ]("createSolFunctionPackage", api.createSolFunctionPackage)(
      request.buildAwsValue()
    ).map(zio.aws.tnb.model.CreateSolFunctionPackageResponse.wrap)
      .provideEnvironment(r)
    def terminateSolNetworkInstance(
        request: TerminateSolNetworkInstanceRequest
    ): IO[
      AwsError,
      zio.aws.tnb.model.TerminateSolNetworkInstanceResponse.ReadOnly
    ] = asyncRequestResponse[
      software.amazon.awssdk.services.tnb.model.TerminateSolNetworkInstanceRequest,
      TerminateSolNetworkInstanceResponse
    ]("terminateSolNetworkInstance", api.terminateSolNetworkInstance)(
      request.buildAwsValue()
    ).map(zio.aws.tnb.model.TerminateSolNetworkInstanceResponse.wrap)
      .provideEnvironment(r)
    def listSolFunctionPackages(
        request: ListSolFunctionPackagesRequest
    ): ZStream[
      Any,
      AwsError,
      zio.aws.tnb.model.ListSolFunctionPackageInfo.ReadOnly
    ] = asyncJavaPaginatedRequest[
      software.amazon.awssdk.services.tnb.model.ListSolFunctionPackagesRequest,
      ListSolFunctionPackageInfo,
      ListSolFunctionPackagesPublisher
    ](
      "listSolFunctionPackages",
      api.listSolFunctionPackagesPaginator,
      _.functionPackages()
    )(request.buildAwsValue())
      .map(item => zio.aws.tnb.model.ListSolFunctionPackageInfo.wrap(item))
      .provideEnvironment(r)
    def listSolFunctionPackagesPaginated(
        request: ListSolFunctionPackagesRequest
    ): IO[
      AwsError,
      zio.aws.tnb.model.ListSolFunctionPackagesResponse.ReadOnly
    ] = asyncRequestResponse[
      software.amazon.awssdk.services.tnb.model.ListSolFunctionPackagesRequest,
      ListSolFunctionPackagesResponse
    ]("listSolFunctionPackages", api.listSolFunctionPackages)(
      request.buildAwsValue()
    ).map(zio.aws.tnb.model.ListSolFunctionPackagesResponse.wrap)
      .provideEnvironment(r)
    def getSolFunctionPackage(
        request: GetSolFunctionPackageRequest
    ): IO[AwsError, zio.aws.tnb.model.GetSolFunctionPackageResponse.ReadOnly] =
      asyncRequestResponse[
        software.amazon.awssdk.services.tnb.model.GetSolFunctionPackageRequest,
        GetSolFunctionPackageResponse
      ]("getSolFunctionPackage", api.getSolFunctionPackage)(
        request.buildAwsValue()
      ).map(zio.aws.tnb.model.GetSolFunctionPackageResponse.wrap)
        .provideEnvironment(r)
    def putSolFunctionPackageContent(
        request: PutSolFunctionPackageContentRequest
    ): IO[
      AwsError,
      zio.aws.tnb.model.PutSolFunctionPackageContentResponse.ReadOnly
    ] = asyncRequestResponse[
      software.amazon.awssdk.services.tnb.model.PutSolFunctionPackageContentRequest,
      PutSolFunctionPackageContentResponse
    ]("putSolFunctionPackageContent", api.putSolFunctionPackageContent)(
      request.buildAwsValue()
    ).map(zio.aws.tnb.model.PutSolFunctionPackageContentResponse.wrap)
      .provideEnvironment(r)
    def untagResource(
        request: UntagResourceRequest
    ): IO[AwsError, zio.aws.tnb.model.UntagResourceResponse.ReadOnly] =
      asyncRequestResponse[
        software.amazon.awssdk.services.tnb.model.UntagResourceRequest,
        UntagResourceResponse
      ]("untagResource", api.untagResource)(request.buildAwsValue())
        .map(zio.aws.tnb.model.UntagResourceResponse.wrap)
        .provideEnvironment(r)
    def updateSolFunctionPackage(request: UpdateSolFunctionPackageRequest): IO[
      AwsError,
      zio.aws.tnb.model.UpdateSolFunctionPackageResponse.ReadOnly
    ] = asyncRequestResponse[
      software.amazon.awssdk.services.tnb.model.UpdateSolFunctionPackageRequest,
      UpdateSolFunctionPackageResponse
    ]("updateSolFunctionPackage", api.updateSolFunctionPackage)(
      request.buildAwsValue()
    ).map(zio.aws.tnb.model.UpdateSolFunctionPackageResponse.wrap)
      .provideEnvironment(r)
    def createSolNetworkPackage(request: CreateSolNetworkPackageRequest): IO[
      AwsError,
      zio.aws.tnb.model.CreateSolNetworkPackageResponse.ReadOnly
    ] = asyncRequestResponse[
      software.amazon.awssdk.services.tnb.model.CreateSolNetworkPackageRequest,
      CreateSolNetworkPackageResponse
    ]("createSolNetworkPackage", api.createSolNetworkPackage)(
      request.buildAwsValue()
    ).map(zio.aws.tnb.model.CreateSolNetworkPackageResponse.wrap)
      .provideEnvironment(r)
    def deleteSolFunctionPackage(
        request: DeleteSolFunctionPackageRequest
    ): IO[AwsError, Unit] = asyncRequestResponse[
      software.amazon.awssdk.services.tnb.model.DeleteSolFunctionPackageRequest,
      DeleteSolFunctionPackageResponse
    ]("deleteSolFunctionPackage", api.deleteSolFunctionPackage)(
      request.buildAwsValue()
    ).unit.provideEnvironment(r)
    def getSolFunctionInstance(
        request: GetSolFunctionInstanceRequest
    ): IO[AwsError, zio.aws.tnb.model.GetSolFunctionInstanceResponse.ReadOnly] =
      asyncRequestResponse[
        software.amazon.awssdk.services.tnb.model.GetSolFunctionInstanceRequest,
        GetSolFunctionInstanceResponse
      ]("getSolFunctionInstance", api.getSolFunctionInstance)(
        request.buildAwsValue()
      ).map(zio.aws.tnb.model.GetSolFunctionInstanceResponse.wrap)
        .provideEnvironment(r)
    def listTagsForResource(
        request: ListTagsForResourceRequest
    ): IO[AwsError, zio.aws.tnb.model.ListTagsForResourceResponse.ReadOnly] =
      asyncRequestResponse[
        software.amazon.awssdk.services.tnb.model.ListTagsForResourceRequest,
        ListTagsForResourceResponse
      ]("listTagsForResource", api.listTagsForResource)(request.buildAwsValue())
        .map(zio.aws.tnb.model.ListTagsForResourceResponse.wrap)
        .provideEnvironment(r)
    def getSolNetworkPackageDescriptor(
        request: GetSolNetworkPackageDescriptorRequest
    ): IO[
      AwsError,
      zio.aws.tnb.model.GetSolNetworkPackageDescriptorResponse.ReadOnly
    ] = asyncRequestResponse[
      software.amazon.awssdk.services.tnb.model.GetSolNetworkPackageDescriptorRequest,
      GetSolNetworkPackageDescriptorResponse
    ]("getSolNetworkPackageDescriptor", api.getSolNetworkPackageDescriptor)(
      request.buildAwsValue()
    ).map(zio.aws.tnb.model.GetSolNetworkPackageDescriptorResponse.wrap)
      .provideEnvironment(r)
    def tagResource(
        request: TagResourceRequest
    ): IO[AwsError, zio.aws.tnb.model.TagResourceResponse.ReadOnly] =
      asyncRequestResponse[
        software.amazon.awssdk.services.tnb.model.TagResourceRequest,
        TagResourceResponse
      ]("tagResource", api.tagResource)(request.buildAwsValue())
        .map(zio.aws.tnb.model.TagResourceResponse.wrap)
        .provideEnvironment(r)
    def deleteSolNetworkPackage(
        request: DeleteSolNetworkPackageRequest
    ): IO[AwsError, Unit] = asyncRequestResponse[
      software.amazon.awssdk.services.tnb.model.DeleteSolNetworkPackageRequest,
      DeleteSolNetworkPackageResponse
    ]("deleteSolNetworkPackage", api.deleteSolNetworkPackage)(
      request.buildAwsValue()
    ).unit.provideEnvironment(r)
    def putSolNetworkPackageContent(
        request: PutSolNetworkPackageContentRequest
    ): IO[
      AwsError,
      zio.aws.tnb.model.PutSolNetworkPackageContentResponse.ReadOnly
    ] = asyncRequestResponse[
      software.amazon.awssdk.services.tnb.model.PutSolNetworkPackageContentRequest,
      PutSolNetworkPackageContentResponse
    ]("putSolNetworkPackageContent", api.putSolNetworkPackageContent)(
      request.buildAwsValue()
    ).map(zio.aws.tnb.model.PutSolNetworkPackageContentResponse.wrap)
      .provideEnvironment(r)
    def getSolFunctionPackageDescriptor(
        request: GetSolFunctionPackageDescriptorRequest
    ): IO[
      AwsError,
      zio.aws.tnb.model.GetSolFunctionPackageDescriptorResponse.ReadOnly
    ] = asyncRequestResponse[
      software.amazon.awssdk.services.tnb.model.GetSolFunctionPackageDescriptorRequest,
      GetSolFunctionPackageDescriptorResponse
    ]("getSolFunctionPackageDescriptor", api.getSolFunctionPackageDescriptor)(
      request.buildAwsValue()
    ).map(zio.aws.tnb.model.GetSolFunctionPackageDescriptorResponse.wrap)
      .provideEnvironment(r)
    def getSolNetworkOperation(
        request: GetSolNetworkOperationRequest
    ): IO[AwsError, zio.aws.tnb.model.GetSolNetworkOperationResponse.ReadOnly] =
      asyncRequestResponse[
        software.amazon.awssdk.services.tnb.model.GetSolNetworkOperationRequest,
        GetSolNetworkOperationResponse
      ]("getSolNetworkOperation", api.getSolNetworkOperation)(
        request.buildAwsValue()
      ).map(zio.aws.tnb.model.GetSolNetworkOperationResponse.wrap)
        .provideEnvironment(r)
    def listSolNetworkPackages(request: ListSolNetworkPackagesRequest): ZStream[
      Any,
      AwsError,
      zio.aws.tnb.model.ListSolNetworkPackageInfo.ReadOnly
    ] = asyncJavaPaginatedRequest[
      software.amazon.awssdk.services.tnb.model.ListSolNetworkPackagesRequest,
      ListSolNetworkPackageInfo,
      ListSolNetworkPackagesPublisher
    ](
      "listSolNetworkPackages",
      api.listSolNetworkPackagesPaginator,
      _.networkPackages()
    )(request.buildAwsValue())
      .map(item => zio.aws.tnb.model.ListSolNetworkPackageInfo.wrap(item))
      .provideEnvironment(r)
    def listSolNetworkPackagesPaginated(
        request: ListSolNetworkPackagesRequest
    ): IO[AwsError, zio.aws.tnb.model.ListSolNetworkPackagesResponse.ReadOnly] =
      asyncRequestResponse[
        software.amazon.awssdk.services.tnb.model.ListSolNetworkPackagesRequest,
        ListSolNetworkPackagesResponse
      ]("listSolNetworkPackages", api.listSolNetworkPackages)(
        request.buildAwsValue()
      ).map(zio.aws.tnb.model.ListSolNetworkPackagesResponse.wrap)
        .provideEnvironment(r)
  }
  def instantiateSolNetworkInstance(
      request: InstantiateSolNetworkInstanceRequest
  ): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.InstantiateSolNetworkInstanceResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.instantiateSolNetworkInstance(request))
  def createSolNetworkInstance(request: CreateSolNetworkInstanceRequest): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.CreateSolNetworkInstanceResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.createSolNetworkInstance(request))
  def listSolNetworkInstances(request: ListSolNetworkInstancesRequest): ZStream[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.ListSolNetworkInstanceInfo.ReadOnly
  ] = ZStream.serviceWithStream(_.listSolNetworkInstances(request))
  def listSolNetworkInstancesPaginated(
      request: ListSolNetworkInstancesRequest
  ): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.ListSolNetworkInstancesResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.listSolNetworkInstancesPaginated(request))
  def validateSolNetworkPackageContent(
      request: ValidateSolNetworkPackageContentRequest
  ): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.ValidateSolNetworkPackageContentResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.validateSolNetworkPackageContent(request))
  def validateSolFunctionPackageContent(
      request: ValidateSolFunctionPackageContentRequest
  ): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.ValidateSolFunctionPackageContentResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.validateSolFunctionPackageContent(request))
  def deleteSolNetworkInstance(
      request: DeleteSolNetworkInstanceRequest
  ): ZIO[zio.aws.tnb.Tnb, AwsError, Unit] =
    ZIO.serviceWithZIO(_.deleteSolNetworkInstance(request))
  def getSolNetworkPackageContent(
      request: GetSolNetworkPackageContentRequest
  ): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.GetSolNetworkPackageContentResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.getSolNetworkPackageContent(request))
  def updateSolNetworkPackage(request: UpdateSolNetworkPackageRequest): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.UpdateSolNetworkPackageResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.updateSolNetworkPackage(request))
  def getSolNetworkInstance(
      request: GetSolNetworkInstanceRequest
  ): ZIO[zio.aws.tnb.Tnb, AwsError, ReadOnly] =
    ZIO.serviceWithZIO(_.getSolNetworkInstance(request))
  def getSolFunctionPackageContent(
      request: GetSolFunctionPackageContentRequest
  ): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.GetSolFunctionPackageContentResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.getSolFunctionPackageContent(request))
  def getSolNetworkPackage(request: GetSolNetworkPackageRequest): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.GetSolNetworkPackageResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.getSolNetworkPackage(request))
  def listSolFunctionInstances(
      request: ListSolFunctionInstancesRequest
  ): ZStream[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.ListSolFunctionInstanceInfo.ReadOnly
  ] = ZStream.serviceWithStream(_.listSolFunctionInstances(request))
  def listSolFunctionInstancesPaginated(
      request: ListSolFunctionInstancesRequest
  ): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.ListSolFunctionInstancesResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.listSolFunctionInstancesPaginated(request))
  def updateSolNetworkInstance(request: UpdateSolNetworkInstanceRequest): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.UpdateSolNetworkInstanceResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.updateSolNetworkInstance(request))
  def listSolNetworkOperations(
      request: ListSolNetworkOperationsRequest
  ): ZStream[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.ListSolNetworkOperationsInfo.ReadOnly
  ] = ZStream.serviceWithStream(_.listSolNetworkOperations(request))
  def listSolNetworkOperationsPaginated(
      request: ListSolNetworkOperationsRequest
  ): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.ListSolNetworkOperationsResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.listSolNetworkOperationsPaginated(request))
  def cancelSolNetworkOperation(
      request: CancelSolNetworkOperationRequest
  ): ZIO[zio.aws.tnb.Tnb, AwsError, Unit] =
    ZIO.serviceWithZIO(_.cancelSolNetworkOperation(request))
  def createSolFunctionPackage(request: CreateSolFunctionPackageRequest): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.CreateSolFunctionPackageResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.createSolFunctionPackage(request))
  def terminateSolNetworkInstance(
      request: TerminateSolNetworkInstanceRequest
  ): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.TerminateSolNetworkInstanceResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.terminateSolNetworkInstance(request))
  def listSolFunctionPackages(request: ListSolFunctionPackagesRequest): ZStream[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.ListSolFunctionPackageInfo.ReadOnly
  ] = ZStream.serviceWithStream(_.listSolFunctionPackages(request))
  def listSolFunctionPackagesPaginated(
      request: ListSolFunctionPackagesRequest
  ): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.ListSolFunctionPackagesResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.listSolFunctionPackagesPaginated(request))
  def getSolFunctionPackage(request: GetSolFunctionPackageRequest): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.GetSolFunctionPackageResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.getSolFunctionPackage(request))
  def putSolFunctionPackageContent(
      request: PutSolFunctionPackageContentRequest
  ): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.PutSolFunctionPackageContentResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.putSolFunctionPackageContent(request))
  def untagResource(request: UntagResourceRequest): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.UntagResourceResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.untagResource(request))
  def updateSolFunctionPackage(request: UpdateSolFunctionPackageRequest): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.UpdateSolFunctionPackageResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.updateSolFunctionPackage(request))
  def createSolNetworkPackage(request: CreateSolNetworkPackageRequest): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.CreateSolNetworkPackageResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.createSolNetworkPackage(request))
  def deleteSolFunctionPackage(
      request: DeleteSolFunctionPackageRequest
  ): ZIO[zio.aws.tnb.Tnb, AwsError, Unit] =
    ZIO.serviceWithZIO(_.deleteSolFunctionPackage(request))
  def getSolFunctionInstance(request: GetSolFunctionInstanceRequest): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.GetSolFunctionInstanceResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.getSolFunctionInstance(request))
  def listTagsForResource(request: ListTagsForResourceRequest): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.ListTagsForResourceResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.listTagsForResource(request))
  def getSolNetworkPackageDescriptor(
      request: GetSolNetworkPackageDescriptorRequest
  ): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.GetSolNetworkPackageDescriptorResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.getSolNetworkPackageDescriptor(request))
  def tagResource(request: TagResourceRequest): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.TagResourceResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.tagResource(request))
  def deleteSolNetworkPackage(
      request: DeleteSolNetworkPackageRequest
  ): ZIO[zio.aws.tnb.Tnb, AwsError, Unit] =
    ZIO.serviceWithZIO(_.deleteSolNetworkPackage(request))
  def putSolNetworkPackageContent(
      request: PutSolNetworkPackageContentRequest
  ): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.PutSolNetworkPackageContentResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.putSolNetworkPackageContent(request))
  def getSolFunctionPackageDescriptor(
      request: GetSolFunctionPackageDescriptorRequest
  ): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.GetSolFunctionPackageDescriptorResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.getSolFunctionPackageDescriptor(request))
  def getSolNetworkOperation(request: GetSolNetworkOperationRequest): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.GetSolNetworkOperationResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.getSolNetworkOperation(request))
  def listSolNetworkPackages(request: ListSolNetworkPackagesRequest): ZStream[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.ListSolNetworkPackageInfo.ReadOnly
  ] = ZStream.serviceWithStream(_.listSolNetworkPackages(request))
  def listSolNetworkPackagesPaginated(
      request: ListSolNetworkPackagesRequest
  ): ZIO[
    zio.aws.tnb.Tnb,
    AwsError,
    zio.aws.tnb.model.ListSolNetworkPackagesResponse.ReadOnly
  ] = ZIO.serviceWithZIO(_.listSolNetworkPackagesPaginated(request))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy