├── .editorconfig ├── .gitignore ├── LICENSE ├── Makefile ├── README.md ├── activities ├── accessanalyzer │ └── accessanalyzer.go ├── acm │ └── acm.go ├── acmpca │ └── acmpca.go ├── activities.go ├── alexaforbusiness │ └── alexaforbusiness.go ├── amplify │ └── amplify.go ├── apigateway │ └── apigateway.go ├── apigatewaymanagementapi │ └── apigatewaymanagementapi.go ├── apigatewayv2 │ └── apigatewayv2.go ├── appconfig │ └── appconfig.go ├── appflow │ └── appflow.go ├── applicationautoscaling │ └── applicationautoscaling.go ├── applicationdiscoveryservice │ └── applicationdiscoveryservice.go ├── applicationinsights │ └── applicationinsights.go ├── appmesh │ └── appmesh.go ├── appstream │ └── appstream.go ├── appsync │ └── appsync.go ├── athena │ └── athena.go ├── augmentedairuntime │ └── augmentedairuntime.go ├── autoscaling │ └── autoscaling.go ├── autoscalingplans │ └── autoscalingplans.go ├── backup │ └── backup.go ├── batch │ └── batch.go ├── braket │ └── braket.go ├── budgets │ └── budgets.go ├── chime │ └── chime.go ├── cloud9 │ └── cloud9.go ├── clouddirectory │ └── clouddirectory.go ├── cloudformation │ └── cloudformation.go ├── cloudfront │ └── cloudfront.go ├── cloudhsm │ └── cloudhsm.go ├── cloudhsmv2 │ └── cloudhsmv2.go ├── cloudsearch │ └── cloudsearch.go ├── cloudsearchdomain │ └── cloudsearchdomain.go ├── cloudtrail │ └── cloudtrail.go ├── cloudwatch │ └── cloudwatch.go ├── cloudwatchevents │ └── cloudwatchevents.go ├── cloudwatchlogs │ └── cloudwatchlogs.go ├── codeartifact │ └── codeartifact.go ├── codebuild │ └── codebuild.go ├── codecommit │ └── codecommit.go ├── codedeploy │ └── codedeploy.go ├── codeguruprofiler │ └── codeguruprofiler.go ├── codegurureviewer │ └── codegurureviewer.go ├── codepipeline │ └── codepipeline.go ├── codestar │ └── codestar.go ├── codestarconnections │ └── codestarconnections.go ├── codestarnotifications │ └── codestarnotifications.go ├── cognitoidentity │ └── cognitoidentity.go ├── cognitoidentityprovider │ └── cognitoidentityprovider.go ├── cognitosync │ └── cognitosync.go ├── comprehend │ └── comprehend.go ├── comprehendmedical │ └── comprehendmedical.go ├── computeoptimizer │ └── computeoptimizer.go ├── configservice │ └── configservice.go ├── connect │ └── connect.go ├── connectparticipant │ └── connectparticipant.go ├── costandusagereportservice │ └── costandusagereportservice.go ├── costexplorer │ └── costexplorer.go ├── databasemigrationservice │ └── databasemigrationservice.go ├── dataexchange │ └── dataexchange.go ├── datapipeline │ └── datapipeline.go ├── datasync │ └── datasync.go ├── dax │ └── dax.go ├── detective │ └── detective.go ├── devicefarm │ └── devicefarm.go ├── directconnect │ └── directconnect.go ├── directoryservice │ └── directoryservice.go ├── dlm │ └── dlm.go ├── docdb │ └── docdb.go ├── dynamodb │ └── dynamodb.go ├── dynamodbstreams │ └── dynamodbstreams.go ├── ebs │ └── ebs.go ├── ec2 │ └── ec2.go ├── ec2instanceconnect │ └── ec2instanceconnect.go ├── ecr │ └── ecr.go ├── ecs │ └── ecs.go ├── efs │ └── efs.go ├── eks │ └── eks.go ├── elasticache │ └── elasticache.go ├── elasticbeanstalk │ └── elasticbeanstalk.go ├── elasticinference │ └── elasticinference.go ├── elasticsearchservice │ └── elasticsearchservice.go ├── elastictranscoder │ └── elastictranscoder.go ├── elb │ └── elb.go ├── elbv2 │ └── elbv2.go ├── emr │ └── emr.go ├── eventbridge │ └── eventbridge.go ├── firehose │ └── firehose.go ├── fms │ └── fms.go ├── forecastqueryservice │ └── forecastqueryservice.go ├── forecastservice │ └── forecastservice.go ├── frauddetector │ └── frauddetector.go ├── fsx │ └── fsx.go ├── gamelift │ └── gamelift.go ├── glacier │ └── glacier.go ├── globalaccelerator │ └── globalaccelerator.go ├── glue │ └── glue.go ├── greengrass │ └── greengrass.go ├── groundstation │ └── groundstation.go ├── guardduty │ └── guardduty.go ├── health │ └── health.go ├── honeycode │ └── honeycode.go ├── iam │ └── iam.go ├── identitystore │ └── identitystore.go ├── imagebuilder │ └── imagebuilder.go ├── inspector │ └── inspector.go ├── iot │ └── iot.go ├── iot1clickdevicesservice │ └── iot1clickdevicesservice.go ├── iot1clickprojects │ └── iot1clickprojects.go ├── iotanalytics │ └── iotanalytics.go ├── iotdataplane │ └── iotdataplane.go ├── iotevents │ └── iotevents.go ├── ioteventsdata │ └── ioteventsdata.go ├── iotjobsdataplane │ └── iotjobsdataplane.go ├── iotsecuretunneling │ └── iotsecuretunneling.go ├── iotsitewise │ └── iotsitewise.go ├── iotthingsgraph │ └── iotthingsgraph.go ├── ivs │ └── ivs.go ├── kafka │ └── kafka.go ├── kendra │ └── kendra.go ├── kinesis │ └── kinesis.go ├── kinesisanalytics │ └── kinesisanalytics.go ├── kinesisanalyticsv2 │ └── kinesisanalyticsv2.go ├── kinesisvideo │ └── kinesisvideo.go ├── kinesisvideoarchivedmedia │ └── kinesisvideoarchivedmedia.go ├── kinesisvideomedia │ └── kinesisvideomedia.go ├── kinesisvideosignalingchannels │ └── kinesisvideosignalingchannels.go ├── kms │ └── kms.go ├── lakeformation │ └── lakeformation.go ├── lambda │ └── lambda.go ├── lexmodelbuildingservice │ └── lexmodelbuildingservice.go ├── lexruntimeservice │ └── lexruntimeservice.go ├── licensemanager │ └── licensemanager.go ├── lightsail │ └── lightsail.go ├── machinelearning │ └── machinelearning.go ├── macie │ └── macie.go ├── macie2 │ └── macie2.go ├── managedblockchain │ └── managedblockchain.go ├── marketplacecatalog │ └── marketplacecatalog.go ├── marketplacecommerceanalytics │ └── marketplacecommerceanalytics.go ├── marketplaceentitlementservice │ └── marketplaceentitlementservice.go ├── marketplacemetering │ └── marketplacemetering.go ├── mediaconnect │ └── mediaconnect.go ├── mediaconvert │ └── mediaconvert.go ├── medialive │ └── medialive.go ├── mediapackage │ └── mediapackage.go ├── mediapackagevod │ └── mediapackagevod.go ├── mediastore │ └── mediastore.go ├── mediastoredata │ └── mediastoredata.go ├── mediatailor │ └── mediatailor.go ├── migrationhub │ └── migrationhub.go ├── migrationhubconfig │ └── migrationhubconfig.go ├── mobile │ └── mobile.go ├── mobileanalytics │ └── mobileanalytics.go ├── mq │ └── mq.go ├── mturk │ └── mturk.go ├── neptune │ └── neptune.go ├── networkmanager │ └── networkmanager.go ├── opsworks │ └── opsworks.go ├── opsworkscm │ └── opsworkscm.go ├── organizations │ └── organizations.go ├── outposts │ └── outposts.go ├── personalize │ └── personalize.go ├── personalizeevents │ └── personalizeevents.go ├── personalizeruntime │ └── personalizeruntime.go ├── pi │ └── pi.go ├── pinpoint │ └── pinpoint.go ├── pinpointemail │ └── pinpointemail.go ├── pinpointsmsvoice │ └── pinpointsmsvoice.go ├── polly │ └── polly.go ├── pricing │ └── pricing.go ├── qldb │ └── qldb.go ├── qldbsession │ └── qldbsession.go ├── quicksight │ └── quicksight.go ├── ram │ └── ram.go ├── rds │ └── rds.go ├── rdsdataservice │ └── rdsdataservice.go ├── redshift │ └── redshift.go ├── redshiftdataapiservice │ └── redshiftdataapiservice.go ├── rekognition │ └── rekognition.go ├── resourcegroups │ └── resourcegroups.go ├── resourcegroupstaggingapi │ └── resourcegroupstaggingapi.go ├── robomaker │ └── robomaker.go ├── route53 │ └── route53.go ├── route53domains │ └── route53domains.go ├── route53resolver │ └── route53resolver.go ├── s3 │ └── s3.go ├── s3control │ └── s3control.go ├── s3outposts │ └── s3outposts.go ├── sagemaker │ └── sagemaker.go ├── sagemakerruntime │ └── sagemakerruntime.go ├── savingsplans │ └── savingsplans.go ├── schemas │ └── schemas.go ├── secretsmanager │ └── secretsmanager.go ├── securityhub │ └── securityhub.go ├── serverlessapplicationrepository │ └── serverlessapplicationrepository.go ├── servicecatalog │ └── servicecatalog.go ├── servicediscovery │ └── servicediscovery.go ├── servicequotas │ └── servicequotas.go ├── ses │ └── ses.go ├── sesv2 │ └── sesv2.go ├── sfn │ └── sfn.go ├── shield │ └── shield.go ├── signer │ └── signer.go ├── simpledb │ └── simpledb.go ├── sms │ └── sms.go ├── snowball │ └── snowball.go ├── sns │ └── sns.go ├── sqs │ └── sqs.go ├── ssm │ └── ssm.go ├── sso │ └── sso.go ├── ssoadmin │ └── ssoadmin.go ├── ssooidc │ └── ssooidc.go ├── storagegateway │ └── storagegateway.go ├── sts │ └── sts.go ├── support │ └── support.go ├── swf │ └── swf.go ├── synthetics │ └── synthetics.go ├── textract │ └── textract.go ├── timestreamquery │ └── timestreamquery.go ├── timestreamwrite │ └── timestreamwrite.go ├── transcribeservice │ └── transcribeservice.go ├── transcribestreamingservice │ └── transcribestreamingservice.go ├── transfer │ └── transfer.go ├── translate │ └── translate.go ├── waf │ └── waf.go ├── wafregional │ └── wafregional.go ├── wafv2 │ └── wafv2.go ├── workdocs │ └── workdocs.go ├── worklink │ └── worklink.go ├── workmail │ └── workmail.go ├── workmailmessageflow │ └── workmailmessageflow.go ├── workspaces │ └── workspaces.go └── xray │ └── xray.go ├── aws-sdk-worker.go ├── clients ├── accessanalyzerstub │ ├── interface.go │ └── stub.go ├── acmpcastub │ ├── interface.go │ └── stub.go ├── acmstub │ ├── interface.go │ └── stub.go ├── alexaforbusinessstub │ ├── interface.go │ └── stub.go ├── amplifystub │ ├── interface.go │ └── stub.go ├── apigatewaymanagementapistub │ ├── interface.go │ └── stub.go ├── apigatewaystub │ ├── interface.go │ └── stub.go ├── apigatewayv2stub │ ├── interface.go │ └── stub.go ├── appconfigstub │ ├── interface.go │ └── stub.go ├── appflowstub │ ├── interface.go │ └── stub.go ├── applicationautoscalingstub │ ├── interface.go │ └── stub.go ├── applicationdiscoveryservicestub │ ├── interface.go │ └── stub.go ├── applicationinsightsstub │ ├── interface.go │ └── stub.go ├── appmeshstub │ ├── interface.go │ └── stub.go ├── appstreamstub │ ├── interface.go │ └── stub.go ├── appsyncstub │ ├── interface.go │ └── stub.go ├── athenastub │ ├── interface.go │ └── stub.go ├── augmentedairuntimestub │ ├── interface.go │ └── stub.go ├── autoscalingplansstub │ ├── interface.go │ └── stub.go ├── autoscalingstub │ ├── interface.go │ └── stub.go ├── backupstub │ ├── interface.go │ └── stub.go ├── batchstub │ ├── interface.go │ └── stub.go ├── braketstub │ ├── interface.go │ └── stub.go ├── budgetsstub │ ├── interface.go │ └── stub.go ├── chimestub │ ├── interface.go │ └── stub.go ├── cloud9stub │ ├── interface.go │ └── stub.go ├── clouddirectorystub │ ├── interface.go │ └── stub.go ├── cloudformationstub │ ├── interface.go │ └── stub.go ├── cloudfrontstub │ ├── interface.go │ └── stub.go ├── cloudhsmstub │ ├── interface.go │ └── stub.go ├── cloudhsmv2stub │ ├── interface.go │ └── stub.go ├── cloudsearchdomainstub │ ├── interface.go │ └── stub.go ├── cloudsearchstub │ ├── interface.go │ └── stub.go ├── cloudtrailstub │ ├── interface.go │ └── stub.go ├── cloudwatcheventsstub │ ├── interface.go │ └── stub.go ├── cloudwatchlogsstub │ ├── interface.go │ └── stub.go ├── cloudwatchstub │ ├── interface.go │ └── stub.go ├── codeartifactstub │ ├── interface.go │ └── stub.go ├── codebuildstub │ ├── interface.go │ └── stub.go ├── codecommitstub │ ├── interface.go │ └── stub.go ├── codedeploystub │ ├── interface.go │ └── stub.go ├── codeguruprofilerstub │ ├── interface.go │ └── stub.go ├── codegurureviewerstub │ ├── interface.go │ └── stub.go ├── codepipelinestub │ ├── interface.go │ └── stub.go ├── codestarconnectionsstub │ ├── interface.go │ └── stub.go ├── codestarnotificationsstub │ ├── interface.go │ └── stub.go ├── codestarstub │ ├── interface.go │ └── stub.go ├── cognitoidentityproviderstub │ ├── interface.go │ └── stub.go ├── cognitoidentitystub │ ├── interface.go │ └── stub.go ├── cognitosyncstub │ ├── interface.go │ └── stub.go ├── comprehendmedicalstub │ ├── interface.go │ └── stub.go ├── comprehendstub │ ├── interface.go │ └── stub.go ├── computeoptimizerstub │ ├── interface.go │ └── stub.go ├── configservicestub │ ├── interface.go │ └── stub.go ├── connectparticipantstub │ ├── interface.go │ └── stub.go ├── connectstub │ ├── interface.go │ └── stub.go ├── costandusagereportservicestub │ ├── interface.go │ └── stub.go ├── costexplorerstub │ ├── interface.go │ └── stub.go ├── databasemigrationservicestub │ ├── interface.go │ └── stub.go ├── dataexchangestub │ ├── interface.go │ └── stub.go ├── datapipelinestub │ ├── interface.go │ └── stub.go ├── datasyncstub │ ├── interface.go │ └── stub.go ├── daxstub │ ├── interface.go │ └── stub.go ├── detectivestub │ ├── interface.go │ └── stub.go ├── devicefarmstub │ ├── interface.go │ └── stub.go ├── directconnectstub │ ├── interface.go │ └── stub.go ├── directoryservicestub │ ├── interface.go │ └── stub.go ├── dlmstub │ ├── interface.go │ └── stub.go ├── docdbstub │ ├── interface.go │ └── stub.go ├── dynamodbstreamsstub │ ├── interface.go │ └── stub.go ├── dynamodbstub │ ├── interface.go │ └── stub.go ├── ebsstub │ ├── interface.go │ └── stub.go ├── ec2instanceconnectstub │ ├── interface.go │ └── stub.go ├── ec2stub │ ├── interface.go │ └── stub.go ├── ecrstub │ ├── interface.go │ └── stub.go ├── ecsstub │ ├── interface.go │ └── stub.go ├── efsstub │ ├── interface.go │ └── stub.go ├── eksstub │ ├── interface.go │ └── stub.go ├── elasticachestub │ ├── interface.go │ └── stub.go ├── elasticbeanstalkstub │ ├── interface.go │ └── stub.go ├── elasticinferencestub │ ├── interface.go │ └── stub.go ├── elasticsearchservicestub │ ├── interface.go │ └── stub.go ├── elastictranscoderstub │ ├── interface.go │ └── stub.go ├── elbstub │ ├── interface.go │ └── stub.go ├── elbv2stub │ ├── interface.go │ └── stub.go ├── emrstub │ ├── interface.go │ └── stub.go ├── eventbridgestub │ ├── interface.go │ └── stub.go ├── firehosestub │ ├── interface.go │ └── stub.go ├── fmsstub │ ├── interface.go │ └── stub.go ├── forecastqueryservicestub │ ├── interface.go │ └── stub.go ├── forecastservicestub │ ├── interface.go │ └── stub.go ├── frauddetectorstub │ ├── interface.go │ └── stub.go ├── fsxstub │ ├── interface.go │ └── stub.go ├── gameliftstub │ ├── interface.go │ └── stub.go ├── glacierstub │ ├── interface.go │ └── stub.go ├── globalacceleratorstub │ ├── interface.go │ └── stub.go ├── gluestub │ ├── interface.go │ └── stub.go ├── greengrassstub │ ├── interface.go │ └── stub.go ├── groundstationstub │ ├── interface.go │ └── stub.go ├── guarddutystub │ ├── interface.go │ └── stub.go ├── healthstub │ ├── interface.go │ └── stub.go ├── honeycodestub │ ├── interface.go │ └── stub.go ├── iamstub │ ├── interface.go │ └── stub.go ├── identitystorestub │ ├── interface.go │ └── stub.go ├── imagebuilderstub │ ├── interface.go │ └── stub.go ├── inspectorstub │ ├── interface.go │ └── stub.go ├── iot1clickdevicesservicestub │ ├── interface.go │ └── stub.go ├── iot1clickprojectsstub │ ├── interface.go │ └── stub.go ├── iotanalyticsstub │ ├── interface.go │ └── stub.go ├── iotdataplanestub │ ├── interface.go │ └── stub.go ├── ioteventsdatastub │ ├── interface.go │ └── stub.go ├── ioteventsstub │ ├── interface.go │ └── stub.go ├── iotjobsdataplanestub │ ├── interface.go │ └── stub.go ├── iotsecuretunnelingstub │ ├── interface.go │ └── stub.go ├── iotsitewisestub │ ├── interface.go │ └── stub.go ├── iotstub │ ├── interface.go │ └── stub.go ├── iotthingsgraphstub │ ├── interface.go │ └── stub.go ├── ivsstub │ ├── interface.go │ └── stub.go ├── kafkastub │ ├── interface.go │ └── stub.go ├── kendrastub │ ├── interface.go │ └── stub.go ├── kinesisanalyticsstub │ ├── interface.go │ └── stub.go ├── kinesisanalyticsv2stub │ ├── interface.go │ └── stub.go ├── kinesisstub │ ├── interface.go │ └── stub.go ├── kinesisvideoarchivedmediastub │ ├── interface.go │ └── stub.go ├── kinesisvideomediastub │ ├── interface.go │ └── stub.go ├── kinesisvideosignalingchannelsstub │ ├── interface.go │ └── stub.go ├── kinesisvideostub │ ├── interface.go │ └── stub.go ├── kmsstub │ ├── interface.go │ └── stub.go ├── lakeformationstub │ ├── interface.go │ └── stub.go ├── lambdastub │ ├── interface.go │ └── stub.go ├── lexmodelbuildingservicestub │ ├── interface.go │ └── stub.go ├── lexruntimeservicestub │ ├── interface.go │ └── stub.go ├── licensemanagerstub │ ├── interface.go │ └── stub.go ├── lightsailstub │ ├── interface.go │ └── stub.go ├── machinelearningstub │ ├── interface.go │ └── stub.go ├── macie2stub │ ├── interface.go │ └── stub.go ├── maciestub │ ├── interface.go │ └── stub.go ├── managedblockchainstub │ ├── interface.go │ └── stub.go ├── marketplacecatalogstub │ ├── interface.go │ └── stub.go ├── marketplacecommerceanalyticsstub │ ├── interface.go │ └── stub.go ├── marketplaceentitlementservicestub │ ├── interface.go │ └── stub.go ├── marketplacemeteringstub │ ├── interface.go │ └── stub.go ├── mediaconnectstub │ ├── interface.go │ └── stub.go ├── mediaconvertstub │ ├── interface.go │ └── stub.go ├── medialivestub │ ├── interface.go │ └── stub.go ├── mediapackagestub │ ├── interface.go │ └── stub.go ├── mediapackagevodstub │ ├── interface.go │ └── stub.go ├── mediastoredatastub │ ├── interface.go │ └── stub.go ├── mediastorestub │ ├── interface.go │ └── stub.go ├── mediatailorstub │ ├── interface.go │ └── stub.go ├── migrationhubconfigstub │ ├── interface.go │ └── stub.go ├── migrationhubstub │ ├── interface.go │ └── stub.go ├── mobileanalyticsstub │ ├── interface.go │ └── stub.go ├── mobilestub │ ├── interface.go │ └── stub.go ├── mqstub │ ├── interface.go │ └── stub.go ├── mturkstub │ ├── interface.go │ └── stub.go ├── neptunestub │ ├── interface.go │ └── stub.go ├── networkmanagerstub │ ├── interface.go │ └── stub.go ├── opsworkscmstub │ ├── interface.go │ └── stub.go ├── opsworksstub │ ├── interface.go │ └── stub.go ├── organizationsstub │ ├── interface.go │ └── stub.go ├── outpostsstub │ ├── interface.go │ └── stub.go ├── personalizeeventsstub │ ├── interface.go │ └── stub.go ├── personalizeruntimestub │ ├── interface.go │ └── stub.go ├── personalizestub │ ├── interface.go │ └── stub.go ├── pinpointemailstub │ ├── interface.go │ └── stub.go ├── pinpointsmsvoicestub │ ├── interface.go │ └── stub.go ├── pinpointstub │ ├── interface.go │ └── stub.go ├── pistub │ ├── interface.go │ └── stub.go ├── pollystub │ ├── interface.go │ └── stub.go ├── pricingstub │ ├── interface.go │ └── stub.go ├── qldbsessionstub │ ├── interface.go │ └── stub.go ├── qldbstub │ ├── interface.go │ └── stub.go ├── quicksightstub │ ├── interface.go │ └── stub.go ├── ramstub │ ├── interface.go │ └── stub.go ├── rdsdataservicestub │ ├── interface.go │ └── stub.go ├── rdsstub │ ├── interface.go │ └── stub.go ├── redshiftdataapiservicestub │ ├── interface.go │ └── stub.go ├── redshiftstub │ ├── interface.go │ └── stub.go ├── rekognitionstub │ ├── interface.go │ └── stub.go ├── resourcegroupsstub │ ├── interface.go │ └── stub.go ├── resourcegroupstaggingapistub │ ├── interface.go │ └── stub.go ├── robomakerstub │ ├── interface.go │ └── stub.go ├── route53domainsstub │ ├── interface.go │ └── stub.go ├── route53resolverstub │ ├── interface.go │ └── stub.go ├── route53stub │ ├── interface.go │ └── stub.go ├── s3controlstub │ ├── interface.go │ └── stub.go ├── s3outpostsstub │ ├── interface.go │ └── stub.go ├── s3stub │ ├── interface.go │ └── stub.go ├── sagemakerruntimestub │ ├── interface.go │ └── stub.go ├── sagemakerstub │ ├── interface.go │ └── stub.go ├── savingsplansstub │ ├── interface.go │ └── stub.go ├── schemasstub │ ├── interface.go │ └── stub.go ├── secretsmanagerstub │ ├── interface.go │ └── stub.go ├── securityhubstub │ ├── interface.go │ └── stub.go ├── serverlessapplicationrepositorystub │ ├── interface.go │ └── stub.go ├── servicecatalogstub │ ├── interface.go │ └── stub.go ├── servicediscoverystub │ ├── interface.go │ └── stub.go ├── servicequotasstub │ ├── interface.go │ └── stub.go ├── sesstub │ ├── interface.go │ └── stub.go ├── sesv2stub │ ├── interface.go │ └── stub.go ├── sfnstub │ ├── interface.go │ └── stub.go ├── shieldstub │ ├── interface.go │ └── stub.go ├── signerstub │ ├── interface.go │ └── stub.go ├── simpledbstub │ ├── interface.go │ └── stub.go ├── smsstub │ ├── interface.go │ └── stub.go ├── snowballstub │ ├── interface.go │ └── stub.go ├── snsstub │ ├── interface.go │ └── stub.go ├── sqsstub │ ├── interface.go │ └── stub.go ├── ssmstub │ ├── interface.go │ └── stub.go ├── ssoadminstub │ ├── interface.go │ └── stub.go ├── ssooidcstub │ ├── interface.go │ └── stub.go ├── ssostub │ ├── interface.go │ └── stub.go ├── storagegatewaystub │ ├── interface.go │ └── stub.go ├── stsstub │ ├── interface.go │ └── stub.go ├── supportstub │ ├── interface.go │ └── stub.go ├── swfstub │ ├── interface.go │ └── stub.go ├── syntheticsstub │ ├── interface.go │ └── stub.go ├── textractstub │ ├── interface.go │ └── stub.go ├── timestreamquerystub │ ├── interface.go │ └── stub.go ├── timestreamwritestub │ ├── interface.go │ └── stub.go ├── transcribeservicestub │ ├── interface.go │ └── stub.go ├── transcribestreamingservicestub │ ├── interface.go │ └── stub.go ├── transferstub │ ├── interface.go │ └── stub.go ├── translatestub │ ├── interface.go │ └── stub.go ├── voidfuture.go ├── wafregionalstub │ ├── interface.go │ └── stub.go ├── wafstub │ ├── interface.go │ └── stub.go ├── wafv2stub │ ├── interface.go │ └── stub.go ├── workdocsstub │ ├── interface.go │ └── stub.go ├── worklinkstub │ ├── interface.go │ └── stub.go ├── workmailmessageflowstub │ ├── interface.go │ └── stub.go ├── workmailstub │ ├── interface.go │ └── stub.go ├── workspacesstub │ ├── interface.go │ └── stub.go └── xraystub │ ├── interface.go │ └── stub.go ├── go.mod ├── go.sum ├── internal ├── activityutil.go └── errors.go ├── samples ├── ec2demo │ ├── starter │ │ └── main.go │ ├── worker │ │ └── main.go │ └── workflow.go └── s3list │ ├── worker │ └── main.go │ └── workflow.go └── templates ├── activities.tmpl ├── activities_registration.tmpl └── clients.tmpl /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | indent_size = 4 7 | indent_style = space 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.go] 12 | indent_style = tab 13 | 14 | [{Makefile,*.mk}] 15 | indent_style = tab 16 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .gobincache 2 | *.out 3 | *.test 4 | *.xml 5 | *.swp 6 | .idea/ 7 | *.iml 8 | *.cov 9 | *.html 10 | .tmp/ 11 | .DS_Store 12 | vendor/ 13 | .build/ 14 | bin 15 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | # A Self-Documenting Makefile: http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html 2 | .PHONY: help bins 3 | .DEFAULT_GOAL := help 4 | 5 | OS = $(shell uname | tr A-Z a-z) 6 | 7 | # general build-product folder, cleaned as part of `make clean` 8 | BUILD := .build 9 | BIN := bin 10 | 11 | AWS_SDK_GENERATOR_VERSION = 0.0.3 12 | 13 | # Gather all templates 14 | ALL_TEMPLATES := $(shell find templates -name "*.tmpl") 15 | 16 | $(BUILD): 17 | @mkdir -p $(BUILD) 18 | 19 | $(BIN): 20 | @mkdir -p $(BIN) 21 | 22 | $(BIN)/temporal-aws-sdk-generator: $(BIN)/temporal-aws-sdk-generator-${AWS_SDK_GENERATOR_VERSION} 23 | @ln -sf temporal-aws-sdk-generator-${AWS_SDK_GENERATOR_VERSION} $(BIN)/temporal-aws-sdk-generator 24 | $(BIN)/temporal-aws-sdk-generator-${AWS_SDK_GENERATOR_VERSION}: $(BIN) 25 | curl -L https://github.com/temporalio/temporal-aws-sdk-generator/releases/download/v${AWS_SDK_GENERATOR_VERSION}/temporal-aws-sdk-generator_${OS}_amd64.tar.gz | tar -zOxf - temporal-aws-sdk-generator > $(BIN)/temporal-aws-sdk-generator-${AWS_SDK_GENERATOR_VERSION} && chmod +x ./bin/temporal-aws-sdk-generator-${AWS_SDK_GENERATOR_VERSION} 26 | 27 | $(BUILD)/generate: $(BUILD) $(ALL_TEMPLATES) $(BIN)/temporal-aws-sdk-generator ## generate code based on templates in templates directory 28 | $(BIN)/temporal-aws-sdk-generator --template-dir templates --output-dir . 29 | touch $(BUILD)/generate 30 | 31 | $(BUILD)/clients: $(BUILD)/generate 32 | go build ./clients/... 33 | touch $(BUILD)/clients 34 | 35 | $(BIN)/aws-sdk-worker: $(BUILD)/generate 36 | go build -o $@ aws-sdk-worker.go 37 | 38 | $(BIN)/samples/ec2demo-starter: $(BUILD)/generate 39 | go build -o $@ samples/ec2demo/starter/main.go 40 | 41 | $(BIN)/samples/ec2demo-worker: $(BUILD)/generate 42 | go build -o $@ samples/ec2demo/worker/main.go 43 | 44 | $(BIN)/samples/s3list: $(BUILD)/generate 45 | go build -o $@ samples/s3list/worker/main.go 46 | 47 | generate: $(BUILD)/generate ## Regenerate code if templates changed 48 | 49 | bins: $(BUILD)/clients $(BIN)/aws-sdk-worker $(BIN)/samples/ec2demo-worker $(BIN)/samples/ec2demo-starter $(BIN)/samples/s3list ## Build binaries 50 | 51 | clean: ## Remove .build directory. Doesn't revert generated code changes. 52 | rm -rf $(BUILD) 53 | rm -rf $(BIN) 54 | 55 | help: 56 | @grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' 57 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Temporal AWS SDK 2 | 3 | | :warning: **This code is an experiment**: Absolutely no guarantee of backwards compatibility | 4 | | --- | 5 | 6 | This repository is a prototype of generated [Temporal](https://github.com/temporalio/) activities and workflow stubs for all AWS APIs 7 | exposed by [AWS Go SDK](https://github.com/aws/aws-sdk-go). 8 | 9 | Generated activities and stubs are in Go at this point. 10 | Java SDK has to call them by string name until Java activity interface generation is added. 11 | 12 | This repository relies on the [temporal-aws-sdk-generator](https://github.com/temporalio/temporal-aws-sdk-generator). 13 | 14 | ## Generated Code 15 | 16 | `activities` package contains generated code for activities that call AWS APIs through AWS Go SDK. 17 | 18 | `clients` package contains generated code that workflows can use to call these activities in a 19 | strongly typed manner. 20 | 21 | ## Regenerating Code 22 | 23 | Update a template in templates directory and run: 24 | ``` 25 | make bins 26 | ``` 27 | to regenerate and compile the generated code. 28 | 29 | ## Templates 30 | 31 | Templates that are used for code generation are located in 32 | [templates](templates) directory. 33 | They use Go [text/template](https://golang.org/pkg/text/template/) package. Each template is invoked with 34 | [AWSSDKDefinition](internal/definitions.go) structure as a parameter. A template file must call `SetFileName` 35 | function at the beginning to specify the output file name. 36 | It is allowed to call `SetFileName` multiple times to generate multiple files from the same template. 37 | 38 | ## Running Temporal AWS SDK Activities 39 | 40 | To run Temporal AWS SDK activities: 41 | 42 | Create `~/.aws/credentials` file with aws access key id and secret or set corresponding environment variables. 43 | The basic credentials file format: 44 | ``` 45 | [default] 46 | aws_access_key_id = 47 | aws_secret_access_key = 48 | ``` 49 | See [AWS Go SDK documentation](https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html) for details. 50 | Set AWS_REGION environment variable. Another option is to set AWS_SDK_LOAD_CONFIG variable to true and set Region config value. 51 | ```bash 52 | AWS_REGION=us-west-2 bin/aws-sdk-worker 53 | ``` 54 | 55 | ## Samples 56 | 57 | ### S3 List Bucket 58 | 59 | `samples/s3list` directory contains very simple example of a workflow that lists S3 buckets under an account. The sample 60 | assumes that AWS SDK activities are already running. 61 | 62 | ```bash 63 | bin/samples/s3list 64 | ``` 65 | 66 | ### EC2 Instance 67 | 68 | `samples/ec2demo` directory contains an example of a workflow that launches an EC2 instance and keeps 69 | restarting it when terminated. The sample assumes that AWS SDK activities are already running. 70 | 71 | To start workflow worker: 72 | ```bash 73 | bin/samples/ec2demo-worker 74 | ``` 75 | 76 | To initiate workflow 77 | ```bash 78 | bin/samples/ec2demo-starter 79 | ``` 80 | -------------------------------------------------------------------------------- /activities/apigatewaymanagementapi/apigatewaymanagementapi.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package apigatewaymanagementapi 6 | 7 | import ( 8 | "context" 9 | 10 | "github.com/aws/aws-sdk-go/aws" 11 | "github.com/aws/aws-sdk-go/aws/request" 12 | "github.com/aws/aws-sdk-go/aws/session" 13 | 14 | "go.temporal.io/aws-sdk/internal" 15 | "github.com/aws/aws-sdk-go/service/apigatewaymanagementapi" 16 | "github.com/aws/aws-sdk-go/service/apigatewaymanagementapi/apigatewaymanagementapiiface" 17 | ) 18 | 19 | // ensure that imports are valid even if not used by the generated code 20 | var _ = internal.SetClientToken 21 | 22 | type _ request.Option 23 | 24 | // SessionFactory returns an aws.Session based on the activity context. 25 | type SessionFactory interface { 26 | Session(ctx context.Context) (*session.Session, error) 27 | } 28 | 29 | type Activities struct { 30 | client apigatewaymanagementapiiface.ApiGatewayManagementApiAPI 31 | 32 | sessionFactory SessionFactory 33 | } 34 | 35 | func NewActivities(sess *session.Session, config ...*aws.Config) *Activities { 36 | client := apigatewaymanagementapi.New(sess, config...) 37 | return &Activities{client: client} 38 | } 39 | 40 | func NewActivitiesWithSessionFactory(sessionFactory SessionFactory) *Activities { 41 | return &Activities{sessionFactory: sessionFactory} 42 | } 43 | 44 | func (a *Activities) getClient(ctx context.Context) (apigatewaymanagementapiiface.ApiGatewayManagementApiAPI, error) { 45 | if a.client != nil { // No need to protect with mutex: we know the client never changes 46 | return a.client, nil 47 | } 48 | 49 | sess, err := a.sessionFactory.Session(ctx) 50 | if err != nil { 51 | return nil, internal.EncodeError(err) 52 | } 53 | 54 | return apigatewaymanagementapi.New(sess), nil 55 | } 56 | 57 | func (a *Activities) DeleteConnection(ctx context.Context, input *apigatewaymanagementapi.DeleteConnectionInput) (*apigatewaymanagementapi.DeleteConnectionOutput, error) { 58 | client, err := a.getClient(ctx) 59 | if err != nil { 60 | return nil, internal.EncodeError(err) 61 | } 62 | output, err := client.DeleteConnectionWithContext(ctx, input) 63 | 64 | return output, internal.EncodeError(err) 65 | } 66 | 67 | func (a *Activities) GetConnection(ctx context.Context, input *apigatewaymanagementapi.GetConnectionInput) (*apigatewaymanagementapi.GetConnectionOutput, error) { 68 | client, err := a.getClient(ctx) 69 | if err != nil { 70 | return nil, internal.EncodeError(err) 71 | } 72 | output, err := client.GetConnectionWithContext(ctx, input) 73 | 74 | return output, internal.EncodeError(err) 75 | } 76 | 77 | func (a *Activities) PostToConnection(ctx context.Context, input *apigatewaymanagementapi.PostToConnectionInput) (*apigatewaymanagementapi.PostToConnectionOutput, error) { 78 | client, err := a.getClient(ctx) 79 | if err != nil { 80 | return nil, internal.EncodeError(err) 81 | } 82 | output, err := client.PostToConnectionWithContext(ctx, input) 83 | 84 | return output, internal.EncodeError(err) 85 | } 86 | -------------------------------------------------------------------------------- /activities/cloudsearchdomain/cloudsearchdomain.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package cloudsearchdomain 6 | 7 | import ( 8 | "context" 9 | 10 | "github.com/aws/aws-sdk-go/aws" 11 | "github.com/aws/aws-sdk-go/aws/request" 12 | "github.com/aws/aws-sdk-go/aws/session" 13 | 14 | "go.temporal.io/aws-sdk/internal" 15 | "github.com/aws/aws-sdk-go/service/cloudsearchdomain" 16 | "github.com/aws/aws-sdk-go/service/cloudsearchdomain/cloudsearchdomainiface" 17 | ) 18 | 19 | // ensure that imports are valid even if not used by the generated code 20 | var _ = internal.SetClientToken 21 | 22 | type _ request.Option 23 | 24 | // SessionFactory returns an aws.Session based on the activity context. 25 | type SessionFactory interface { 26 | Session(ctx context.Context) (*session.Session, error) 27 | } 28 | 29 | type Activities struct { 30 | client cloudsearchdomainiface.CloudSearchDomainAPI 31 | 32 | sessionFactory SessionFactory 33 | } 34 | 35 | func NewActivities(sess *session.Session, config ...*aws.Config) *Activities { 36 | client := cloudsearchdomain.New(sess, config...) 37 | return &Activities{client: client} 38 | } 39 | 40 | func NewActivitiesWithSessionFactory(sessionFactory SessionFactory) *Activities { 41 | return &Activities{sessionFactory: sessionFactory} 42 | } 43 | 44 | func (a *Activities) getClient(ctx context.Context) (cloudsearchdomainiface.CloudSearchDomainAPI, error) { 45 | if a.client != nil { // No need to protect with mutex: we know the client never changes 46 | return a.client, nil 47 | } 48 | 49 | sess, err := a.sessionFactory.Session(ctx) 50 | if err != nil { 51 | return nil, internal.EncodeError(err) 52 | } 53 | 54 | return cloudsearchdomain.New(sess), nil 55 | } 56 | 57 | func (a *Activities) Search(ctx context.Context, input *cloudsearchdomain.SearchInput) (*cloudsearchdomain.SearchOutput, error) { 58 | client, err := a.getClient(ctx) 59 | if err != nil { 60 | return nil, internal.EncodeError(err) 61 | } 62 | output, err := client.SearchWithContext(ctx, input) 63 | 64 | return output, internal.EncodeError(err) 65 | } 66 | 67 | func (a *Activities) Suggest(ctx context.Context, input *cloudsearchdomain.SuggestInput) (*cloudsearchdomain.SuggestOutput, error) { 68 | client, err := a.getClient(ctx) 69 | if err != nil { 70 | return nil, internal.EncodeError(err) 71 | } 72 | output, err := client.SuggestWithContext(ctx, input) 73 | 74 | return output, internal.EncodeError(err) 75 | } 76 | 77 | func (a *Activities) UploadDocuments(ctx context.Context, input *cloudsearchdomain.UploadDocumentsInput) (*cloudsearchdomain.UploadDocumentsOutput, error) { 78 | client, err := a.getClient(ctx) 79 | if err != nil { 80 | return nil, internal.EncodeError(err) 81 | } 82 | output, err := client.UploadDocumentsWithContext(ctx, input) 83 | 84 | return output, internal.EncodeError(err) 85 | } 86 | -------------------------------------------------------------------------------- /activities/ec2instanceconnect/ec2instanceconnect.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package ec2instanceconnect 6 | 7 | import ( 8 | "context" 9 | 10 | "github.com/aws/aws-sdk-go/aws" 11 | "github.com/aws/aws-sdk-go/aws/request" 12 | "github.com/aws/aws-sdk-go/aws/session" 13 | 14 | "go.temporal.io/aws-sdk/internal" 15 | "github.com/aws/aws-sdk-go/service/ec2instanceconnect" 16 | "github.com/aws/aws-sdk-go/service/ec2instanceconnect/ec2instanceconnectiface" 17 | ) 18 | 19 | // ensure that imports are valid even if not used by the generated code 20 | var _ = internal.SetClientToken 21 | 22 | type _ request.Option 23 | 24 | // SessionFactory returns an aws.Session based on the activity context. 25 | type SessionFactory interface { 26 | Session(ctx context.Context) (*session.Session, error) 27 | } 28 | 29 | type Activities struct { 30 | client ec2instanceconnectiface.EC2InstanceConnectAPI 31 | 32 | sessionFactory SessionFactory 33 | } 34 | 35 | func NewActivities(sess *session.Session, config ...*aws.Config) *Activities { 36 | client := ec2instanceconnect.New(sess, config...) 37 | return &Activities{client: client} 38 | } 39 | 40 | func NewActivitiesWithSessionFactory(sessionFactory SessionFactory) *Activities { 41 | return &Activities{sessionFactory: sessionFactory} 42 | } 43 | 44 | func (a *Activities) getClient(ctx context.Context) (ec2instanceconnectiface.EC2InstanceConnectAPI, error) { 45 | if a.client != nil { // No need to protect with mutex: we know the client never changes 46 | return a.client, nil 47 | } 48 | 49 | sess, err := a.sessionFactory.Session(ctx) 50 | if err != nil { 51 | return nil, internal.EncodeError(err) 52 | } 53 | 54 | return ec2instanceconnect.New(sess), nil 55 | } 56 | 57 | func (a *Activities) SendSSHPublicKey(ctx context.Context, input *ec2instanceconnect.SendSSHPublicKeyInput) (*ec2instanceconnect.SendSSHPublicKeyOutput, error) { 58 | client, err := a.getClient(ctx) 59 | if err != nil { 60 | return nil, internal.EncodeError(err) 61 | } 62 | output, err := client.SendSSHPublicKeyWithContext(ctx, input) 63 | 64 | return output, internal.EncodeError(err) 65 | } 66 | -------------------------------------------------------------------------------- /activities/forecastqueryservice/forecastqueryservice.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package forecastqueryservice 6 | 7 | import ( 8 | "context" 9 | 10 | "github.com/aws/aws-sdk-go/aws" 11 | "github.com/aws/aws-sdk-go/aws/request" 12 | "github.com/aws/aws-sdk-go/aws/session" 13 | 14 | "go.temporal.io/aws-sdk/internal" 15 | "github.com/aws/aws-sdk-go/service/forecastqueryservice" 16 | "github.com/aws/aws-sdk-go/service/forecastqueryservice/forecastqueryserviceiface" 17 | ) 18 | 19 | // ensure that imports are valid even if not used by the generated code 20 | var _ = internal.SetClientToken 21 | 22 | type _ request.Option 23 | 24 | // SessionFactory returns an aws.Session based on the activity context. 25 | type SessionFactory interface { 26 | Session(ctx context.Context) (*session.Session, error) 27 | } 28 | 29 | type Activities struct { 30 | client forecastqueryserviceiface.ForecastQueryServiceAPI 31 | 32 | sessionFactory SessionFactory 33 | } 34 | 35 | func NewActivities(sess *session.Session, config ...*aws.Config) *Activities { 36 | client := forecastqueryservice.New(sess, config...) 37 | return &Activities{client: client} 38 | } 39 | 40 | func NewActivitiesWithSessionFactory(sessionFactory SessionFactory) *Activities { 41 | return &Activities{sessionFactory: sessionFactory} 42 | } 43 | 44 | func (a *Activities) getClient(ctx context.Context) (forecastqueryserviceiface.ForecastQueryServiceAPI, error) { 45 | if a.client != nil { // No need to protect with mutex: we know the client never changes 46 | return a.client, nil 47 | } 48 | 49 | sess, err := a.sessionFactory.Session(ctx) 50 | if err != nil { 51 | return nil, internal.EncodeError(err) 52 | } 53 | 54 | return forecastqueryservice.New(sess), nil 55 | } 56 | 57 | func (a *Activities) QueryForecast(ctx context.Context, input *forecastqueryservice.QueryForecastInput) (*forecastqueryservice.QueryForecastOutput, error) { 58 | client, err := a.getClient(ctx) 59 | if err != nil { 60 | return nil, internal.EncodeError(err) 61 | } 62 | output, err := client.QueryForecastWithContext(ctx, input) 63 | 64 | return output, internal.EncodeError(err) 65 | } 66 | -------------------------------------------------------------------------------- /activities/honeycode/honeycode.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package honeycode 6 | 7 | import ( 8 | "context" 9 | 10 | "github.com/aws/aws-sdk-go/aws" 11 | "github.com/aws/aws-sdk-go/aws/request" 12 | "github.com/aws/aws-sdk-go/aws/session" 13 | 14 | "go.temporal.io/aws-sdk/internal" 15 | "github.com/aws/aws-sdk-go/service/honeycode" 16 | "github.com/aws/aws-sdk-go/service/honeycode/honeycodeiface" 17 | ) 18 | 19 | // ensure that imports are valid even if not used by the generated code 20 | var _ = internal.SetClientToken 21 | 22 | type _ request.Option 23 | 24 | // SessionFactory returns an aws.Session based on the activity context. 25 | type SessionFactory interface { 26 | Session(ctx context.Context) (*session.Session, error) 27 | } 28 | 29 | type Activities struct { 30 | client honeycodeiface.HoneycodeAPI 31 | 32 | sessionFactory SessionFactory 33 | } 34 | 35 | func NewActivities(sess *session.Session, config ...*aws.Config) *Activities { 36 | client := honeycode.New(sess, config...) 37 | return &Activities{client: client} 38 | } 39 | 40 | func NewActivitiesWithSessionFactory(sessionFactory SessionFactory) *Activities { 41 | return &Activities{sessionFactory: sessionFactory} 42 | } 43 | 44 | func (a *Activities) getClient(ctx context.Context) (honeycodeiface.HoneycodeAPI, error) { 45 | if a.client != nil { // No need to protect with mutex: we know the client never changes 46 | return a.client, nil 47 | } 48 | 49 | sess, err := a.sessionFactory.Session(ctx) 50 | if err != nil { 51 | return nil, internal.EncodeError(err) 52 | } 53 | 54 | return honeycode.New(sess), nil 55 | } 56 | 57 | func (a *Activities) GetScreenData(ctx context.Context, input *honeycode.GetScreenDataInput) (*honeycode.GetScreenDataOutput, error) { 58 | client, err := a.getClient(ctx) 59 | if err != nil { 60 | return nil, internal.EncodeError(err) 61 | } 62 | output, err := client.GetScreenDataWithContext(ctx, input) 63 | 64 | return output, internal.EncodeError(err) 65 | } 66 | 67 | func (a *Activities) InvokeScreenAutomation(ctx context.Context, input *honeycode.InvokeScreenAutomationInput) (*honeycode.InvokeScreenAutomationOutput, error) { 68 | client, err := a.getClient(ctx) 69 | if err != nil { 70 | return nil, internal.EncodeError(err) 71 | } 72 | output, err := client.InvokeScreenAutomationWithContext(ctx, input) 73 | 74 | return output, internal.EncodeError(err) 75 | } 76 | -------------------------------------------------------------------------------- /activities/identitystore/identitystore.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package identitystore 6 | 7 | import ( 8 | "context" 9 | 10 | "github.com/aws/aws-sdk-go/aws" 11 | "github.com/aws/aws-sdk-go/aws/request" 12 | "github.com/aws/aws-sdk-go/aws/session" 13 | 14 | "go.temporal.io/aws-sdk/internal" 15 | "github.com/aws/aws-sdk-go/service/identitystore" 16 | "github.com/aws/aws-sdk-go/service/identitystore/identitystoreiface" 17 | ) 18 | 19 | // ensure that imports are valid even if not used by the generated code 20 | var _ = internal.SetClientToken 21 | 22 | type _ request.Option 23 | 24 | // SessionFactory returns an aws.Session based on the activity context. 25 | type SessionFactory interface { 26 | Session(ctx context.Context) (*session.Session, error) 27 | } 28 | 29 | type Activities struct { 30 | client identitystoreiface.IdentityStoreAPI 31 | 32 | sessionFactory SessionFactory 33 | } 34 | 35 | func NewActivities(sess *session.Session, config ...*aws.Config) *Activities { 36 | client := identitystore.New(sess, config...) 37 | return &Activities{client: client} 38 | } 39 | 40 | func NewActivitiesWithSessionFactory(sessionFactory SessionFactory) *Activities { 41 | return &Activities{sessionFactory: sessionFactory} 42 | } 43 | 44 | func (a *Activities) getClient(ctx context.Context) (identitystoreiface.IdentityStoreAPI, error) { 45 | if a.client != nil { // No need to protect with mutex: we know the client never changes 46 | return a.client, nil 47 | } 48 | 49 | sess, err := a.sessionFactory.Session(ctx) 50 | if err != nil { 51 | return nil, internal.EncodeError(err) 52 | } 53 | 54 | return identitystore.New(sess), nil 55 | } 56 | 57 | func (a *Activities) DescribeGroup(ctx context.Context, input *identitystore.DescribeGroupInput) (*identitystore.DescribeGroupOutput, error) { 58 | client, err := a.getClient(ctx) 59 | if err != nil { 60 | return nil, internal.EncodeError(err) 61 | } 62 | output, err := client.DescribeGroupWithContext(ctx, input) 63 | 64 | return output, internal.EncodeError(err) 65 | } 66 | 67 | func (a *Activities) DescribeUser(ctx context.Context, input *identitystore.DescribeUserInput) (*identitystore.DescribeUserOutput, error) { 68 | client, err := a.getClient(ctx) 69 | if err != nil { 70 | return nil, internal.EncodeError(err) 71 | } 72 | output, err := client.DescribeUserWithContext(ctx, input) 73 | 74 | return output, internal.EncodeError(err) 75 | } 76 | 77 | func (a *Activities) ListGroups(ctx context.Context, input *identitystore.ListGroupsInput) (*identitystore.ListGroupsOutput, error) { 78 | client, err := a.getClient(ctx) 79 | if err != nil { 80 | return nil, internal.EncodeError(err) 81 | } 82 | output, err := client.ListGroupsWithContext(ctx, input) 83 | 84 | return output, internal.EncodeError(err) 85 | } 86 | 87 | func (a *Activities) ListUsers(ctx context.Context, input *identitystore.ListUsersInput) (*identitystore.ListUsersOutput, error) { 88 | client, err := a.getClient(ctx) 89 | if err != nil { 90 | return nil, internal.EncodeError(err) 91 | } 92 | output, err := client.ListUsersWithContext(ctx, input) 93 | 94 | return output, internal.EncodeError(err) 95 | } 96 | -------------------------------------------------------------------------------- /activities/kinesisvideomedia/kinesisvideomedia.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package kinesisvideomedia 6 | 7 | import ( 8 | "context" 9 | 10 | "github.com/aws/aws-sdk-go/aws" 11 | "github.com/aws/aws-sdk-go/aws/request" 12 | "github.com/aws/aws-sdk-go/aws/session" 13 | 14 | "go.temporal.io/aws-sdk/internal" 15 | "github.com/aws/aws-sdk-go/service/kinesisvideomedia" 16 | "github.com/aws/aws-sdk-go/service/kinesisvideomedia/kinesisvideomediaiface" 17 | ) 18 | 19 | // ensure that imports are valid even if not used by the generated code 20 | var _ = internal.SetClientToken 21 | 22 | type _ request.Option 23 | 24 | // SessionFactory returns an aws.Session based on the activity context. 25 | type SessionFactory interface { 26 | Session(ctx context.Context) (*session.Session, error) 27 | } 28 | 29 | type Activities struct { 30 | client kinesisvideomediaiface.KinesisVideoMediaAPI 31 | 32 | sessionFactory SessionFactory 33 | } 34 | 35 | func NewActivities(sess *session.Session, config ...*aws.Config) *Activities { 36 | client := kinesisvideomedia.New(sess, config...) 37 | return &Activities{client: client} 38 | } 39 | 40 | func NewActivitiesWithSessionFactory(sessionFactory SessionFactory) *Activities { 41 | return &Activities{sessionFactory: sessionFactory} 42 | } 43 | 44 | func (a *Activities) getClient(ctx context.Context) (kinesisvideomediaiface.KinesisVideoMediaAPI, error) { 45 | if a.client != nil { // No need to protect with mutex: we know the client never changes 46 | return a.client, nil 47 | } 48 | 49 | sess, err := a.sessionFactory.Session(ctx) 50 | if err != nil { 51 | return nil, internal.EncodeError(err) 52 | } 53 | 54 | return kinesisvideomedia.New(sess), nil 55 | } 56 | 57 | func (a *Activities) GetMedia(ctx context.Context, input *kinesisvideomedia.GetMediaInput) (*kinesisvideomedia.GetMediaOutput, error) { 58 | client, err := a.getClient(ctx) 59 | if err != nil { 60 | return nil, internal.EncodeError(err) 61 | } 62 | output, err := client.GetMediaWithContext(ctx, input) 63 | 64 | return output, internal.EncodeError(err) 65 | } 66 | -------------------------------------------------------------------------------- /activities/kinesisvideosignalingchannels/kinesisvideosignalingchannels.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package kinesisvideosignalingchannels 6 | 7 | import ( 8 | "context" 9 | 10 | "github.com/aws/aws-sdk-go/aws" 11 | "github.com/aws/aws-sdk-go/aws/request" 12 | "github.com/aws/aws-sdk-go/aws/session" 13 | 14 | "go.temporal.io/aws-sdk/internal" 15 | "github.com/aws/aws-sdk-go/service/kinesisvideosignalingchannels" 16 | "github.com/aws/aws-sdk-go/service/kinesisvideosignalingchannels/kinesisvideosignalingchannelsiface" 17 | ) 18 | 19 | // ensure that imports are valid even if not used by the generated code 20 | var _ = internal.SetClientToken 21 | 22 | type _ request.Option 23 | 24 | // SessionFactory returns an aws.Session based on the activity context. 25 | type SessionFactory interface { 26 | Session(ctx context.Context) (*session.Session, error) 27 | } 28 | 29 | type Activities struct { 30 | client kinesisvideosignalingchannelsiface.KinesisVideoSignalingChannelsAPI 31 | 32 | sessionFactory SessionFactory 33 | } 34 | 35 | func NewActivities(sess *session.Session, config ...*aws.Config) *Activities { 36 | client := kinesisvideosignalingchannels.New(sess, config...) 37 | return &Activities{client: client} 38 | } 39 | 40 | func NewActivitiesWithSessionFactory(sessionFactory SessionFactory) *Activities { 41 | return &Activities{sessionFactory: sessionFactory} 42 | } 43 | 44 | func (a *Activities) getClient(ctx context.Context) (kinesisvideosignalingchannelsiface.KinesisVideoSignalingChannelsAPI, error) { 45 | if a.client != nil { // No need to protect with mutex: we know the client never changes 46 | return a.client, nil 47 | } 48 | 49 | sess, err := a.sessionFactory.Session(ctx) 50 | if err != nil { 51 | return nil, internal.EncodeError(err) 52 | } 53 | 54 | return kinesisvideosignalingchannels.New(sess), nil 55 | } 56 | 57 | func (a *Activities) GetIceServerConfig(ctx context.Context, input *kinesisvideosignalingchannels.GetIceServerConfigInput) (*kinesisvideosignalingchannels.GetIceServerConfigOutput, error) { 58 | client, err := a.getClient(ctx) 59 | if err != nil { 60 | return nil, internal.EncodeError(err) 61 | } 62 | output, err := client.GetIceServerConfigWithContext(ctx, input) 63 | 64 | return output, internal.EncodeError(err) 65 | } 66 | 67 | func (a *Activities) SendAlexaOfferToMaster(ctx context.Context, input *kinesisvideosignalingchannels.SendAlexaOfferToMasterInput) (*kinesisvideosignalingchannels.SendAlexaOfferToMasterOutput, error) { 68 | client, err := a.getClient(ctx) 69 | if err != nil { 70 | return nil, internal.EncodeError(err) 71 | } 72 | output, err := client.SendAlexaOfferToMasterWithContext(ctx, input) 73 | 74 | return output, internal.EncodeError(err) 75 | } 76 | -------------------------------------------------------------------------------- /activities/marketplacecommerceanalytics/marketplacecommerceanalytics.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package marketplacecommerceanalytics 6 | 7 | import ( 8 | "context" 9 | 10 | "github.com/aws/aws-sdk-go/aws" 11 | "github.com/aws/aws-sdk-go/aws/request" 12 | "github.com/aws/aws-sdk-go/aws/session" 13 | 14 | "go.temporal.io/aws-sdk/internal" 15 | "github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics" 16 | "github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/marketplacecommerceanalyticsiface" 17 | ) 18 | 19 | // ensure that imports are valid even if not used by the generated code 20 | var _ = internal.SetClientToken 21 | 22 | type _ request.Option 23 | 24 | // SessionFactory returns an aws.Session based on the activity context. 25 | type SessionFactory interface { 26 | Session(ctx context.Context) (*session.Session, error) 27 | } 28 | 29 | type Activities struct { 30 | client marketplacecommerceanalyticsiface.MarketplaceCommerceAnalyticsAPI 31 | 32 | sessionFactory SessionFactory 33 | } 34 | 35 | func NewActivities(sess *session.Session, config ...*aws.Config) *Activities { 36 | client := marketplacecommerceanalytics.New(sess, config...) 37 | return &Activities{client: client} 38 | } 39 | 40 | func NewActivitiesWithSessionFactory(sessionFactory SessionFactory) *Activities { 41 | return &Activities{sessionFactory: sessionFactory} 42 | } 43 | 44 | func (a *Activities) getClient(ctx context.Context) (marketplacecommerceanalyticsiface.MarketplaceCommerceAnalyticsAPI, error) { 45 | if a.client != nil { // No need to protect with mutex: we know the client never changes 46 | return a.client, nil 47 | } 48 | 49 | sess, err := a.sessionFactory.Session(ctx) 50 | if err != nil { 51 | return nil, internal.EncodeError(err) 52 | } 53 | 54 | return marketplacecommerceanalytics.New(sess), nil 55 | } 56 | 57 | func (a *Activities) GenerateDataSet(ctx context.Context, input *marketplacecommerceanalytics.GenerateDataSetInput) (*marketplacecommerceanalytics.GenerateDataSetOutput, error) { 58 | client, err := a.getClient(ctx) 59 | if err != nil { 60 | return nil, internal.EncodeError(err) 61 | } 62 | output, err := client.GenerateDataSetWithContext(ctx, input) 63 | 64 | return output, internal.EncodeError(err) 65 | } 66 | 67 | func (a *Activities) StartSupportDataExport(ctx context.Context, input *marketplacecommerceanalytics.StartSupportDataExportInput) (*marketplacecommerceanalytics.StartSupportDataExportOutput, error) { 68 | client, err := a.getClient(ctx) 69 | if err != nil { 70 | return nil, internal.EncodeError(err) 71 | } 72 | output, err := client.StartSupportDataExportWithContext(ctx, input) 73 | 74 | return output, internal.EncodeError(err) 75 | } 76 | -------------------------------------------------------------------------------- /activities/marketplaceentitlementservice/marketplaceentitlementservice.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package marketplaceentitlementservice 6 | 7 | import ( 8 | "context" 9 | 10 | "github.com/aws/aws-sdk-go/aws" 11 | "github.com/aws/aws-sdk-go/aws/request" 12 | "github.com/aws/aws-sdk-go/aws/session" 13 | 14 | "go.temporal.io/aws-sdk/internal" 15 | "github.com/aws/aws-sdk-go/service/marketplaceentitlementservice" 16 | "github.com/aws/aws-sdk-go/service/marketplaceentitlementservice/marketplaceentitlementserviceiface" 17 | ) 18 | 19 | // ensure that imports are valid even if not used by the generated code 20 | var _ = internal.SetClientToken 21 | 22 | type _ request.Option 23 | 24 | // SessionFactory returns an aws.Session based on the activity context. 25 | type SessionFactory interface { 26 | Session(ctx context.Context) (*session.Session, error) 27 | } 28 | 29 | type Activities struct { 30 | client marketplaceentitlementserviceiface.MarketplaceEntitlementServiceAPI 31 | 32 | sessionFactory SessionFactory 33 | } 34 | 35 | func NewActivities(sess *session.Session, config ...*aws.Config) *Activities { 36 | client := marketplaceentitlementservice.New(sess, config...) 37 | return &Activities{client: client} 38 | } 39 | 40 | func NewActivitiesWithSessionFactory(sessionFactory SessionFactory) *Activities { 41 | return &Activities{sessionFactory: sessionFactory} 42 | } 43 | 44 | func (a *Activities) getClient(ctx context.Context) (marketplaceentitlementserviceiface.MarketplaceEntitlementServiceAPI, error) { 45 | if a.client != nil { // No need to protect with mutex: we know the client never changes 46 | return a.client, nil 47 | } 48 | 49 | sess, err := a.sessionFactory.Session(ctx) 50 | if err != nil { 51 | return nil, internal.EncodeError(err) 52 | } 53 | 54 | return marketplaceentitlementservice.New(sess), nil 55 | } 56 | 57 | func (a *Activities) GetEntitlements(ctx context.Context, input *marketplaceentitlementservice.GetEntitlementsInput) (*marketplaceentitlementservice.GetEntitlementsOutput, error) { 58 | client, err := a.getClient(ctx) 59 | if err != nil { 60 | return nil, internal.EncodeError(err) 61 | } 62 | output, err := client.GetEntitlementsWithContext(ctx, input) 63 | 64 | return output, internal.EncodeError(err) 65 | } 66 | -------------------------------------------------------------------------------- /activities/migrationhubconfig/migrationhubconfig.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package migrationhubconfig 6 | 7 | import ( 8 | "context" 9 | 10 | "github.com/aws/aws-sdk-go/aws" 11 | "github.com/aws/aws-sdk-go/aws/request" 12 | "github.com/aws/aws-sdk-go/aws/session" 13 | 14 | "go.temporal.io/aws-sdk/internal" 15 | "github.com/aws/aws-sdk-go/service/migrationhubconfig" 16 | "github.com/aws/aws-sdk-go/service/migrationhubconfig/migrationhubconfigiface" 17 | ) 18 | 19 | // ensure that imports are valid even if not used by the generated code 20 | var _ = internal.SetClientToken 21 | 22 | type _ request.Option 23 | 24 | // SessionFactory returns an aws.Session based on the activity context. 25 | type SessionFactory interface { 26 | Session(ctx context.Context) (*session.Session, error) 27 | } 28 | 29 | type Activities struct { 30 | client migrationhubconfigiface.MigrationHubConfigAPI 31 | 32 | sessionFactory SessionFactory 33 | } 34 | 35 | func NewActivities(sess *session.Session, config ...*aws.Config) *Activities { 36 | client := migrationhubconfig.New(sess, config...) 37 | return &Activities{client: client} 38 | } 39 | 40 | func NewActivitiesWithSessionFactory(sessionFactory SessionFactory) *Activities { 41 | return &Activities{sessionFactory: sessionFactory} 42 | } 43 | 44 | func (a *Activities) getClient(ctx context.Context) (migrationhubconfigiface.MigrationHubConfigAPI, error) { 45 | if a.client != nil { // No need to protect with mutex: we know the client never changes 46 | return a.client, nil 47 | } 48 | 49 | sess, err := a.sessionFactory.Session(ctx) 50 | if err != nil { 51 | return nil, internal.EncodeError(err) 52 | } 53 | 54 | return migrationhubconfig.New(sess), nil 55 | } 56 | 57 | func (a *Activities) CreateHomeRegionControl(ctx context.Context, input *migrationhubconfig.CreateHomeRegionControlInput) (*migrationhubconfig.CreateHomeRegionControlOutput, error) { 58 | client, err := a.getClient(ctx) 59 | if err != nil { 60 | return nil, internal.EncodeError(err) 61 | } 62 | output, err := client.CreateHomeRegionControlWithContext(ctx, input) 63 | 64 | return output, internal.EncodeError(err) 65 | } 66 | 67 | func (a *Activities) DescribeHomeRegionControls(ctx context.Context, input *migrationhubconfig.DescribeHomeRegionControlsInput) (*migrationhubconfig.DescribeHomeRegionControlsOutput, error) { 68 | client, err := a.getClient(ctx) 69 | if err != nil { 70 | return nil, internal.EncodeError(err) 71 | } 72 | output, err := client.DescribeHomeRegionControlsWithContext(ctx, input) 73 | 74 | return output, internal.EncodeError(err) 75 | } 76 | 77 | func (a *Activities) GetHomeRegion(ctx context.Context, input *migrationhubconfig.GetHomeRegionInput) (*migrationhubconfig.GetHomeRegionOutput, error) { 78 | client, err := a.getClient(ctx) 79 | if err != nil { 80 | return nil, internal.EncodeError(err) 81 | } 82 | output, err := client.GetHomeRegionWithContext(ctx, input) 83 | 84 | return output, internal.EncodeError(err) 85 | } 86 | -------------------------------------------------------------------------------- /activities/mobileanalytics/mobileanalytics.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package mobileanalytics 6 | 7 | import ( 8 | "context" 9 | 10 | "github.com/aws/aws-sdk-go/aws" 11 | "github.com/aws/aws-sdk-go/aws/request" 12 | "github.com/aws/aws-sdk-go/aws/session" 13 | 14 | "go.temporal.io/aws-sdk/internal" 15 | "github.com/aws/aws-sdk-go/service/mobileanalytics" 16 | "github.com/aws/aws-sdk-go/service/mobileanalytics/mobileanalyticsiface" 17 | ) 18 | 19 | // ensure that imports are valid even if not used by the generated code 20 | var _ = internal.SetClientToken 21 | 22 | type _ request.Option 23 | 24 | // SessionFactory returns an aws.Session based on the activity context. 25 | type SessionFactory interface { 26 | Session(ctx context.Context) (*session.Session, error) 27 | } 28 | 29 | type Activities struct { 30 | client mobileanalyticsiface.MobileAnalyticsAPI 31 | 32 | sessionFactory SessionFactory 33 | } 34 | 35 | func NewActivities(sess *session.Session, config ...*aws.Config) *Activities { 36 | client := mobileanalytics.New(sess, config...) 37 | return &Activities{client: client} 38 | } 39 | 40 | func NewActivitiesWithSessionFactory(sessionFactory SessionFactory) *Activities { 41 | return &Activities{sessionFactory: sessionFactory} 42 | } 43 | 44 | func (a *Activities) getClient(ctx context.Context) (mobileanalyticsiface.MobileAnalyticsAPI, error) { 45 | if a.client != nil { // No need to protect with mutex: we know the client never changes 46 | return a.client, nil 47 | } 48 | 49 | sess, err := a.sessionFactory.Session(ctx) 50 | if err != nil { 51 | return nil, internal.EncodeError(err) 52 | } 53 | 54 | return mobileanalytics.New(sess), nil 55 | } 56 | 57 | func (a *Activities) PutEvents(ctx context.Context, input *mobileanalytics.PutEventsInput) (*mobileanalytics.PutEventsOutput, error) { 58 | client, err := a.getClient(ctx) 59 | if err != nil { 60 | return nil, internal.EncodeError(err) 61 | } 62 | output, err := client.PutEventsWithContext(ctx, input) 63 | 64 | return output, internal.EncodeError(err) 65 | } 66 | -------------------------------------------------------------------------------- /activities/personalizeevents/personalizeevents.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package personalizeevents 6 | 7 | import ( 8 | "context" 9 | 10 | "github.com/aws/aws-sdk-go/aws" 11 | "github.com/aws/aws-sdk-go/aws/request" 12 | "github.com/aws/aws-sdk-go/aws/session" 13 | 14 | "go.temporal.io/aws-sdk/internal" 15 | "github.com/aws/aws-sdk-go/service/personalizeevents" 16 | "github.com/aws/aws-sdk-go/service/personalizeevents/personalizeeventsiface" 17 | ) 18 | 19 | // ensure that imports are valid even if not used by the generated code 20 | var _ = internal.SetClientToken 21 | 22 | type _ request.Option 23 | 24 | // SessionFactory returns an aws.Session based on the activity context. 25 | type SessionFactory interface { 26 | Session(ctx context.Context) (*session.Session, error) 27 | } 28 | 29 | type Activities struct { 30 | client personalizeeventsiface.PersonalizeEventsAPI 31 | 32 | sessionFactory SessionFactory 33 | } 34 | 35 | func NewActivities(sess *session.Session, config ...*aws.Config) *Activities { 36 | client := personalizeevents.New(sess, config...) 37 | return &Activities{client: client} 38 | } 39 | 40 | func NewActivitiesWithSessionFactory(sessionFactory SessionFactory) *Activities { 41 | return &Activities{sessionFactory: sessionFactory} 42 | } 43 | 44 | func (a *Activities) getClient(ctx context.Context) (personalizeeventsiface.PersonalizeEventsAPI, error) { 45 | if a.client != nil { // No need to protect with mutex: we know the client never changes 46 | return a.client, nil 47 | } 48 | 49 | sess, err := a.sessionFactory.Session(ctx) 50 | if err != nil { 51 | return nil, internal.EncodeError(err) 52 | } 53 | 54 | return personalizeevents.New(sess), nil 55 | } 56 | 57 | func (a *Activities) PutEvents(ctx context.Context, input *personalizeevents.PutEventsInput) (*personalizeevents.PutEventsOutput, error) { 58 | client, err := a.getClient(ctx) 59 | if err != nil { 60 | return nil, internal.EncodeError(err) 61 | } 62 | output, err := client.PutEventsWithContext(ctx, input) 63 | 64 | return output, internal.EncodeError(err) 65 | } 66 | 67 | func (a *Activities) PutItems(ctx context.Context, input *personalizeevents.PutItemsInput) (*personalizeevents.PutItemsOutput, error) { 68 | client, err := a.getClient(ctx) 69 | if err != nil { 70 | return nil, internal.EncodeError(err) 71 | } 72 | output, err := client.PutItemsWithContext(ctx, input) 73 | 74 | return output, internal.EncodeError(err) 75 | } 76 | 77 | func (a *Activities) PutUsers(ctx context.Context, input *personalizeevents.PutUsersInput) (*personalizeevents.PutUsersOutput, error) { 78 | client, err := a.getClient(ctx) 79 | if err != nil { 80 | return nil, internal.EncodeError(err) 81 | } 82 | output, err := client.PutUsersWithContext(ctx, input) 83 | 84 | return output, internal.EncodeError(err) 85 | } 86 | -------------------------------------------------------------------------------- /activities/personalizeruntime/personalizeruntime.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package personalizeruntime 6 | 7 | import ( 8 | "context" 9 | 10 | "github.com/aws/aws-sdk-go/aws" 11 | "github.com/aws/aws-sdk-go/aws/request" 12 | "github.com/aws/aws-sdk-go/aws/session" 13 | 14 | "go.temporal.io/aws-sdk/internal" 15 | "github.com/aws/aws-sdk-go/service/personalizeruntime" 16 | "github.com/aws/aws-sdk-go/service/personalizeruntime/personalizeruntimeiface" 17 | ) 18 | 19 | // ensure that imports are valid even if not used by the generated code 20 | var _ = internal.SetClientToken 21 | 22 | type _ request.Option 23 | 24 | // SessionFactory returns an aws.Session based on the activity context. 25 | type SessionFactory interface { 26 | Session(ctx context.Context) (*session.Session, error) 27 | } 28 | 29 | type Activities struct { 30 | client personalizeruntimeiface.PersonalizeRuntimeAPI 31 | 32 | sessionFactory SessionFactory 33 | } 34 | 35 | func NewActivities(sess *session.Session, config ...*aws.Config) *Activities { 36 | client := personalizeruntime.New(sess, config...) 37 | return &Activities{client: client} 38 | } 39 | 40 | func NewActivitiesWithSessionFactory(sessionFactory SessionFactory) *Activities { 41 | return &Activities{sessionFactory: sessionFactory} 42 | } 43 | 44 | func (a *Activities) getClient(ctx context.Context) (personalizeruntimeiface.PersonalizeRuntimeAPI, error) { 45 | if a.client != nil { // No need to protect with mutex: we know the client never changes 46 | return a.client, nil 47 | } 48 | 49 | sess, err := a.sessionFactory.Session(ctx) 50 | if err != nil { 51 | return nil, internal.EncodeError(err) 52 | } 53 | 54 | return personalizeruntime.New(sess), nil 55 | } 56 | 57 | func (a *Activities) GetPersonalizedRanking(ctx context.Context, input *personalizeruntime.GetPersonalizedRankingInput) (*personalizeruntime.GetPersonalizedRankingOutput, error) { 58 | client, err := a.getClient(ctx) 59 | if err != nil { 60 | return nil, internal.EncodeError(err) 61 | } 62 | output, err := client.GetPersonalizedRankingWithContext(ctx, input) 63 | 64 | return output, internal.EncodeError(err) 65 | } 66 | 67 | func (a *Activities) GetRecommendations(ctx context.Context, input *personalizeruntime.GetRecommendationsInput) (*personalizeruntime.GetRecommendationsOutput, error) { 68 | client, err := a.getClient(ctx) 69 | if err != nil { 70 | return nil, internal.EncodeError(err) 71 | } 72 | output, err := client.GetRecommendationsWithContext(ctx, input) 73 | 74 | return output, internal.EncodeError(err) 75 | } 76 | -------------------------------------------------------------------------------- /activities/pi/pi.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package pi 6 | 7 | import ( 8 | "context" 9 | 10 | "github.com/aws/aws-sdk-go/aws" 11 | "github.com/aws/aws-sdk-go/aws/request" 12 | "github.com/aws/aws-sdk-go/aws/session" 13 | 14 | "go.temporal.io/aws-sdk/internal" 15 | "github.com/aws/aws-sdk-go/service/pi" 16 | "github.com/aws/aws-sdk-go/service/pi/piiface" 17 | ) 18 | 19 | // ensure that imports are valid even if not used by the generated code 20 | var _ = internal.SetClientToken 21 | 22 | type _ request.Option 23 | 24 | // SessionFactory returns an aws.Session based on the activity context. 25 | type SessionFactory interface { 26 | Session(ctx context.Context) (*session.Session, error) 27 | } 28 | 29 | type Activities struct { 30 | client piiface.PIAPI 31 | 32 | sessionFactory SessionFactory 33 | } 34 | 35 | func NewActivities(sess *session.Session, config ...*aws.Config) *Activities { 36 | client := pi.New(sess, config...) 37 | return &Activities{client: client} 38 | } 39 | 40 | func NewActivitiesWithSessionFactory(sessionFactory SessionFactory) *Activities { 41 | return &Activities{sessionFactory: sessionFactory} 42 | } 43 | 44 | func (a *Activities) getClient(ctx context.Context) (piiface.PIAPI, error) { 45 | if a.client != nil { // No need to protect with mutex: we know the client never changes 46 | return a.client, nil 47 | } 48 | 49 | sess, err := a.sessionFactory.Session(ctx) 50 | if err != nil { 51 | return nil, internal.EncodeError(err) 52 | } 53 | 54 | return pi.New(sess), nil 55 | } 56 | 57 | func (a *Activities) DescribeDimensionKeys(ctx context.Context, input *pi.DescribeDimensionKeysInput) (*pi.DescribeDimensionKeysOutput, error) { 58 | client, err := a.getClient(ctx) 59 | if err != nil { 60 | return nil, internal.EncodeError(err) 61 | } 62 | output, err := client.DescribeDimensionKeysWithContext(ctx, input) 63 | 64 | return output, internal.EncodeError(err) 65 | } 66 | 67 | func (a *Activities) GetResourceMetrics(ctx context.Context, input *pi.GetResourceMetricsInput) (*pi.GetResourceMetricsOutput, error) { 68 | client, err := a.getClient(ctx) 69 | if err != nil { 70 | return nil, internal.EncodeError(err) 71 | } 72 | output, err := client.GetResourceMetricsWithContext(ctx, input) 73 | 74 | return output, internal.EncodeError(err) 75 | } 76 | -------------------------------------------------------------------------------- /activities/pricing/pricing.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package pricing 6 | 7 | import ( 8 | "context" 9 | 10 | "github.com/aws/aws-sdk-go/aws" 11 | "github.com/aws/aws-sdk-go/aws/request" 12 | "github.com/aws/aws-sdk-go/aws/session" 13 | 14 | "go.temporal.io/aws-sdk/internal" 15 | "github.com/aws/aws-sdk-go/service/pricing" 16 | "github.com/aws/aws-sdk-go/service/pricing/pricingiface" 17 | ) 18 | 19 | // ensure that imports are valid even if not used by the generated code 20 | var _ = internal.SetClientToken 21 | 22 | type _ request.Option 23 | 24 | // SessionFactory returns an aws.Session based on the activity context. 25 | type SessionFactory interface { 26 | Session(ctx context.Context) (*session.Session, error) 27 | } 28 | 29 | type Activities struct { 30 | client pricingiface.PricingAPI 31 | 32 | sessionFactory SessionFactory 33 | } 34 | 35 | func NewActivities(sess *session.Session, config ...*aws.Config) *Activities { 36 | client := pricing.New(sess, config...) 37 | return &Activities{client: client} 38 | } 39 | 40 | func NewActivitiesWithSessionFactory(sessionFactory SessionFactory) *Activities { 41 | return &Activities{sessionFactory: sessionFactory} 42 | } 43 | 44 | func (a *Activities) getClient(ctx context.Context) (pricingiface.PricingAPI, error) { 45 | if a.client != nil { // No need to protect with mutex: we know the client never changes 46 | return a.client, nil 47 | } 48 | 49 | sess, err := a.sessionFactory.Session(ctx) 50 | if err != nil { 51 | return nil, internal.EncodeError(err) 52 | } 53 | 54 | return pricing.New(sess), nil 55 | } 56 | 57 | func (a *Activities) DescribeServices(ctx context.Context, input *pricing.DescribeServicesInput) (*pricing.DescribeServicesOutput, error) { 58 | client, err := a.getClient(ctx) 59 | if err != nil { 60 | return nil, internal.EncodeError(err) 61 | } 62 | output, err := client.DescribeServicesWithContext(ctx, input) 63 | 64 | return output, internal.EncodeError(err) 65 | } 66 | 67 | func (a *Activities) GetAttributeValues(ctx context.Context, input *pricing.GetAttributeValuesInput) (*pricing.GetAttributeValuesOutput, error) { 68 | client, err := a.getClient(ctx) 69 | if err != nil { 70 | return nil, internal.EncodeError(err) 71 | } 72 | output, err := client.GetAttributeValuesWithContext(ctx, input) 73 | 74 | return output, internal.EncodeError(err) 75 | } 76 | 77 | func (a *Activities) GetProducts(ctx context.Context, input *pricing.GetProductsInput) (*pricing.GetProductsOutput, error) { 78 | client, err := a.getClient(ctx) 79 | if err != nil { 80 | return nil, internal.EncodeError(err) 81 | } 82 | output, err := client.GetProductsWithContext(ctx, input) 83 | 84 | return output, internal.EncodeError(err) 85 | } 86 | -------------------------------------------------------------------------------- /activities/qldbsession/qldbsession.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package qldbsession 6 | 7 | import ( 8 | "context" 9 | 10 | "github.com/aws/aws-sdk-go/aws" 11 | "github.com/aws/aws-sdk-go/aws/request" 12 | "github.com/aws/aws-sdk-go/aws/session" 13 | 14 | "go.temporal.io/aws-sdk/internal" 15 | "github.com/aws/aws-sdk-go/service/qldbsession" 16 | "github.com/aws/aws-sdk-go/service/qldbsession/qldbsessioniface" 17 | ) 18 | 19 | // ensure that imports are valid even if not used by the generated code 20 | var _ = internal.SetClientToken 21 | 22 | type _ request.Option 23 | 24 | // SessionFactory returns an aws.Session based on the activity context. 25 | type SessionFactory interface { 26 | Session(ctx context.Context) (*session.Session, error) 27 | } 28 | 29 | type Activities struct { 30 | client qldbsessioniface.QLDBSessionAPI 31 | 32 | sessionFactory SessionFactory 33 | } 34 | 35 | func NewActivities(sess *session.Session, config ...*aws.Config) *Activities { 36 | client := qldbsession.New(sess, config...) 37 | return &Activities{client: client} 38 | } 39 | 40 | func NewActivitiesWithSessionFactory(sessionFactory SessionFactory) *Activities { 41 | return &Activities{sessionFactory: sessionFactory} 42 | } 43 | 44 | func (a *Activities) getClient(ctx context.Context) (qldbsessioniface.QLDBSessionAPI, error) { 45 | if a.client != nil { // No need to protect with mutex: we know the client never changes 46 | return a.client, nil 47 | } 48 | 49 | sess, err := a.sessionFactory.Session(ctx) 50 | if err != nil { 51 | return nil, internal.EncodeError(err) 52 | } 53 | 54 | return qldbsession.New(sess), nil 55 | } 56 | 57 | func (a *Activities) SendCommand(ctx context.Context, input *qldbsession.SendCommandInput) (*qldbsession.SendCommandOutput, error) { 58 | client, err := a.getClient(ctx) 59 | if err != nil { 60 | return nil, internal.EncodeError(err) 61 | } 62 | output, err := client.SendCommandWithContext(ctx, input) 63 | 64 | return output, internal.EncodeError(err) 65 | } 66 | -------------------------------------------------------------------------------- /activities/s3outposts/s3outposts.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package s3outposts 6 | 7 | import ( 8 | "context" 9 | 10 | "github.com/aws/aws-sdk-go/aws" 11 | "github.com/aws/aws-sdk-go/aws/request" 12 | "github.com/aws/aws-sdk-go/aws/session" 13 | 14 | "go.temporal.io/aws-sdk/internal" 15 | "github.com/aws/aws-sdk-go/service/s3outposts" 16 | "github.com/aws/aws-sdk-go/service/s3outposts/s3outpostsiface" 17 | ) 18 | 19 | // ensure that imports are valid even if not used by the generated code 20 | var _ = internal.SetClientToken 21 | 22 | type _ request.Option 23 | 24 | // SessionFactory returns an aws.Session based on the activity context. 25 | type SessionFactory interface { 26 | Session(ctx context.Context) (*session.Session, error) 27 | } 28 | 29 | type Activities struct { 30 | client s3outpostsiface.S3OutpostsAPI 31 | 32 | sessionFactory SessionFactory 33 | } 34 | 35 | func NewActivities(sess *session.Session, config ...*aws.Config) *Activities { 36 | client := s3outposts.New(sess, config...) 37 | return &Activities{client: client} 38 | } 39 | 40 | func NewActivitiesWithSessionFactory(sessionFactory SessionFactory) *Activities { 41 | return &Activities{sessionFactory: sessionFactory} 42 | } 43 | 44 | func (a *Activities) getClient(ctx context.Context) (s3outpostsiface.S3OutpostsAPI, error) { 45 | if a.client != nil { // No need to protect with mutex: we know the client never changes 46 | return a.client, nil 47 | } 48 | 49 | sess, err := a.sessionFactory.Session(ctx) 50 | if err != nil { 51 | return nil, internal.EncodeError(err) 52 | } 53 | 54 | return s3outposts.New(sess), nil 55 | } 56 | 57 | func (a *Activities) CreateEndpoint(ctx context.Context, input *s3outposts.CreateEndpointInput) (*s3outposts.CreateEndpointOutput, error) { 58 | client, err := a.getClient(ctx) 59 | if err != nil { 60 | return nil, internal.EncodeError(err) 61 | } 62 | output, err := client.CreateEndpointWithContext(ctx, input) 63 | 64 | return output, internal.EncodeError(err) 65 | } 66 | 67 | func (a *Activities) DeleteEndpoint(ctx context.Context, input *s3outposts.DeleteEndpointInput) (*s3outposts.DeleteEndpointOutput, error) { 68 | client, err := a.getClient(ctx) 69 | if err != nil { 70 | return nil, internal.EncodeError(err) 71 | } 72 | output, err := client.DeleteEndpointWithContext(ctx, input) 73 | 74 | return output, internal.EncodeError(err) 75 | } 76 | 77 | func (a *Activities) ListEndpoints(ctx context.Context, input *s3outposts.ListEndpointsInput) (*s3outposts.ListEndpointsOutput, error) { 78 | client, err := a.getClient(ctx) 79 | if err != nil { 80 | return nil, internal.EncodeError(err) 81 | } 82 | output, err := client.ListEndpointsWithContext(ctx, input) 83 | 84 | return output, internal.EncodeError(err) 85 | } 86 | -------------------------------------------------------------------------------- /activities/sagemakerruntime/sagemakerruntime.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package sagemakerruntime 6 | 7 | import ( 8 | "context" 9 | 10 | "github.com/aws/aws-sdk-go/aws" 11 | "github.com/aws/aws-sdk-go/aws/request" 12 | "github.com/aws/aws-sdk-go/aws/session" 13 | 14 | "go.temporal.io/aws-sdk/internal" 15 | "github.com/aws/aws-sdk-go/service/sagemakerruntime" 16 | "github.com/aws/aws-sdk-go/service/sagemakerruntime/sagemakerruntimeiface" 17 | ) 18 | 19 | // ensure that imports are valid even if not used by the generated code 20 | var _ = internal.SetClientToken 21 | 22 | type _ request.Option 23 | 24 | // SessionFactory returns an aws.Session based on the activity context. 25 | type SessionFactory interface { 26 | Session(ctx context.Context) (*session.Session, error) 27 | } 28 | 29 | type Activities struct { 30 | client sagemakerruntimeiface.SageMakerRuntimeAPI 31 | 32 | sessionFactory SessionFactory 33 | } 34 | 35 | func NewActivities(sess *session.Session, config ...*aws.Config) *Activities { 36 | client := sagemakerruntime.New(sess, config...) 37 | return &Activities{client: client} 38 | } 39 | 40 | func NewActivitiesWithSessionFactory(sessionFactory SessionFactory) *Activities { 41 | return &Activities{sessionFactory: sessionFactory} 42 | } 43 | 44 | func (a *Activities) getClient(ctx context.Context) (sagemakerruntimeiface.SageMakerRuntimeAPI, error) { 45 | if a.client != nil { // No need to protect with mutex: we know the client never changes 46 | return a.client, nil 47 | } 48 | 49 | sess, err := a.sessionFactory.Session(ctx) 50 | if err != nil { 51 | return nil, internal.EncodeError(err) 52 | } 53 | 54 | return sagemakerruntime.New(sess), nil 55 | } 56 | 57 | func (a *Activities) InvokeEndpoint(ctx context.Context, input *sagemakerruntime.InvokeEndpointInput) (*sagemakerruntime.InvokeEndpointOutput, error) { 58 | client, err := a.getClient(ctx) 59 | if err != nil { 60 | return nil, internal.EncodeError(err) 61 | } 62 | output, err := client.InvokeEndpointWithContext(ctx, input) 63 | 64 | return output, internal.EncodeError(err) 65 | } 66 | -------------------------------------------------------------------------------- /activities/sso/sso.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package sso 6 | 7 | import ( 8 | "context" 9 | 10 | "github.com/aws/aws-sdk-go/aws" 11 | "github.com/aws/aws-sdk-go/aws/request" 12 | "github.com/aws/aws-sdk-go/aws/session" 13 | 14 | "go.temporal.io/aws-sdk/internal" 15 | "github.com/aws/aws-sdk-go/service/sso" 16 | "github.com/aws/aws-sdk-go/service/sso/ssoiface" 17 | ) 18 | 19 | // ensure that imports are valid even if not used by the generated code 20 | var _ = internal.SetClientToken 21 | 22 | type _ request.Option 23 | 24 | // SessionFactory returns an aws.Session based on the activity context. 25 | type SessionFactory interface { 26 | Session(ctx context.Context) (*session.Session, error) 27 | } 28 | 29 | type Activities struct { 30 | client ssoiface.SSOAPI 31 | 32 | sessionFactory SessionFactory 33 | } 34 | 35 | func NewActivities(sess *session.Session, config ...*aws.Config) *Activities { 36 | client := sso.New(sess, config...) 37 | return &Activities{client: client} 38 | } 39 | 40 | func NewActivitiesWithSessionFactory(sessionFactory SessionFactory) *Activities { 41 | return &Activities{sessionFactory: sessionFactory} 42 | } 43 | 44 | func (a *Activities) getClient(ctx context.Context) (ssoiface.SSOAPI, error) { 45 | if a.client != nil { // No need to protect with mutex: we know the client never changes 46 | return a.client, nil 47 | } 48 | 49 | sess, err := a.sessionFactory.Session(ctx) 50 | if err != nil { 51 | return nil, internal.EncodeError(err) 52 | } 53 | 54 | return sso.New(sess), nil 55 | } 56 | 57 | func (a *Activities) GetRoleCredentials(ctx context.Context, input *sso.GetRoleCredentialsInput) (*sso.GetRoleCredentialsOutput, error) { 58 | client, err := a.getClient(ctx) 59 | if err != nil { 60 | return nil, internal.EncodeError(err) 61 | } 62 | output, err := client.GetRoleCredentialsWithContext(ctx, input) 63 | 64 | return output, internal.EncodeError(err) 65 | } 66 | 67 | func (a *Activities) ListAccountRoles(ctx context.Context, input *sso.ListAccountRolesInput) (*sso.ListAccountRolesOutput, error) { 68 | client, err := a.getClient(ctx) 69 | if err != nil { 70 | return nil, internal.EncodeError(err) 71 | } 72 | output, err := client.ListAccountRolesWithContext(ctx, input) 73 | 74 | return output, internal.EncodeError(err) 75 | } 76 | 77 | func (a *Activities) ListAccounts(ctx context.Context, input *sso.ListAccountsInput) (*sso.ListAccountsOutput, error) { 78 | client, err := a.getClient(ctx) 79 | if err != nil { 80 | return nil, internal.EncodeError(err) 81 | } 82 | output, err := client.ListAccountsWithContext(ctx, input) 83 | 84 | return output, internal.EncodeError(err) 85 | } 86 | 87 | func (a *Activities) Logout(ctx context.Context, input *sso.LogoutInput) (*sso.LogoutOutput, error) { 88 | client, err := a.getClient(ctx) 89 | if err != nil { 90 | return nil, internal.EncodeError(err) 91 | } 92 | output, err := client.LogoutWithContext(ctx, input) 93 | 94 | return output, internal.EncodeError(err) 95 | } 96 | -------------------------------------------------------------------------------- /activities/ssooidc/ssooidc.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package ssooidc 6 | 7 | import ( 8 | "context" 9 | 10 | "github.com/aws/aws-sdk-go/aws" 11 | "github.com/aws/aws-sdk-go/aws/request" 12 | "github.com/aws/aws-sdk-go/aws/session" 13 | 14 | "go.temporal.io/aws-sdk/internal" 15 | "github.com/aws/aws-sdk-go/service/ssooidc" 16 | "github.com/aws/aws-sdk-go/service/ssooidc/ssooidciface" 17 | ) 18 | 19 | // ensure that imports are valid even if not used by the generated code 20 | var _ = internal.SetClientToken 21 | 22 | type _ request.Option 23 | 24 | // SessionFactory returns an aws.Session based on the activity context. 25 | type SessionFactory interface { 26 | Session(ctx context.Context) (*session.Session, error) 27 | } 28 | 29 | type Activities struct { 30 | client ssooidciface.SSOOIDCAPI 31 | 32 | sessionFactory SessionFactory 33 | } 34 | 35 | func NewActivities(sess *session.Session, config ...*aws.Config) *Activities { 36 | client := ssooidc.New(sess, config...) 37 | return &Activities{client: client} 38 | } 39 | 40 | func NewActivitiesWithSessionFactory(sessionFactory SessionFactory) *Activities { 41 | return &Activities{sessionFactory: sessionFactory} 42 | } 43 | 44 | func (a *Activities) getClient(ctx context.Context) (ssooidciface.SSOOIDCAPI, error) { 45 | if a.client != nil { // No need to protect with mutex: we know the client never changes 46 | return a.client, nil 47 | } 48 | 49 | sess, err := a.sessionFactory.Session(ctx) 50 | if err != nil { 51 | return nil, internal.EncodeError(err) 52 | } 53 | 54 | return ssooidc.New(sess), nil 55 | } 56 | 57 | func (a *Activities) CreateToken(ctx context.Context, input *ssooidc.CreateTokenInput) (*ssooidc.CreateTokenOutput, error) { 58 | client, err := a.getClient(ctx) 59 | if err != nil { 60 | return nil, internal.EncodeError(err) 61 | } 62 | output, err := client.CreateTokenWithContext(ctx, input) 63 | 64 | return output, internal.EncodeError(err) 65 | } 66 | 67 | func (a *Activities) RegisterClient(ctx context.Context, input *ssooidc.RegisterClientInput) (*ssooidc.RegisterClientOutput, error) { 68 | client, err := a.getClient(ctx) 69 | if err != nil { 70 | return nil, internal.EncodeError(err) 71 | } 72 | output, err := client.RegisterClientWithContext(ctx, input) 73 | 74 | return output, internal.EncodeError(err) 75 | } 76 | 77 | func (a *Activities) StartDeviceAuthorization(ctx context.Context, input *ssooidc.StartDeviceAuthorizationInput) (*ssooidc.StartDeviceAuthorizationOutput, error) { 78 | client, err := a.getClient(ctx) 79 | if err != nil { 80 | return nil, internal.EncodeError(err) 81 | } 82 | output, err := client.StartDeviceAuthorizationWithContext(ctx, input) 83 | 84 | return output, internal.EncodeError(err) 85 | } 86 | -------------------------------------------------------------------------------- /activities/timestreamquery/timestreamquery.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package timestreamquery 6 | 7 | import ( 8 | "context" 9 | 10 | "github.com/aws/aws-sdk-go/aws" 11 | "github.com/aws/aws-sdk-go/aws/request" 12 | "github.com/aws/aws-sdk-go/aws/session" 13 | 14 | "go.temporal.io/aws-sdk/internal" 15 | "github.com/aws/aws-sdk-go/service/timestreamquery" 16 | "github.com/aws/aws-sdk-go/service/timestreamquery/timestreamqueryiface" 17 | ) 18 | 19 | // ensure that imports are valid even if not used by the generated code 20 | var _ = internal.SetClientToken 21 | 22 | type _ request.Option 23 | 24 | // SessionFactory returns an aws.Session based on the activity context. 25 | type SessionFactory interface { 26 | Session(ctx context.Context) (*session.Session, error) 27 | } 28 | 29 | type Activities struct { 30 | client timestreamqueryiface.TimestreamQueryAPI 31 | 32 | sessionFactory SessionFactory 33 | } 34 | 35 | func NewActivities(sess *session.Session, config ...*aws.Config) *Activities { 36 | client := timestreamquery.New(sess, config...) 37 | return &Activities{client: client} 38 | } 39 | 40 | func NewActivitiesWithSessionFactory(sessionFactory SessionFactory) *Activities { 41 | return &Activities{sessionFactory: sessionFactory} 42 | } 43 | 44 | func (a *Activities) getClient(ctx context.Context) (timestreamqueryiface.TimestreamQueryAPI, error) { 45 | if a.client != nil { // No need to protect with mutex: we know the client never changes 46 | return a.client, nil 47 | } 48 | 49 | sess, err := a.sessionFactory.Session(ctx) 50 | if err != nil { 51 | return nil, internal.EncodeError(err) 52 | } 53 | 54 | return timestreamquery.New(sess), nil 55 | } 56 | 57 | func (a *Activities) CancelQuery(ctx context.Context, input *timestreamquery.CancelQueryInput) (*timestreamquery.CancelQueryOutput, error) { 58 | client, err := a.getClient(ctx) 59 | if err != nil { 60 | return nil, internal.EncodeError(err) 61 | } 62 | output, err := client.CancelQueryWithContext(ctx, input) 63 | 64 | return output, internal.EncodeError(err) 65 | } 66 | 67 | func (a *Activities) DescribeEndpoints(ctx context.Context, input *timestreamquery.DescribeEndpointsInput) (*timestreamquery.DescribeEndpointsOutput, error) { 68 | client, err := a.getClient(ctx) 69 | if err != nil { 70 | return nil, internal.EncodeError(err) 71 | } 72 | output, err := client.DescribeEndpointsWithContext(ctx, input) 73 | 74 | return output, internal.EncodeError(err) 75 | } 76 | 77 | func (a *Activities) Query(ctx context.Context, input *timestreamquery.QueryInput) (*timestreamquery.QueryOutput, error) { 78 | client, err := a.getClient(ctx) 79 | if err != nil { 80 | return nil, internal.EncodeError(err) 81 | } 82 | internal.SetClientToken(ctx, &input.ClientToken) 83 | output, err := client.QueryWithContext(ctx, input) 84 | 85 | return output, internal.EncodeError(err) 86 | } 87 | -------------------------------------------------------------------------------- /activities/transcribestreamingservice/transcribestreamingservice.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package transcribestreamingservice 6 | 7 | import ( 8 | "context" 9 | 10 | "github.com/aws/aws-sdk-go/aws" 11 | "github.com/aws/aws-sdk-go/aws/request" 12 | "github.com/aws/aws-sdk-go/aws/session" 13 | 14 | "go.temporal.io/aws-sdk/internal" 15 | "github.com/aws/aws-sdk-go/service/transcribestreamingservice" 16 | "github.com/aws/aws-sdk-go/service/transcribestreamingservice/transcribestreamingserviceiface" 17 | ) 18 | 19 | // ensure that imports are valid even if not used by the generated code 20 | var _ = internal.SetClientToken 21 | 22 | type _ request.Option 23 | 24 | // SessionFactory returns an aws.Session based on the activity context. 25 | type SessionFactory interface { 26 | Session(ctx context.Context) (*session.Session, error) 27 | } 28 | 29 | type Activities struct { 30 | client transcribestreamingserviceiface.TranscribeStreamingServiceAPI 31 | 32 | sessionFactory SessionFactory 33 | } 34 | 35 | func NewActivities(sess *session.Session, config ...*aws.Config) *Activities { 36 | client := transcribestreamingservice.New(sess, config...) 37 | return &Activities{client: client} 38 | } 39 | 40 | func NewActivitiesWithSessionFactory(sessionFactory SessionFactory) *Activities { 41 | return &Activities{sessionFactory: sessionFactory} 42 | } 43 | 44 | func (a *Activities) getClient(ctx context.Context) (transcribestreamingserviceiface.TranscribeStreamingServiceAPI, error) { 45 | if a.client != nil { // No need to protect with mutex: we know the client never changes 46 | return a.client, nil 47 | } 48 | 49 | sess, err := a.sessionFactory.Session(ctx) 50 | if err != nil { 51 | return nil, internal.EncodeError(err) 52 | } 53 | 54 | return transcribestreamingservice.New(sess), nil 55 | } 56 | 57 | func (a *Activities) StartStreamTranscription(ctx context.Context, input *transcribestreamingservice.StartStreamTranscriptionInput) (*transcribestreamingservice.StartStreamTranscriptionOutput, error) { 58 | client, err := a.getClient(ctx) 59 | if err != nil { 60 | return nil, internal.EncodeError(err) 61 | } 62 | output, err := client.StartStreamTranscriptionWithContext(ctx, input) 63 | 64 | return output, internal.EncodeError(err) 65 | } 66 | -------------------------------------------------------------------------------- /activities/workmailmessageflow/workmailmessageflow.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package workmailmessageflow 6 | 7 | import ( 8 | "context" 9 | 10 | "github.com/aws/aws-sdk-go/aws" 11 | "github.com/aws/aws-sdk-go/aws/request" 12 | "github.com/aws/aws-sdk-go/aws/session" 13 | 14 | "go.temporal.io/aws-sdk/internal" 15 | "github.com/aws/aws-sdk-go/service/workmailmessageflow" 16 | "github.com/aws/aws-sdk-go/service/workmailmessageflow/workmailmessageflowiface" 17 | ) 18 | 19 | // ensure that imports are valid even if not used by the generated code 20 | var _ = internal.SetClientToken 21 | 22 | type _ request.Option 23 | 24 | // SessionFactory returns an aws.Session based on the activity context. 25 | type SessionFactory interface { 26 | Session(ctx context.Context) (*session.Session, error) 27 | } 28 | 29 | type Activities struct { 30 | client workmailmessageflowiface.WorkMailMessageFlowAPI 31 | 32 | sessionFactory SessionFactory 33 | } 34 | 35 | func NewActivities(sess *session.Session, config ...*aws.Config) *Activities { 36 | client := workmailmessageflow.New(sess, config...) 37 | return &Activities{client: client} 38 | } 39 | 40 | func NewActivitiesWithSessionFactory(sessionFactory SessionFactory) *Activities { 41 | return &Activities{sessionFactory: sessionFactory} 42 | } 43 | 44 | func (a *Activities) getClient(ctx context.Context) (workmailmessageflowiface.WorkMailMessageFlowAPI, error) { 45 | if a.client != nil { // No need to protect with mutex: we know the client never changes 46 | return a.client, nil 47 | } 48 | 49 | sess, err := a.sessionFactory.Session(ctx) 50 | if err != nil { 51 | return nil, internal.EncodeError(err) 52 | } 53 | 54 | return workmailmessageflow.New(sess), nil 55 | } 56 | 57 | func (a *Activities) GetRawMessageContent(ctx context.Context, input *workmailmessageflow.GetRawMessageContentInput) (*workmailmessageflow.GetRawMessageContentOutput, error) { 58 | client, err := a.getClient(ctx) 59 | if err != nil { 60 | return nil, internal.EncodeError(err) 61 | } 62 | output, err := client.GetRawMessageContentWithContext(ctx, input) 63 | 64 | return output, internal.EncodeError(err) 65 | } 66 | -------------------------------------------------------------------------------- /aws-sdk-worker.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/aws/aws-sdk-go/aws" 5 | "github.com/aws/aws-sdk-go/aws/session" 6 | "github.com/urfave/cli/v2" 7 | "go.temporal.io/aws-sdk/activities" 8 | "go.temporal.io/sdk/client" 9 | "go.temporal.io/sdk/worker" 10 | "log" 11 | "os" 12 | ) 13 | 14 | func main() { 15 | err := run(os.Args) 16 | if err != nil { 17 | log.Fatal(err) 18 | } 19 | } 20 | 21 | func run(args []string) error { 22 | var address, namespace, taskQueue, region string 23 | var verbose bool 24 | app := cli.NewApp() 25 | app.Name = "aws-activities" 26 | app.Usage = "Temporal activities for each AWS SDK API" 27 | app.Version = "0.0.1" 28 | app.Flags = []cli.Flag{ 29 | &cli.StringFlag{ 30 | Name: "address", 31 | Required: false, 32 | Usage: "host:port for Temporal frontend service, default is localhost:7233", 33 | Value: "localhost:7233", 34 | Destination: &address, 35 | EnvVars: []string{"TEMPORAL_ADDRESS"}, 36 | }, 37 | &cli.StringFlag{ 38 | Name: "namespace", 39 | Required: false, 40 | Usage: "Temporal namespace for worker to connect, default is \"default\"", 41 | Destination: &namespace, 42 | EnvVars: []string{"TEMPORAL_NAMESPACE"}, 43 | }, 44 | &cli.StringFlag{ 45 | Name: "task-queue", 46 | Usage: "task queue to start activity worker on, default is \"aws-sdk\"", 47 | Required: false, 48 | Value: "aws-sdk", 49 | Destination: &taskQueue, 50 | }, 51 | &cli.BoolFlag{ 52 | Name: "verbose", 53 | Usage: "Enables LogDebug level of AWS SDK", 54 | Destination: &verbose, 55 | }, 56 | } 57 | app.Action = func(context *cli.Context) error { 58 | return runWorker(address, namespace, taskQueue, verbose, region) 59 | } 60 | return app.Run(args) 61 | } 62 | 63 | func runWorker(address, namespace, taskQueue string, verbose bool, region string) error { 64 | c, err := client.NewClient(client.Options{ 65 | HostPort: address, 66 | Namespace: namespace, 67 | }) 68 | if err != nil { 69 | return err 70 | } 71 | defer c.Close() 72 | 73 | w := worker.New(c, taskQueue, worker.Options{}) 74 | 75 | var logLevel aws.LogLevelType 76 | if verbose { 77 | logLevel = aws.LogDebug 78 | } else { 79 | logLevel = aws.LogOff 80 | } 81 | sess, err := session.NewSession(&aws.Config{ 82 | LogLevel: &logLevel, 83 | }) 84 | if err != nil { 85 | return err 86 | } 87 | activities.RegisterAwsActivities(w, sess) 88 | return w.Run(worker.InterruptCh()) 89 | } 90 | -------------------------------------------------------------------------------- /clients/apigatewaymanagementapistub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package apigatewaymanagementapistub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/apigatewaymanagementapi" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | DeleteConnection(ctx workflow.Context, input *apigatewaymanagementapi.DeleteConnectionInput) (*apigatewaymanagementapi.DeleteConnectionOutput, error) 19 | DeleteConnectionAsync(ctx workflow.Context, input *apigatewaymanagementapi.DeleteConnectionInput) *DeleteConnectionFuture 20 | 21 | GetConnection(ctx workflow.Context, input *apigatewaymanagementapi.GetConnectionInput) (*apigatewaymanagementapi.GetConnectionOutput, error) 22 | GetConnectionAsync(ctx workflow.Context, input *apigatewaymanagementapi.GetConnectionInput) *GetConnectionFuture 23 | 24 | PostToConnection(ctx workflow.Context, input *apigatewaymanagementapi.PostToConnectionInput) (*apigatewaymanagementapi.PostToConnectionOutput, error) 25 | PostToConnectionAsync(ctx workflow.Context, input *apigatewaymanagementapi.PostToConnectionInput) *PostToConnectionFuture 26 | } 27 | 28 | func NewClient() Client { 29 | return &stub{} 30 | } 31 | -------------------------------------------------------------------------------- /clients/augmentedairuntimestub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package augmentedairuntimestub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/augmentedairuntime" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | DeleteHumanLoop(ctx workflow.Context, input *augmentedairuntime.DeleteHumanLoopInput) (*augmentedairuntime.DeleteHumanLoopOutput, error) 19 | DeleteHumanLoopAsync(ctx workflow.Context, input *augmentedairuntime.DeleteHumanLoopInput) *DeleteHumanLoopFuture 20 | 21 | DescribeHumanLoop(ctx workflow.Context, input *augmentedairuntime.DescribeHumanLoopInput) (*augmentedairuntime.DescribeHumanLoopOutput, error) 22 | DescribeHumanLoopAsync(ctx workflow.Context, input *augmentedairuntime.DescribeHumanLoopInput) *DescribeHumanLoopFuture 23 | 24 | ListHumanLoops(ctx workflow.Context, input *augmentedairuntime.ListHumanLoopsInput) (*augmentedairuntime.ListHumanLoopsOutput, error) 25 | ListHumanLoopsAsync(ctx workflow.Context, input *augmentedairuntime.ListHumanLoopsInput) *ListHumanLoopsFuture 26 | 27 | StartHumanLoop(ctx workflow.Context, input *augmentedairuntime.StartHumanLoopInput) (*augmentedairuntime.StartHumanLoopOutput, error) 28 | StartHumanLoopAsync(ctx workflow.Context, input *augmentedairuntime.StartHumanLoopInput) *StartHumanLoopFuture 29 | 30 | StopHumanLoop(ctx workflow.Context, input *augmentedairuntime.StopHumanLoopInput) (*augmentedairuntime.StopHumanLoopOutput, error) 31 | StopHumanLoopAsync(ctx workflow.Context, input *augmentedairuntime.StopHumanLoopInput) *StopHumanLoopFuture 32 | } 33 | 34 | func NewClient() Client { 35 | return &stub{} 36 | } 37 | -------------------------------------------------------------------------------- /clients/autoscalingplansstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package autoscalingplansstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/autoscalingplans" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | CreateScalingPlan(ctx workflow.Context, input *autoscalingplans.CreateScalingPlanInput) (*autoscalingplans.CreateScalingPlanOutput, error) 19 | CreateScalingPlanAsync(ctx workflow.Context, input *autoscalingplans.CreateScalingPlanInput) *CreateScalingPlanFuture 20 | 21 | DeleteScalingPlan(ctx workflow.Context, input *autoscalingplans.DeleteScalingPlanInput) (*autoscalingplans.DeleteScalingPlanOutput, error) 22 | DeleteScalingPlanAsync(ctx workflow.Context, input *autoscalingplans.DeleteScalingPlanInput) *DeleteScalingPlanFuture 23 | 24 | DescribeScalingPlanResources(ctx workflow.Context, input *autoscalingplans.DescribeScalingPlanResourcesInput) (*autoscalingplans.DescribeScalingPlanResourcesOutput, error) 25 | DescribeScalingPlanResourcesAsync(ctx workflow.Context, input *autoscalingplans.DescribeScalingPlanResourcesInput) *DescribeScalingPlanResourcesFuture 26 | 27 | DescribeScalingPlans(ctx workflow.Context, input *autoscalingplans.DescribeScalingPlansInput) (*autoscalingplans.DescribeScalingPlansOutput, error) 28 | DescribeScalingPlansAsync(ctx workflow.Context, input *autoscalingplans.DescribeScalingPlansInput) *DescribeScalingPlansFuture 29 | 30 | GetScalingPlanResourceForecastData(ctx workflow.Context, input *autoscalingplans.GetScalingPlanResourceForecastDataInput) (*autoscalingplans.GetScalingPlanResourceForecastDataOutput, error) 31 | GetScalingPlanResourceForecastDataAsync(ctx workflow.Context, input *autoscalingplans.GetScalingPlanResourceForecastDataInput) *GetScalingPlanResourceForecastDataFuture 32 | 33 | UpdateScalingPlan(ctx workflow.Context, input *autoscalingplans.UpdateScalingPlanInput) (*autoscalingplans.UpdateScalingPlanOutput, error) 34 | UpdateScalingPlanAsync(ctx workflow.Context, input *autoscalingplans.UpdateScalingPlanInput) *UpdateScalingPlanFuture 35 | } 36 | 37 | func NewClient() Client { 38 | return &stub{} 39 | } 40 | -------------------------------------------------------------------------------- /clients/braketstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package braketstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/braket" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | CancelQuantumTask(ctx workflow.Context, input *braket.CancelQuantumTaskInput) (*braket.CancelQuantumTaskOutput, error) 19 | CancelQuantumTaskAsync(ctx workflow.Context, input *braket.CancelQuantumTaskInput) *CancelQuantumTaskFuture 20 | 21 | CreateQuantumTask(ctx workflow.Context, input *braket.CreateQuantumTaskInput) (*braket.CreateQuantumTaskOutput, error) 22 | CreateQuantumTaskAsync(ctx workflow.Context, input *braket.CreateQuantumTaskInput) *CreateQuantumTaskFuture 23 | 24 | GetDevice(ctx workflow.Context, input *braket.GetDeviceInput) (*braket.GetDeviceOutput, error) 25 | GetDeviceAsync(ctx workflow.Context, input *braket.GetDeviceInput) *GetDeviceFuture 26 | 27 | GetQuantumTask(ctx workflow.Context, input *braket.GetQuantumTaskInput) (*braket.GetQuantumTaskOutput, error) 28 | GetQuantumTaskAsync(ctx workflow.Context, input *braket.GetQuantumTaskInput) *GetQuantumTaskFuture 29 | 30 | SearchDevices(ctx workflow.Context, input *braket.SearchDevicesInput) (*braket.SearchDevicesOutput, error) 31 | SearchDevicesAsync(ctx workflow.Context, input *braket.SearchDevicesInput) *SearchDevicesFuture 32 | 33 | SearchQuantumTasks(ctx workflow.Context, input *braket.SearchQuantumTasksInput) (*braket.SearchQuantumTasksOutput, error) 34 | SearchQuantumTasksAsync(ctx workflow.Context, input *braket.SearchQuantumTasksInput) *SearchQuantumTasksFuture 35 | } 36 | 37 | func NewClient() Client { 38 | return &stub{} 39 | } 40 | -------------------------------------------------------------------------------- /clients/cloudsearchdomainstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package cloudsearchdomainstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/cloudsearchdomain" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | Search(ctx workflow.Context, input *cloudsearchdomain.SearchInput) (*cloudsearchdomain.SearchOutput, error) 19 | SearchAsync(ctx workflow.Context, input *cloudsearchdomain.SearchInput) *SearchFuture 20 | 21 | Suggest(ctx workflow.Context, input *cloudsearchdomain.SuggestInput) (*cloudsearchdomain.SuggestOutput, error) 22 | SuggestAsync(ctx workflow.Context, input *cloudsearchdomain.SuggestInput) *SuggestFuture 23 | 24 | UploadDocuments(ctx workflow.Context, input *cloudsearchdomain.UploadDocumentsInput) (*cloudsearchdomain.UploadDocumentsOutput, error) 25 | UploadDocumentsAsync(ctx workflow.Context, input *cloudsearchdomain.UploadDocumentsInput) *UploadDocumentsFuture 26 | } 27 | 28 | func NewClient() Client { 29 | return &stub{} 30 | } 31 | -------------------------------------------------------------------------------- /clients/connectparticipantstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package connectparticipantstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/connectparticipant" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | CreateParticipantConnection(ctx workflow.Context, input *connectparticipant.CreateParticipantConnectionInput) (*connectparticipant.CreateParticipantConnectionOutput, error) 19 | CreateParticipantConnectionAsync(ctx workflow.Context, input *connectparticipant.CreateParticipantConnectionInput) *CreateParticipantConnectionFuture 20 | 21 | DisconnectParticipant(ctx workflow.Context, input *connectparticipant.DisconnectParticipantInput) (*connectparticipant.DisconnectParticipantOutput, error) 22 | DisconnectParticipantAsync(ctx workflow.Context, input *connectparticipant.DisconnectParticipantInput) *DisconnectParticipantFuture 23 | 24 | GetTranscript(ctx workflow.Context, input *connectparticipant.GetTranscriptInput) (*connectparticipant.GetTranscriptOutput, error) 25 | GetTranscriptAsync(ctx workflow.Context, input *connectparticipant.GetTranscriptInput) *GetTranscriptFuture 26 | 27 | SendEvent(ctx workflow.Context, input *connectparticipant.SendEventInput) (*connectparticipant.SendEventOutput, error) 28 | SendEventAsync(ctx workflow.Context, input *connectparticipant.SendEventInput) *SendEventFuture 29 | 30 | SendMessage(ctx workflow.Context, input *connectparticipant.SendMessageInput) (*connectparticipant.SendMessageOutput, error) 31 | SendMessageAsync(ctx workflow.Context, input *connectparticipant.SendMessageInput) *SendMessageFuture 32 | } 33 | 34 | func NewClient() Client { 35 | return &stub{} 36 | } 37 | -------------------------------------------------------------------------------- /clients/costandusagereportservicestub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package costandusagereportservicestub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/costandusagereportservice" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | DeleteReportDefinition(ctx workflow.Context, input *costandusagereportservice.DeleteReportDefinitionInput) (*costandusagereportservice.DeleteReportDefinitionOutput, error) 19 | DeleteReportDefinitionAsync(ctx workflow.Context, input *costandusagereportservice.DeleteReportDefinitionInput) *DeleteReportDefinitionFuture 20 | 21 | DescribeReportDefinitions(ctx workflow.Context, input *costandusagereportservice.DescribeReportDefinitionsInput) (*costandusagereportservice.DescribeReportDefinitionsOutput, error) 22 | DescribeReportDefinitionsAsync(ctx workflow.Context, input *costandusagereportservice.DescribeReportDefinitionsInput) *DescribeReportDefinitionsFuture 23 | 24 | ModifyReportDefinition(ctx workflow.Context, input *costandusagereportservice.ModifyReportDefinitionInput) (*costandusagereportservice.ModifyReportDefinitionOutput, error) 25 | ModifyReportDefinitionAsync(ctx workflow.Context, input *costandusagereportservice.ModifyReportDefinitionInput) *ModifyReportDefinitionFuture 26 | 27 | PutReportDefinition(ctx workflow.Context, input *costandusagereportservice.PutReportDefinitionInput) (*costandusagereportservice.PutReportDefinitionOutput, error) 28 | PutReportDefinitionAsync(ctx workflow.Context, input *costandusagereportservice.PutReportDefinitionInput) *PutReportDefinitionFuture 29 | } 30 | 31 | func NewClient() Client { 32 | return &stub{} 33 | } 34 | -------------------------------------------------------------------------------- /clients/dlmstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package dlmstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/dlm" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | CreateLifecyclePolicy(ctx workflow.Context, input *dlm.CreateLifecyclePolicyInput) (*dlm.CreateLifecyclePolicyOutput, error) 19 | CreateLifecyclePolicyAsync(ctx workflow.Context, input *dlm.CreateLifecyclePolicyInput) *CreateLifecyclePolicyFuture 20 | 21 | DeleteLifecyclePolicy(ctx workflow.Context, input *dlm.DeleteLifecyclePolicyInput) (*dlm.DeleteLifecyclePolicyOutput, error) 22 | DeleteLifecyclePolicyAsync(ctx workflow.Context, input *dlm.DeleteLifecyclePolicyInput) *DeleteLifecyclePolicyFuture 23 | 24 | GetLifecyclePolicies(ctx workflow.Context, input *dlm.GetLifecyclePoliciesInput) (*dlm.GetLifecyclePoliciesOutput, error) 25 | GetLifecyclePoliciesAsync(ctx workflow.Context, input *dlm.GetLifecyclePoliciesInput) *GetLifecyclePoliciesFuture 26 | 27 | GetLifecyclePolicy(ctx workflow.Context, input *dlm.GetLifecyclePolicyInput) (*dlm.GetLifecyclePolicyOutput, error) 28 | GetLifecyclePolicyAsync(ctx workflow.Context, input *dlm.GetLifecyclePolicyInput) *GetLifecyclePolicyFuture 29 | 30 | ListTagsForResource(ctx workflow.Context, input *dlm.ListTagsForResourceInput) (*dlm.ListTagsForResourceOutput, error) 31 | ListTagsForResourceAsync(ctx workflow.Context, input *dlm.ListTagsForResourceInput) *ListTagsForResourceFuture 32 | 33 | TagResource(ctx workflow.Context, input *dlm.TagResourceInput) (*dlm.TagResourceOutput, error) 34 | TagResourceAsync(ctx workflow.Context, input *dlm.TagResourceInput) *TagResourceFuture 35 | 36 | UntagResource(ctx workflow.Context, input *dlm.UntagResourceInput) (*dlm.UntagResourceOutput, error) 37 | UntagResourceAsync(ctx workflow.Context, input *dlm.UntagResourceInput) *UntagResourceFuture 38 | 39 | UpdateLifecyclePolicy(ctx workflow.Context, input *dlm.UpdateLifecyclePolicyInput) (*dlm.UpdateLifecyclePolicyOutput, error) 40 | UpdateLifecyclePolicyAsync(ctx workflow.Context, input *dlm.UpdateLifecyclePolicyInput) *UpdateLifecyclePolicyFuture 41 | } 42 | 43 | func NewClient() Client { 44 | return &stub{} 45 | } 46 | -------------------------------------------------------------------------------- /clients/dynamodbstreamsstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package dynamodbstreamsstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/dynamodbstreams" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | DescribeStream(ctx workflow.Context, input *dynamodbstreams.DescribeStreamInput) (*dynamodbstreams.DescribeStreamOutput, error) 19 | DescribeStreamAsync(ctx workflow.Context, input *dynamodbstreams.DescribeStreamInput) *DescribeStreamFuture 20 | 21 | GetRecords(ctx workflow.Context, input *dynamodbstreams.GetRecordsInput) (*dynamodbstreams.GetRecordsOutput, error) 22 | GetRecordsAsync(ctx workflow.Context, input *dynamodbstreams.GetRecordsInput) *GetRecordsFuture 23 | 24 | GetShardIterator(ctx workflow.Context, input *dynamodbstreams.GetShardIteratorInput) (*dynamodbstreams.GetShardIteratorOutput, error) 25 | GetShardIteratorAsync(ctx workflow.Context, input *dynamodbstreams.GetShardIteratorInput) *GetShardIteratorFuture 26 | 27 | ListStreams(ctx workflow.Context, input *dynamodbstreams.ListStreamsInput) (*dynamodbstreams.ListStreamsOutput, error) 28 | ListStreamsAsync(ctx workflow.Context, input *dynamodbstreams.ListStreamsInput) *ListStreamsFuture 29 | } 30 | 31 | func NewClient() Client { 32 | return &stub{} 33 | } 34 | -------------------------------------------------------------------------------- /clients/ebsstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package ebsstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/ebs" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | CompleteSnapshot(ctx workflow.Context, input *ebs.CompleteSnapshotInput) (*ebs.CompleteSnapshotOutput, error) 19 | CompleteSnapshotAsync(ctx workflow.Context, input *ebs.CompleteSnapshotInput) *CompleteSnapshotFuture 20 | 21 | GetSnapshotBlock(ctx workflow.Context, input *ebs.GetSnapshotBlockInput) (*ebs.GetSnapshotBlockOutput, error) 22 | GetSnapshotBlockAsync(ctx workflow.Context, input *ebs.GetSnapshotBlockInput) *GetSnapshotBlockFuture 23 | 24 | ListChangedBlocks(ctx workflow.Context, input *ebs.ListChangedBlocksInput) (*ebs.ListChangedBlocksOutput, error) 25 | ListChangedBlocksAsync(ctx workflow.Context, input *ebs.ListChangedBlocksInput) *ListChangedBlocksFuture 26 | 27 | ListSnapshotBlocks(ctx workflow.Context, input *ebs.ListSnapshotBlocksInput) (*ebs.ListSnapshotBlocksOutput, error) 28 | ListSnapshotBlocksAsync(ctx workflow.Context, input *ebs.ListSnapshotBlocksInput) *ListSnapshotBlocksFuture 29 | 30 | PutSnapshotBlock(ctx workflow.Context, input *ebs.PutSnapshotBlockInput) (*ebs.PutSnapshotBlockOutput, error) 31 | PutSnapshotBlockAsync(ctx workflow.Context, input *ebs.PutSnapshotBlockInput) *PutSnapshotBlockFuture 32 | 33 | StartSnapshot(ctx workflow.Context, input *ebs.StartSnapshotInput) (*ebs.StartSnapshotOutput, error) 34 | StartSnapshotAsync(ctx workflow.Context, input *ebs.StartSnapshotInput) *StartSnapshotFuture 35 | } 36 | 37 | func NewClient() Client { 38 | return &stub{} 39 | } 40 | -------------------------------------------------------------------------------- /clients/ec2instanceconnectstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package ec2instanceconnectstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/ec2instanceconnect" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | SendSSHPublicKey(ctx workflow.Context, input *ec2instanceconnect.SendSSHPublicKeyInput) (*ec2instanceconnect.SendSSHPublicKeyOutput, error) 19 | SendSSHPublicKeyAsync(ctx workflow.Context, input *ec2instanceconnect.SendSSHPublicKeyInput) *SendSSHPublicKeyFuture 20 | } 21 | 22 | func NewClient() Client { 23 | return &stub{} 24 | } 25 | -------------------------------------------------------------------------------- /clients/ec2instanceconnectstub/stub.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package ec2instanceconnectstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/ec2instanceconnect" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type stub struct{} 18 | 19 | type SendSSHPublicKeyFuture struct { 20 | // public to support Selector.addFuture 21 | Future workflow.Future 22 | } 23 | 24 | func (r *SendSSHPublicKeyFuture) Get(ctx workflow.Context) (*ec2instanceconnect.SendSSHPublicKeyOutput, error) { 25 | var output ec2instanceconnect.SendSSHPublicKeyOutput 26 | err := r.Future.Get(ctx, &output) 27 | return &output, err 28 | } 29 | 30 | func (a *stub) SendSSHPublicKey(ctx workflow.Context, input *ec2instanceconnect.SendSSHPublicKeyInput) (*ec2instanceconnect.SendSSHPublicKeyOutput, error) { 31 | var output ec2instanceconnect.SendSSHPublicKeyOutput 32 | err := workflow.ExecuteActivity(ctx, "aws.ec2instanceconnect.SendSSHPublicKey", input).Get(ctx, &output) 33 | return &output, err 34 | } 35 | 36 | func (a *stub) SendSSHPublicKeyAsync(ctx workflow.Context, input *ec2instanceconnect.SendSSHPublicKeyInput) *SendSSHPublicKeyFuture { 37 | future := workflow.ExecuteActivity(ctx, "aws.ec2instanceconnect.SendSSHPublicKey", input) 38 | return &SendSSHPublicKeyFuture{Future: future} 39 | } 40 | -------------------------------------------------------------------------------- /clients/elasticinferencestub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package elasticinferencestub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/elasticinference" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | DescribeAcceleratorOfferings(ctx workflow.Context, input *elasticinference.DescribeAcceleratorOfferingsInput) (*elasticinference.DescribeAcceleratorOfferingsOutput, error) 19 | DescribeAcceleratorOfferingsAsync(ctx workflow.Context, input *elasticinference.DescribeAcceleratorOfferingsInput) *DescribeAcceleratorOfferingsFuture 20 | 21 | DescribeAcceleratorTypes(ctx workflow.Context, input *elasticinference.DescribeAcceleratorTypesInput) (*elasticinference.DescribeAcceleratorTypesOutput, error) 22 | DescribeAcceleratorTypesAsync(ctx workflow.Context, input *elasticinference.DescribeAcceleratorTypesInput) *DescribeAcceleratorTypesFuture 23 | 24 | DescribeAccelerators(ctx workflow.Context, input *elasticinference.DescribeAcceleratorsInput) (*elasticinference.DescribeAcceleratorsOutput, error) 25 | DescribeAcceleratorsAsync(ctx workflow.Context, input *elasticinference.DescribeAcceleratorsInput) *DescribeAcceleratorsFuture 26 | 27 | ListTagsForResource(ctx workflow.Context, input *elasticinference.ListTagsForResourceInput) (*elasticinference.ListTagsForResourceOutput, error) 28 | ListTagsForResourceAsync(ctx workflow.Context, input *elasticinference.ListTagsForResourceInput) *ListTagsForResourceFuture 29 | 30 | TagResource(ctx workflow.Context, input *elasticinference.TagResourceInput) (*elasticinference.TagResourceOutput, error) 31 | TagResourceAsync(ctx workflow.Context, input *elasticinference.TagResourceInput) *TagResourceFuture 32 | 33 | UntagResource(ctx workflow.Context, input *elasticinference.UntagResourceInput) (*elasticinference.UntagResourceOutput, error) 34 | UntagResourceAsync(ctx workflow.Context, input *elasticinference.UntagResourceInput) *UntagResourceFuture 35 | } 36 | 37 | func NewClient() Client { 38 | return &stub{} 39 | } 40 | -------------------------------------------------------------------------------- /clients/forecastqueryservicestub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package forecastqueryservicestub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/forecastqueryservice" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | QueryForecast(ctx workflow.Context, input *forecastqueryservice.QueryForecastInput) (*forecastqueryservice.QueryForecastOutput, error) 19 | QueryForecastAsync(ctx workflow.Context, input *forecastqueryservice.QueryForecastInput) *QueryForecastFuture 20 | } 21 | 22 | func NewClient() Client { 23 | return &stub{} 24 | } 25 | -------------------------------------------------------------------------------- /clients/forecastqueryservicestub/stub.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package forecastqueryservicestub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/forecastqueryservice" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type stub struct{} 18 | 19 | type QueryForecastFuture struct { 20 | // public to support Selector.addFuture 21 | Future workflow.Future 22 | } 23 | 24 | func (r *QueryForecastFuture) Get(ctx workflow.Context) (*forecastqueryservice.QueryForecastOutput, error) { 25 | var output forecastqueryservice.QueryForecastOutput 26 | err := r.Future.Get(ctx, &output) 27 | return &output, err 28 | } 29 | 30 | func (a *stub) QueryForecast(ctx workflow.Context, input *forecastqueryservice.QueryForecastInput) (*forecastqueryservice.QueryForecastOutput, error) { 31 | var output forecastqueryservice.QueryForecastOutput 32 | err := workflow.ExecuteActivity(ctx, "aws.forecastqueryservice.QueryForecast", input).Get(ctx, &output) 33 | return &output, err 34 | } 35 | 36 | func (a *stub) QueryForecastAsync(ctx workflow.Context, input *forecastqueryservice.QueryForecastInput) *QueryForecastFuture { 37 | future := workflow.ExecuteActivity(ctx, "aws.forecastqueryservice.QueryForecast", input) 38 | return &QueryForecastFuture{Future: future} 39 | } 40 | -------------------------------------------------------------------------------- /clients/honeycodestub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package honeycodestub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/honeycode" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | GetScreenData(ctx workflow.Context, input *honeycode.GetScreenDataInput) (*honeycode.GetScreenDataOutput, error) 19 | GetScreenDataAsync(ctx workflow.Context, input *honeycode.GetScreenDataInput) *GetScreenDataFuture 20 | 21 | InvokeScreenAutomation(ctx workflow.Context, input *honeycode.InvokeScreenAutomationInput) (*honeycode.InvokeScreenAutomationOutput, error) 22 | InvokeScreenAutomationAsync(ctx workflow.Context, input *honeycode.InvokeScreenAutomationInput) *InvokeScreenAutomationFuture 23 | } 24 | 25 | func NewClient() Client { 26 | return &stub{} 27 | } 28 | -------------------------------------------------------------------------------- /clients/honeycodestub/stub.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package honeycodestub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/honeycode" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type stub struct{} 18 | 19 | type GetScreenDataFuture struct { 20 | // public to support Selector.addFuture 21 | Future workflow.Future 22 | } 23 | 24 | func (r *GetScreenDataFuture) Get(ctx workflow.Context) (*honeycode.GetScreenDataOutput, error) { 25 | var output honeycode.GetScreenDataOutput 26 | err := r.Future.Get(ctx, &output) 27 | return &output, err 28 | } 29 | 30 | type InvokeScreenAutomationFuture struct { 31 | // public to support Selector.addFuture 32 | Future workflow.Future 33 | } 34 | 35 | func (r *InvokeScreenAutomationFuture) Get(ctx workflow.Context) (*honeycode.InvokeScreenAutomationOutput, error) { 36 | var output honeycode.InvokeScreenAutomationOutput 37 | err := r.Future.Get(ctx, &output) 38 | return &output, err 39 | } 40 | 41 | func (a *stub) GetScreenData(ctx workflow.Context, input *honeycode.GetScreenDataInput) (*honeycode.GetScreenDataOutput, error) { 42 | var output honeycode.GetScreenDataOutput 43 | err := workflow.ExecuteActivity(ctx, "aws.honeycode.GetScreenData", input).Get(ctx, &output) 44 | return &output, err 45 | } 46 | 47 | func (a *stub) GetScreenDataAsync(ctx workflow.Context, input *honeycode.GetScreenDataInput) *GetScreenDataFuture { 48 | future := workflow.ExecuteActivity(ctx, "aws.honeycode.GetScreenData", input) 49 | return &GetScreenDataFuture{Future: future} 50 | } 51 | 52 | func (a *stub) InvokeScreenAutomation(ctx workflow.Context, input *honeycode.InvokeScreenAutomationInput) (*honeycode.InvokeScreenAutomationOutput, error) { 53 | var output honeycode.InvokeScreenAutomationOutput 54 | err := workflow.ExecuteActivity(ctx, "aws.honeycode.InvokeScreenAutomation", input).Get(ctx, &output) 55 | return &output, err 56 | } 57 | 58 | func (a *stub) InvokeScreenAutomationAsync(ctx workflow.Context, input *honeycode.InvokeScreenAutomationInput) *InvokeScreenAutomationFuture { 59 | future := workflow.ExecuteActivity(ctx, "aws.honeycode.InvokeScreenAutomation", input) 60 | return &InvokeScreenAutomationFuture{Future: future} 61 | } 62 | -------------------------------------------------------------------------------- /clients/identitystorestub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package identitystorestub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/identitystore" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | DescribeGroup(ctx workflow.Context, input *identitystore.DescribeGroupInput) (*identitystore.DescribeGroupOutput, error) 19 | DescribeGroupAsync(ctx workflow.Context, input *identitystore.DescribeGroupInput) *DescribeGroupFuture 20 | 21 | DescribeUser(ctx workflow.Context, input *identitystore.DescribeUserInput) (*identitystore.DescribeUserOutput, error) 22 | DescribeUserAsync(ctx workflow.Context, input *identitystore.DescribeUserInput) *DescribeUserFuture 23 | 24 | ListGroups(ctx workflow.Context, input *identitystore.ListGroupsInput) (*identitystore.ListGroupsOutput, error) 25 | ListGroupsAsync(ctx workflow.Context, input *identitystore.ListGroupsInput) *ListGroupsFuture 26 | 27 | ListUsers(ctx workflow.Context, input *identitystore.ListUsersInput) (*identitystore.ListUsersOutput, error) 28 | ListUsersAsync(ctx workflow.Context, input *identitystore.ListUsersInput) *ListUsersFuture 29 | } 30 | 31 | func NewClient() Client { 32 | return &stub{} 33 | } 34 | -------------------------------------------------------------------------------- /clients/iotdataplanestub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package iotdataplanestub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/iotdataplane" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | DeleteThingShadow(ctx workflow.Context, input *iotdataplane.DeleteThingShadowInput) (*iotdataplane.DeleteThingShadowOutput, error) 19 | DeleteThingShadowAsync(ctx workflow.Context, input *iotdataplane.DeleteThingShadowInput) *DeleteThingShadowFuture 20 | 21 | GetThingShadow(ctx workflow.Context, input *iotdataplane.GetThingShadowInput) (*iotdataplane.GetThingShadowOutput, error) 22 | GetThingShadowAsync(ctx workflow.Context, input *iotdataplane.GetThingShadowInput) *GetThingShadowFuture 23 | 24 | ListNamedShadowsForThing(ctx workflow.Context, input *iotdataplane.ListNamedShadowsForThingInput) (*iotdataplane.ListNamedShadowsForThingOutput, error) 25 | ListNamedShadowsForThingAsync(ctx workflow.Context, input *iotdataplane.ListNamedShadowsForThingInput) *ListNamedShadowsForThingFuture 26 | 27 | Publish(ctx workflow.Context, input *iotdataplane.PublishInput) (*iotdataplane.PublishOutput, error) 28 | PublishAsync(ctx workflow.Context, input *iotdataplane.PublishInput) *PublishFuture 29 | 30 | UpdateThingShadow(ctx workflow.Context, input *iotdataplane.UpdateThingShadowInput) (*iotdataplane.UpdateThingShadowOutput, error) 31 | UpdateThingShadowAsync(ctx workflow.Context, input *iotdataplane.UpdateThingShadowInput) *UpdateThingShadowFuture 32 | } 33 | 34 | func NewClient() Client { 35 | return &stub{} 36 | } 37 | -------------------------------------------------------------------------------- /clients/ioteventsdatastub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package ioteventsdatastub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/ioteventsdata" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | BatchPutMessage(ctx workflow.Context, input *ioteventsdata.BatchPutMessageInput) (*ioteventsdata.BatchPutMessageOutput, error) 19 | BatchPutMessageAsync(ctx workflow.Context, input *ioteventsdata.BatchPutMessageInput) *BatchPutMessageFuture 20 | 21 | BatchUpdateDetector(ctx workflow.Context, input *ioteventsdata.BatchUpdateDetectorInput) (*ioteventsdata.BatchUpdateDetectorOutput, error) 22 | BatchUpdateDetectorAsync(ctx workflow.Context, input *ioteventsdata.BatchUpdateDetectorInput) *BatchUpdateDetectorFuture 23 | 24 | DescribeDetector(ctx workflow.Context, input *ioteventsdata.DescribeDetectorInput) (*ioteventsdata.DescribeDetectorOutput, error) 25 | DescribeDetectorAsync(ctx workflow.Context, input *ioteventsdata.DescribeDetectorInput) *DescribeDetectorFuture 26 | 27 | ListDetectors(ctx workflow.Context, input *ioteventsdata.ListDetectorsInput) (*ioteventsdata.ListDetectorsOutput, error) 28 | ListDetectorsAsync(ctx workflow.Context, input *ioteventsdata.ListDetectorsInput) *ListDetectorsFuture 29 | } 30 | 31 | func NewClient() Client { 32 | return &stub{} 33 | } 34 | -------------------------------------------------------------------------------- /clients/iotjobsdataplanestub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package iotjobsdataplanestub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/iotjobsdataplane" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | DescribeJobExecution(ctx workflow.Context, input *iotjobsdataplane.DescribeJobExecutionInput) (*iotjobsdataplane.DescribeJobExecutionOutput, error) 19 | DescribeJobExecutionAsync(ctx workflow.Context, input *iotjobsdataplane.DescribeJobExecutionInput) *DescribeJobExecutionFuture 20 | 21 | GetPendingJobExecutions(ctx workflow.Context, input *iotjobsdataplane.GetPendingJobExecutionsInput) (*iotjobsdataplane.GetPendingJobExecutionsOutput, error) 22 | GetPendingJobExecutionsAsync(ctx workflow.Context, input *iotjobsdataplane.GetPendingJobExecutionsInput) *GetPendingJobExecutionsFuture 23 | 24 | StartNextPendingJobExecution(ctx workflow.Context, input *iotjobsdataplane.StartNextPendingJobExecutionInput) (*iotjobsdataplane.StartNextPendingJobExecutionOutput, error) 25 | StartNextPendingJobExecutionAsync(ctx workflow.Context, input *iotjobsdataplane.StartNextPendingJobExecutionInput) *StartNextPendingJobExecutionFuture 26 | 27 | UpdateJobExecution(ctx workflow.Context, input *iotjobsdataplane.UpdateJobExecutionInput) (*iotjobsdataplane.UpdateJobExecutionOutput, error) 28 | UpdateJobExecutionAsync(ctx workflow.Context, input *iotjobsdataplane.UpdateJobExecutionInput) *UpdateJobExecutionFuture 29 | } 30 | 31 | func NewClient() Client { 32 | return &stub{} 33 | } 34 | -------------------------------------------------------------------------------- /clients/iotsecuretunnelingstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package iotsecuretunnelingstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/iotsecuretunneling" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | CloseTunnel(ctx workflow.Context, input *iotsecuretunneling.CloseTunnelInput) (*iotsecuretunneling.CloseTunnelOutput, error) 19 | CloseTunnelAsync(ctx workflow.Context, input *iotsecuretunneling.CloseTunnelInput) *CloseTunnelFuture 20 | 21 | DescribeTunnel(ctx workflow.Context, input *iotsecuretunneling.DescribeTunnelInput) (*iotsecuretunneling.DescribeTunnelOutput, error) 22 | DescribeTunnelAsync(ctx workflow.Context, input *iotsecuretunneling.DescribeTunnelInput) *DescribeTunnelFuture 23 | 24 | ListTagsForResource(ctx workflow.Context, input *iotsecuretunneling.ListTagsForResourceInput) (*iotsecuretunneling.ListTagsForResourceOutput, error) 25 | ListTagsForResourceAsync(ctx workflow.Context, input *iotsecuretunneling.ListTagsForResourceInput) *ListTagsForResourceFuture 26 | 27 | ListTunnels(ctx workflow.Context, input *iotsecuretunneling.ListTunnelsInput) (*iotsecuretunneling.ListTunnelsOutput, error) 28 | ListTunnelsAsync(ctx workflow.Context, input *iotsecuretunneling.ListTunnelsInput) *ListTunnelsFuture 29 | 30 | OpenTunnel(ctx workflow.Context, input *iotsecuretunneling.OpenTunnelInput) (*iotsecuretunneling.OpenTunnelOutput, error) 31 | OpenTunnelAsync(ctx workflow.Context, input *iotsecuretunneling.OpenTunnelInput) *OpenTunnelFuture 32 | 33 | TagResource(ctx workflow.Context, input *iotsecuretunneling.TagResourceInput) (*iotsecuretunneling.TagResourceOutput, error) 34 | TagResourceAsync(ctx workflow.Context, input *iotsecuretunneling.TagResourceInput) *TagResourceFuture 35 | 36 | UntagResource(ctx workflow.Context, input *iotsecuretunneling.UntagResourceInput) (*iotsecuretunneling.UntagResourceOutput, error) 37 | UntagResourceAsync(ctx workflow.Context, input *iotsecuretunneling.UntagResourceInput) *UntagResourceFuture 38 | } 39 | 40 | func NewClient() Client { 41 | return &stub{} 42 | } 43 | -------------------------------------------------------------------------------- /clients/kinesisvideoarchivedmediastub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package kinesisvideoarchivedmediastub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/kinesisvideoarchivedmedia" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | GetClip(ctx workflow.Context, input *kinesisvideoarchivedmedia.GetClipInput) (*kinesisvideoarchivedmedia.GetClipOutput, error) 19 | GetClipAsync(ctx workflow.Context, input *kinesisvideoarchivedmedia.GetClipInput) *GetClipFuture 20 | 21 | GetDASHStreamingSessionURL(ctx workflow.Context, input *kinesisvideoarchivedmedia.GetDASHStreamingSessionURLInput) (*kinesisvideoarchivedmedia.GetDASHStreamingSessionURLOutput, error) 22 | GetDASHStreamingSessionURLAsync(ctx workflow.Context, input *kinesisvideoarchivedmedia.GetDASHStreamingSessionURLInput) *GetDASHStreamingSessionURLFuture 23 | 24 | GetHLSStreamingSessionURL(ctx workflow.Context, input *kinesisvideoarchivedmedia.GetHLSStreamingSessionURLInput) (*kinesisvideoarchivedmedia.GetHLSStreamingSessionURLOutput, error) 25 | GetHLSStreamingSessionURLAsync(ctx workflow.Context, input *kinesisvideoarchivedmedia.GetHLSStreamingSessionURLInput) *GetHLSStreamingSessionURLFuture 26 | 27 | GetMediaForFragmentList(ctx workflow.Context, input *kinesisvideoarchivedmedia.GetMediaForFragmentListInput) (*kinesisvideoarchivedmedia.GetMediaForFragmentListOutput, error) 28 | GetMediaForFragmentListAsync(ctx workflow.Context, input *kinesisvideoarchivedmedia.GetMediaForFragmentListInput) *GetMediaForFragmentListFuture 29 | 30 | ListFragments(ctx workflow.Context, input *kinesisvideoarchivedmedia.ListFragmentsInput) (*kinesisvideoarchivedmedia.ListFragmentsOutput, error) 31 | ListFragmentsAsync(ctx workflow.Context, input *kinesisvideoarchivedmedia.ListFragmentsInput) *ListFragmentsFuture 32 | } 33 | 34 | func NewClient() Client { 35 | return &stub{} 36 | } 37 | -------------------------------------------------------------------------------- /clients/kinesisvideomediastub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package kinesisvideomediastub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/kinesisvideomedia" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | GetMedia(ctx workflow.Context, input *kinesisvideomedia.GetMediaInput) (*kinesisvideomedia.GetMediaOutput, error) 19 | GetMediaAsync(ctx workflow.Context, input *kinesisvideomedia.GetMediaInput) *GetMediaFuture 20 | } 21 | 22 | func NewClient() Client { 23 | return &stub{} 24 | } 25 | -------------------------------------------------------------------------------- /clients/kinesisvideomediastub/stub.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package kinesisvideomediastub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/kinesisvideomedia" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type stub struct{} 18 | 19 | type GetMediaFuture struct { 20 | // public to support Selector.addFuture 21 | Future workflow.Future 22 | } 23 | 24 | func (r *GetMediaFuture) Get(ctx workflow.Context) (*kinesisvideomedia.GetMediaOutput, error) { 25 | var output kinesisvideomedia.GetMediaOutput 26 | err := r.Future.Get(ctx, &output) 27 | return &output, err 28 | } 29 | 30 | func (a *stub) GetMedia(ctx workflow.Context, input *kinesisvideomedia.GetMediaInput) (*kinesisvideomedia.GetMediaOutput, error) { 31 | var output kinesisvideomedia.GetMediaOutput 32 | err := workflow.ExecuteActivity(ctx, "aws.kinesisvideomedia.GetMedia", input).Get(ctx, &output) 33 | return &output, err 34 | } 35 | 36 | func (a *stub) GetMediaAsync(ctx workflow.Context, input *kinesisvideomedia.GetMediaInput) *GetMediaFuture { 37 | future := workflow.ExecuteActivity(ctx, "aws.kinesisvideomedia.GetMedia", input) 38 | return &GetMediaFuture{Future: future} 39 | } 40 | -------------------------------------------------------------------------------- /clients/kinesisvideosignalingchannelsstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package kinesisvideosignalingchannelsstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/kinesisvideosignalingchannels" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | GetIceServerConfig(ctx workflow.Context, input *kinesisvideosignalingchannels.GetIceServerConfigInput) (*kinesisvideosignalingchannels.GetIceServerConfigOutput, error) 19 | GetIceServerConfigAsync(ctx workflow.Context, input *kinesisvideosignalingchannels.GetIceServerConfigInput) *GetIceServerConfigFuture 20 | 21 | SendAlexaOfferToMaster(ctx workflow.Context, input *kinesisvideosignalingchannels.SendAlexaOfferToMasterInput) (*kinesisvideosignalingchannels.SendAlexaOfferToMasterOutput, error) 22 | SendAlexaOfferToMasterAsync(ctx workflow.Context, input *kinesisvideosignalingchannels.SendAlexaOfferToMasterInput) *SendAlexaOfferToMasterFuture 23 | } 24 | 25 | func NewClient() Client { 26 | return &stub{} 27 | } 28 | -------------------------------------------------------------------------------- /clients/kinesisvideosignalingchannelsstub/stub.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package kinesisvideosignalingchannelsstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/kinesisvideosignalingchannels" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type stub struct{} 18 | 19 | type GetIceServerConfigFuture struct { 20 | // public to support Selector.addFuture 21 | Future workflow.Future 22 | } 23 | 24 | func (r *GetIceServerConfigFuture) Get(ctx workflow.Context) (*kinesisvideosignalingchannels.GetIceServerConfigOutput, error) { 25 | var output kinesisvideosignalingchannels.GetIceServerConfigOutput 26 | err := r.Future.Get(ctx, &output) 27 | return &output, err 28 | } 29 | 30 | type SendAlexaOfferToMasterFuture struct { 31 | // public to support Selector.addFuture 32 | Future workflow.Future 33 | } 34 | 35 | func (r *SendAlexaOfferToMasterFuture) Get(ctx workflow.Context) (*kinesisvideosignalingchannels.SendAlexaOfferToMasterOutput, error) { 36 | var output kinesisvideosignalingchannels.SendAlexaOfferToMasterOutput 37 | err := r.Future.Get(ctx, &output) 38 | return &output, err 39 | } 40 | 41 | func (a *stub) GetIceServerConfig(ctx workflow.Context, input *kinesisvideosignalingchannels.GetIceServerConfigInput) (*kinesisvideosignalingchannels.GetIceServerConfigOutput, error) { 42 | var output kinesisvideosignalingchannels.GetIceServerConfigOutput 43 | err := workflow.ExecuteActivity(ctx, "aws.kinesisvideosignalingchannels.GetIceServerConfig", input).Get(ctx, &output) 44 | return &output, err 45 | } 46 | 47 | func (a *stub) GetIceServerConfigAsync(ctx workflow.Context, input *kinesisvideosignalingchannels.GetIceServerConfigInput) *GetIceServerConfigFuture { 48 | future := workflow.ExecuteActivity(ctx, "aws.kinesisvideosignalingchannels.GetIceServerConfig", input) 49 | return &GetIceServerConfigFuture{Future: future} 50 | } 51 | 52 | func (a *stub) SendAlexaOfferToMaster(ctx workflow.Context, input *kinesisvideosignalingchannels.SendAlexaOfferToMasterInput) (*kinesisvideosignalingchannels.SendAlexaOfferToMasterOutput, error) { 53 | var output kinesisvideosignalingchannels.SendAlexaOfferToMasterOutput 54 | err := workflow.ExecuteActivity(ctx, "aws.kinesisvideosignalingchannels.SendAlexaOfferToMaster", input).Get(ctx, &output) 55 | return &output, err 56 | } 57 | 58 | func (a *stub) SendAlexaOfferToMasterAsync(ctx workflow.Context, input *kinesisvideosignalingchannels.SendAlexaOfferToMasterInput) *SendAlexaOfferToMasterFuture { 59 | future := workflow.ExecuteActivity(ctx, "aws.kinesisvideosignalingchannels.SendAlexaOfferToMaster", input) 60 | return &SendAlexaOfferToMasterFuture{Future: future} 61 | } 62 | -------------------------------------------------------------------------------- /clients/lexruntimeservicestub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package lexruntimeservicestub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/lexruntimeservice" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | DeleteSession(ctx workflow.Context, input *lexruntimeservice.DeleteSessionInput) (*lexruntimeservice.DeleteSessionOutput, error) 19 | DeleteSessionAsync(ctx workflow.Context, input *lexruntimeservice.DeleteSessionInput) *DeleteSessionFuture 20 | 21 | GetSession(ctx workflow.Context, input *lexruntimeservice.GetSessionInput) (*lexruntimeservice.GetSessionOutput, error) 22 | GetSessionAsync(ctx workflow.Context, input *lexruntimeservice.GetSessionInput) *GetSessionFuture 23 | 24 | PostContent(ctx workflow.Context, input *lexruntimeservice.PostContentInput) (*lexruntimeservice.PostContentOutput, error) 25 | PostContentAsync(ctx workflow.Context, input *lexruntimeservice.PostContentInput) *PostContentFuture 26 | 27 | PostText(ctx workflow.Context, input *lexruntimeservice.PostTextInput) (*lexruntimeservice.PostTextOutput, error) 28 | PostTextAsync(ctx workflow.Context, input *lexruntimeservice.PostTextInput) *PostTextFuture 29 | 30 | PutSession(ctx workflow.Context, input *lexruntimeservice.PutSessionInput) (*lexruntimeservice.PutSessionOutput, error) 31 | PutSessionAsync(ctx workflow.Context, input *lexruntimeservice.PutSessionInput) *PutSessionFuture 32 | } 33 | 34 | func NewClient() Client { 35 | return &stub{} 36 | } 37 | -------------------------------------------------------------------------------- /clients/maciestub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package maciestub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/macie" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | AssociateMemberAccount(ctx workflow.Context, input *macie.AssociateMemberAccountInput) (*macie.AssociateMemberAccountOutput, error) 19 | AssociateMemberAccountAsync(ctx workflow.Context, input *macie.AssociateMemberAccountInput) *AssociateMemberAccountFuture 20 | 21 | AssociateS3Resources(ctx workflow.Context, input *macie.AssociateS3ResourcesInput) (*macie.AssociateS3ResourcesOutput, error) 22 | AssociateS3ResourcesAsync(ctx workflow.Context, input *macie.AssociateS3ResourcesInput) *AssociateS3ResourcesFuture 23 | 24 | DisassociateMemberAccount(ctx workflow.Context, input *macie.DisassociateMemberAccountInput) (*macie.DisassociateMemberAccountOutput, error) 25 | DisassociateMemberAccountAsync(ctx workflow.Context, input *macie.DisassociateMemberAccountInput) *DisassociateMemberAccountFuture 26 | 27 | DisassociateS3Resources(ctx workflow.Context, input *macie.DisassociateS3ResourcesInput) (*macie.DisassociateS3ResourcesOutput, error) 28 | DisassociateS3ResourcesAsync(ctx workflow.Context, input *macie.DisassociateS3ResourcesInput) *DisassociateS3ResourcesFuture 29 | 30 | ListMemberAccounts(ctx workflow.Context, input *macie.ListMemberAccountsInput) (*macie.ListMemberAccountsOutput, error) 31 | ListMemberAccountsAsync(ctx workflow.Context, input *macie.ListMemberAccountsInput) *ListMemberAccountsFuture 32 | 33 | ListS3Resources(ctx workflow.Context, input *macie.ListS3ResourcesInput) (*macie.ListS3ResourcesOutput, error) 34 | ListS3ResourcesAsync(ctx workflow.Context, input *macie.ListS3ResourcesInput) *ListS3ResourcesFuture 35 | 36 | UpdateS3Resources(ctx workflow.Context, input *macie.UpdateS3ResourcesInput) (*macie.UpdateS3ResourcesOutput, error) 37 | UpdateS3ResourcesAsync(ctx workflow.Context, input *macie.UpdateS3ResourcesInput) *UpdateS3ResourcesFuture 38 | } 39 | 40 | func NewClient() Client { 41 | return &stub{} 42 | } 43 | -------------------------------------------------------------------------------- /clients/marketplacecatalogstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package marketplacecatalogstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/marketplacecatalog" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | CancelChangeSet(ctx workflow.Context, input *marketplacecatalog.CancelChangeSetInput) (*marketplacecatalog.CancelChangeSetOutput, error) 19 | CancelChangeSetAsync(ctx workflow.Context, input *marketplacecatalog.CancelChangeSetInput) *CancelChangeSetFuture 20 | 21 | DescribeChangeSet(ctx workflow.Context, input *marketplacecatalog.DescribeChangeSetInput) (*marketplacecatalog.DescribeChangeSetOutput, error) 22 | DescribeChangeSetAsync(ctx workflow.Context, input *marketplacecatalog.DescribeChangeSetInput) *DescribeChangeSetFuture 23 | 24 | DescribeEntity(ctx workflow.Context, input *marketplacecatalog.DescribeEntityInput) (*marketplacecatalog.DescribeEntityOutput, error) 25 | DescribeEntityAsync(ctx workflow.Context, input *marketplacecatalog.DescribeEntityInput) *DescribeEntityFuture 26 | 27 | ListChangeSets(ctx workflow.Context, input *marketplacecatalog.ListChangeSetsInput) (*marketplacecatalog.ListChangeSetsOutput, error) 28 | ListChangeSetsAsync(ctx workflow.Context, input *marketplacecatalog.ListChangeSetsInput) *ListChangeSetsFuture 29 | 30 | ListEntities(ctx workflow.Context, input *marketplacecatalog.ListEntitiesInput) (*marketplacecatalog.ListEntitiesOutput, error) 31 | ListEntitiesAsync(ctx workflow.Context, input *marketplacecatalog.ListEntitiesInput) *ListEntitiesFuture 32 | 33 | StartChangeSet(ctx workflow.Context, input *marketplacecatalog.StartChangeSetInput) (*marketplacecatalog.StartChangeSetOutput, error) 34 | StartChangeSetAsync(ctx workflow.Context, input *marketplacecatalog.StartChangeSetInput) *StartChangeSetFuture 35 | } 36 | 37 | func NewClient() Client { 38 | return &stub{} 39 | } 40 | -------------------------------------------------------------------------------- /clients/marketplacecommerceanalyticsstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package marketplacecommerceanalyticsstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | GenerateDataSet(ctx workflow.Context, input *marketplacecommerceanalytics.GenerateDataSetInput) (*marketplacecommerceanalytics.GenerateDataSetOutput, error) 19 | GenerateDataSetAsync(ctx workflow.Context, input *marketplacecommerceanalytics.GenerateDataSetInput) *GenerateDataSetFuture 20 | 21 | StartSupportDataExport(ctx workflow.Context, input *marketplacecommerceanalytics.StartSupportDataExportInput) (*marketplacecommerceanalytics.StartSupportDataExportOutput, error) 22 | StartSupportDataExportAsync(ctx workflow.Context, input *marketplacecommerceanalytics.StartSupportDataExportInput) *StartSupportDataExportFuture 23 | } 24 | 25 | func NewClient() Client { 26 | return &stub{} 27 | } 28 | -------------------------------------------------------------------------------- /clients/marketplacecommerceanalyticsstub/stub.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package marketplacecommerceanalyticsstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type stub struct{} 18 | 19 | type GenerateDataSetFuture struct { 20 | // public to support Selector.addFuture 21 | Future workflow.Future 22 | } 23 | 24 | func (r *GenerateDataSetFuture) Get(ctx workflow.Context) (*marketplacecommerceanalytics.GenerateDataSetOutput, error) { 25 | var output marketplacecommerceanalytics.GenerateDataSetOutput 26 | err := r.Future.Get(ctx, &output) 27 | return &output, err 28 | } 29 | 30 | type StartSupportDataExportFuture struct { 31 | // public to support Selector.addFuture 32 | Future workflow.Future 33 | } 34 | 35 | func (r *StartSupportDataExportFuture) Get(ctx workflow.Context) (*marketplacecommerceanalytics.StartSupportDataExportOutput, error) { 36 | var output marketplacecommerceanalytics.StartSupportDataExportOutput 37 | err := r.Future.Get(ctx, &output) 38 | return &output, err 39 | } 40 | 41 | func (a *stub) GenerateDataSet(ctx workflow.Context, input *marketplacecommerceanalytics.GenerateDataSetInput) (*marketplacecommerceanalytics.GenerateDataSetOutput, error) { 42 | var output marketplacecommerceanalytics.GenerateDataSetOutput 43 | err := workflow.ExecuteActivity(ctx, "aws.marketplacecommerceanalytics.GenerateDataSet", input).Get(ctx, &output) 44 | return &output, err 45 | } 46 | 47 | func (a *stub) GenerateDataSetAsync(ctx workflow.Context, input *marketplacecommerceanalytics.GenerateDataSetInput) *GenerateDataSetFuture { 48 | future := workflow.ExecuteActivity(ctx, "aws.marketplacecommerceanalytics.GenerateDataSet", input) 49 | return &GenerateDataSetFuture{Future: future} 50 | } 51 | 52 | func (a *stub) StartSupportDataExport(ctx workflow.Context, input *marketplacecommerceanalytics.StartSupportDataExportInput) (*marketplacecommerceanalytics.StartSupportDataExportOutput, error) { 53 | var output marketplacecommerceanalytics.StartSupportDataExportOutput 54 | err := workflow.ExecuteActivity(ctx, "aws.marketplacecommerceanalytics.StartSupportDataExport", input).Get(ctx, &output) 55 | return &output, err 56 | } 57 | 58 | func (a *stub) StartSupportDataExportAsync(ctx workflow.Context, input *marketplacecommerceanalytics.StartSupportDataExportInput) *StartSupportDataExportFuture { 59 | future := workflow.ExecuteActivity(ctx, "aws.marketplacecommerceanalytics.StartSupportDataExport", input) 60 | return &StartSupportDataExportFuture{Future: future} 61 | } 62 | -------------------------------------------------------------------------------- /clients/marketplaceentitlementservicestub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package marketplaceentitlementservicestub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/marketplaceentitlementservice" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | GetEntitlements(ctx workflow.Context, input *marketplaceentitlementservice.GetEntitlementsInput) (*marketplaceentitlementservice.GetEntitlementsOutput, error) 19 | GetEntitlementsAsync(ctx workflow.Context, input *marketplaceentitlementservice.GetEntitlementsInput) *GetEntitlementsFuture 20 | } 21 | 22 | func NewClient() Client { 23 | return &stub{} 24 | } 25 | -------------------------------------------------------------------------------- /clients/marketplaceentitlementservicestub/stub.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package marketplaceentitlementservicestub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/marketplaceentitlementservice" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type stub struct{} 18 | 19 | type GetEntitlementsFuture struct { 20 | // public to support Selector.addFuture 21 | Future workflow.Future 22 | } 23 | 24 | func (r *GetEntitlementsFuture) Get(ctx workflow.Context) (*marketplaceentitlementservice.GetEntitlementsOutput, error) { 25 | var output marketplaceentitlementservice.GetEntitlementsOutput 26 | err := r.Future.Get(ctx, &output) 27 | return &output, err 28 | } 29 | 30 | func (a *stub) GetEntitlements(ctx workflow.Context, input *marketplaceentitlementservice.GetEntitlementsInput) (*marketplaceentitlementservice.GetEntitlementsOutput, error) { 31 | var output marketplaceentitlementservice.GetEntitlementsOutput 32 | err := workflow.ExecuteActivity(ctx, "aws.marketplaceentitlementservice.GetEntitlements", input).Get(ctx, &output) 33 | return &output, err 34 | } 35 | 36 | func (a *stub) GetEntitlementsAsync(ctx workflow.Context, input *marketplaceentitlementservice.GetEntitlementsInput) *GetEntitlementsFuture { 37 | future := workflow.ExecuteActivity(ctx, "aws.marketplaceentitlementservice.GetEntitlements", input) 38 | return &GetEntitlementsFuture{Future: future} 39 | } 40 | -------------------------------------------------------------------------------- /clients/marketplacemeteringstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package marketplacemeteringstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/marketplacemetering" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | BatchMeterUsage(ctx workflow.Context, input *marketplacemetering.BatchMeterUsageInput) (*marketplacemetering.BatchMeterUsageOutput, error) 19 | BatchMeterUsageAsync(ctx workflow.Context, input *marketplacemetering.BatchMeterUsageInput) *BatchMeterUsageFuture 20 | 21 | MeterUsage(ctx workflow.Context, input *marketplacemetering.MeterUsageInput) (*marketplacemetering.MeterUsageOutput, error) 22 | MeterUsageAsync(ctx workflow.Context, input *marketplacemetering.MeterUsageInput) *MeterUsageFuture 23 | 24 | RegisterUsage(ctx workflow.Context, input *marketplacemetering.RegisterUsageInput) (*marketplacemetering.RegisterUsageOutput, error) 25 | RegisterUsageAsync(ctx workflow.Context, input *marketplacemetering.RegisterUsageInput) *RegisterUsageFuture 26 | 27 | ResolveCustomer(ctx workflow.Context, input *marketplacemetering.ResolveCustomerInput) (*marketplacemetering.ResolveCustomerOutput, error) 28 | ResolveCustomerAsync(ctx workflow.Context, input *marketplacemetering.ResolveCustomerInput) *ResolveCustomerFuture 29 | } 30 | 31 | func NewClient() Client { 32 | return &stub{} 33 | } 34 | -------------------------------------------------------------------------------- /clients/mediastoredatastub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package mediastoredatastub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/mediastoredata" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | DeleteObject(ctx workflow.Context, input *mediastoredata.DeleteObjectInput) (*mediastoredata.DeleteObjectOutput, error) 19 | DeleteObjectAsync(ctx workflow.Context, input *mediastoredata.DeleteObjectInput) *DeleteObjectFuture 20 | 21 | DescribeObject(ctx workflow.Context, input *mediastoredata.DescribeObjectInput) (*mediastoredata.DescribeObjectOutput, error) 22 | DescribeObjectAsync(ctx workflow.Context, input *mediastoredata.DescribeObjectInput) *DescribeObjectFuture 23 | 24 | GetObject(ctx workflow.Context, input *mediastoredata.GetObjectInput) (*mediastoredata.GetObjectOutput, error) 25 | GetObjectAsync(ctx workflow.Context, input *mediastoredata.GetObjectInput) *GetObjectFuture 26 | 27 | ListItems(ctx workflow.Context, input *mediastoredata.ListItemsInput) (*mediastoredata.ListItemsOutput, error) 28 | ListItemsAsync(ctx workflow.Context, input *mediastoredata.ListItemsInput) *ListItemsFuture 29 | 30 | PutObject(ctx workflow.Context, input *mediastoredata.PutObjectInput) (*mediastoredata.PutObjectOutput, error) 31 | PutObjectAsync(ctx workflow.Context, input *mediastoredata.PutObjectInput) *PutObjectFuture 32 | } 33 | 34 | func NewClient() Client { 35 | return &stub{} 36 | } 37 | -------------------------------------------------------------------------------- /clients/mediatailorstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package mediatailorstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/mediatailor" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | DeletePlaybackConfiguration(ctx workflow.Context, input *mediatailor.DeletePlaybackConfigurationInput) (*mediatailor.DeletePlaybackConfigurationOutput, error) 19 | DeletePlaybackConfigurationAsync(ctx workflow.Context, input *mediatailor.DeletePlaybackConfigurationInput) *DeletePlaybackConfigurationFuture 20 | 21 | GetPlaybackConfiguration(ctx workflow.Context, input *mediatailor.GetPlaybackConfigurationInput) (*mediatailor.GetPlaybackConfigurationOutput, error) 22 | GetPlaybackConfigurationAsync(ctx workflow.Context, input *mediatailor.GetPlaybackConfigurationInput) *GetPlaybackConfigurationFuture 23 | 24 | ListPlaybackConfigurations(ctx workflow.Context, input *mediatailor.ListPlaybackConfigurationsInput) (*mediatailor.ListPlaybackConfigurationsOutput, error) 25 | ListPlaybackConfigurationsAsync(ctx workflow.Context, input *mediatailor.ListPlaybackConfigurationsInput) *ListPlaybackConfigurationsFuture 26 | 27 | ListTagsForResource(ctx workflow.Context, input *mediatailor.ListTagsForResourceInput) (*mediatailor.ListTagsForResourceOutput, error) 28 | ListTagsForResourceAsync(ctx workflow.Context, input *mediatailor.ListTagsForResourceInput) *ListTagsForResourceFuture 29 | 30 | PutPlaybackConfiguration(ctx workflow.Context, input *mediatailor.PutPlaybackConfigurationInput) (*mediatailor.PutPlaybackConfigurationOutput, error) 31 | PutPlaybackConfigurationAsync(ctx workflow.Context, input *mediatailor.PutPlaybackConfigurationInput) *PutPlaybackConfigurationFuture 32 | 33 | TagResource(ctx workflow.Context, input *mediatailor.TagResourceInput) (*mediatailor.TagResourceOutput, error) 34 | TagResourceAsync(ctx workflow.Context, input *mediatailor.TagResourceInput) *TagResourceFuture 35 | 36 | UntagResource(ctx workflow.Context, input *mediatailor.UntagResourceInput) (*mediatailor.UntagResourceOutput, error) 37 | UntagResourceAsync(ctx workflow.Context, input *mediatailor.UntagResourceInput) *UntagResourceFuture 38 | } 39 | 40 | func NewClient() Client { 41 | return &stub{} 42 | } 43 | -------------------------------------------------------------------------------- /clients/migrationhubconfigstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package migrationhubconfigstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/migrationhubconfig" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | CreateHomeRegionControl(ctx workflow.Context, input *migrationhubconfig.CreateHomeRegionControlInput) (*migrationhubconfig.CreateHomeRegionControlOutput, error) 19 | CreateHomeRegionControlAsync(ctx workflow.Context, input *migrationhubconfig.CreateHomeRegionControlInput) *CreateHomeRegionControlFuture 20 | 21 | DescribeHomeRegionControls(ctx workflow.Context, input *migrationhubconfig.DescribeHomeRegionControlsInput) (*migrationhubconfig.DescribeHomeRegionControlsOutput, error) 22 | DescribeHomeRegionControlsAsync(ctx workflow.Context, input *migrationhubconfig.DescribeHomeRegionControlsInput) *DescribeHomeRegionControlsFuture 23 | 24 | GetHomeRegion(ctx workflow.Context, input *migrationhubconfig.GetHomeRegionInput) (*migrationhubconfig.GetHomeRegionOutput, error) 25 | GetHomeRegionAsync(ctx workflow.Context, input *migrationhubconfig.GetHomeRegionInput) *GetHomeRegionFuture 26 | } 27 | 28 | func NewClient() Client { 29 | return &stub{} 30 | } 31 | -------------------------------------------------------------------------------- /clients/mobileanalyticsstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package mobileanalyticsstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/mobileanalytics" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | PutEvents(ctx workflow.Context, input *mobileanalytics.PutEventsInput) (*mobileanalytics.PutEventsOutput, error) 19 | PutEventsAsync(ctx workflow.Context, input *mobileanalytics.PutEventsInput) *PutEventsFuture 20 | } 21 | 22 | func NewClient() Client { 23 | return &stub{} 24 | } 25 | -------------------------------------------------------------------------------- /clients/mobileanalyticsstub/stub.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package mobileanalyticsstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/mobileanalytics" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type stub struct{} 18 | 19 | type PutEventsFuture struct { 20 | // public to support Selector.addFuture 21 | Future workflow.Future 22 | } 23 | 24 | func (r *PutEventsFuture) Get(ctx workflow.Context) (*mobileanalytics.PutEventsOutput, error) { 25 | var output mobileanalytics.PutEventsOutput 26 | err := r.Future.Get(ctx, &output) 27 | return &output, err 28 | } 29 | 30 | func (a *stub) PutEvents(ctx workflow.Context, input *mobileanalytics.PutEventsInput) (*mobileanalytics.PutEventsOutput, error) { 31 | var output mobileanalytics.PutEventsOutput 32 | err := workflow.ExecuteActivity(ctx, "aws.mobileanalytics.PutEvents", input).Get(ctx, &output) 33 | return &output, err 34 | } 35 | 36 | func (a *stub) PutEventsAsync(ctx workflow.Context, input *mobileanalytics.PutEventsInput) *PutEventsFuture { 37 | future := workflow.ExecuteActivity(ctx, "aws.mobileanalytics.PutEvents", input) 38 | return &PutEventsFuture{Future: future} 39 | } 40 | -------------------------------------------------------------------------------- /clients/mobilestub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package mobilestub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/mobile" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | CreateProject(ctx workflow.Context, input *mobile.CreateProjectInput) (*mobile.CreateProjectOutput, error) 19 | CreateProjectAsync(ctx workflow.Context, input *mobile.CreateProjectInput) *CreateProjectFuture 20 | 21 | DeleteProject(ctx workflow.Context, input *mobile.DeleteProjectInput) (*mobile.DeleteProjectOutput, error) 22 | DeleteProjectAsync(ctx workflow.Context, input *mobile.DeleteProjectInput) *DeleteProjectFuture 23 | 24 | DescribeBundle(ctx workflow.Context, input *mobile.DescribeBundleInput) (*mobile.DescribeBundleOutput, error) 25 | DescribeBundleAsync(ctx workflow.Context, input *mobile.DescribeBundleInput) *DescribeBundleFuture 26 | 27 | DescribeProject(ctx workflow.Context, input *mobile.DescribeProjectInput) (*mobile.DescribeProjectOutput, error) 28 | DescribeProjectAsync(ctx workflow.Context, input *mobile.DescribeProjectInput) *DescribeProjectFuture 29 | 30 | ExportBundle(ctx workflow.Context, input *mobile.ExportBundleInput) (*mobile.ExportBundleOutput, error) 31 | ExportBundleAsync(ctx workflow.Context, input *mobile.ExportBundleInput) *ExportBundleFuture 32 | 33 | ExportProject(ctx workflow.Context, input *mobile.ExportProjectInput) (*mobile.ExportProjectOutput, error) 34 | ExportProjectAsync(ctx workflow.Context, input *mobile.ExportProjectInput) *ExportProjectFuture 35 | 36 | ListBundles(ctx workflow.Context, input *mobile.ListBundlesInput) (*mobile.ListBundlesOutput, error) 37 | ListBundlesAsync(ctx workflow.Context, input *mobile.ListBundlesInput) *ListBundlesFuture 38 | 39 | ListProjects(ctx workflow.Context, input *mobile.ListProjectsInput) (*mobile.ListProjectsOutput, error) 40 | ListProjectsAsync(ctx workflow.Context, input *mobile.ListProjectsInput) *ListProjectsFuture 41 | 42 | UpdateProject(ctx workflow.Context, input *mobile.UpdateProjectInput) (*mobile.UpdateProjectOutput, error) 43 | UpdateProjectAsync(ctx workflow.Context, input *mobile.UpdateProjectInput) *UpdateProjectFuture 44 | } 45 | 46 | func NewClient() Client { 47 | return &stub{} 48 | } 49 | -------------------------------------------------------------------------------- /clients/outpostsstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package outpostsstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/outposts" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | CreateOutpost(ctx workflow.Context, input *outposts.CreateOutpostInput) (*outposts.CreateOutpostOutput, error) 19 | CreateOutpostAsync(ctx workflow.Context, input *outposts.CreateOutpostInput) *CreateOutpostFuture 20 | 21 | DeleteOutpost(ctx workflow.Context, input *outposts.DeleteOutpostInput) (*outposts.DeleteOutpostOutput, error) 22 | DeleteOutpostAsync(ctx workflow.Context, input *outposts.DeleteOutpostInput) *DeleteOutpostFuture 23 | 24 | DeleteSite(ctx workflow.Context, input *outposts.DeleteSiteInput) (*outposts.DeleteSiteOutput, error) 25 | DeleteSiteAsync(ctx workflow.Context, input *outposts.DeleteSiteInput) *DeleteSiteFuture 26 | 27 | GetOutpost(ctx workflow.Context, input *outposts.GetOutpostInput) (*outposts.GetOutpostOutput, error) 28 | GetOutpostAsync(ctx workflow.Context, input *outposts.GetOutpostInput) *GetOutpostFuture 29 | 30 | GetOutpostInstanceTypes(ctx workflow.Context, input *outposts.GetOutpostInstanceTypesInput) (*outposts.GetOutpostInstanceTypesOutput, error) 31 | GetOutpostInstanceTypesAsync(ctx workflow.Context, input *outposts.GetOutpostInstanceTypesInput) *GetOutpostInstanceTypesFuture 32 | 33 | ListOutposts(ctx workflow.Context, input *outposts.ListOutpostsInput) (*outposts.ListOutpostsOutput, error) 34 | ListOutpostsAsync(ctx workflow.Context, input *outposts.ListOutpostsInput) *ListOutpostsFuture 35 | 36 | ListSites(ctx workflow.Context, input *outposts.ListSitesInput) (*outposts.ListSitesOutput, error) 37 | ListSitesAsync(ctx workflow.Context, input *outposts.ListSitesInput) *ListSitesFuture 38 | } 39 | 40 | func NewClient() Client { 41 | return &stub{} 42 | } 43 | -------------------------------------------------------------------------------- /clients/personalizeeventsstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package personalizeeventsstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/personalizeevents" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | PutEvents(ctx workflow.Context, input *personalizeevents.PutEventsInput) (*personalizeevents.PutEventsOutput, error) 19 | PutEventsAsync(ctx workflow.Context, input *personalizeevents.PutEventsInput) *PutEventsFuture 20 | 21 | PutItems(ctx workflow.Context, input *personalizeevents.PutItemsInput) (*personalizeevents.PutItemsOutput, error) 22 | PutItemsAsync(ctx workflow.Context, input *personalizeevents.PutItemsInput) *PutItemsFuture 23 | 24 | PutUsers(ctx workflow.Context, input *personalizeevents.PutUsersInput) (*personalizeevents.PutUsersOutput, error) 25 | PutUsersAsync(ctx workflow.Context, input *personalizeevents.PutUsersInput) *PutUsersFuture 26 | } 27 | 28 | func NewClient() Client { 29 | return &stub{} 30 | } 31 | -------------------------------------------------------------------------------- /clients/personalizeeventsstub/stub.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package personalizeeventsstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/personalizeevents" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type stub struct{} 18 | 19 | type PutEventsFuture struct { 20 | // public to support Selector.addFuture 21 | Future workflow.Future 22 | } 23 | 24 | func (r *PutEventsFuture) Get(ctx workflow.Context) (*personalizeevents.PutEventsOutput, error) { 25 | var output personalizeevents.PutEventsOutput 26 | err := r.Future.Get(ctx, &output) 27 | return &output, err 28 | } 29 | 30 | type PutItemsFuture struct { 31 | // public to support Selector.addFuture 32 | Future workflow.Future 33 | } 34 | 35 | func (r *PutItemsFuture) Get(ctx workflow.Context) (*personalizeevents.PutItemsOutput, error) { 36 | var output personalizeevents.PutItemsOutput 37 | err := r.Future.Get(ctx, &output) 38 | return &output, err 39 | } 40 | 41 | type PutUsersFuture struct { 42 | // public to support Selector.addFuture 43 | Future workflow.Future 44 | } 45 | 46 | func (r *PutUsersFuture) Get(ctx workflow.Context) (*personalizeevents.PutUsersOutput, error) { 47 | var output personalizeevents.PutUsersOutput 48 | err := r.Future.Get(ctx, &output) 49 | return &output, err 50 | } 51 | 52 | func (a *stub) PutEvents(ctx workflow.Context, input *personalizeevents.PutEventsInput) (*personalizeevents.PutEventsOutput, error) { 53 | var output personalizeevents.PutEventsOutput 54 | err := workflow.ExecuteActivity(ctx, "aws.personalizeevents.PutEvents", input).Get(ctx, &output) 55 | return &output, err 56 | } 57 | 58 | func (a *stub) PutEventsAsync(ctx workflow.Context, input *personalizeevents.PutEventsInput) *PutEventsFuture { 59 | future := workflow.ExecuteActivity(ctx, "aws.personalizeevents.PutEvents", input) 60 | return &PutEventsFuture{Future: future} 61 | } 62 | 63 | func (a *stub) PutItems(ctx workflow.Context, input *personalizeevents.PutItemsInput) (*personalizeevents.PutItemsOutput, error) { 64 | var output personalizeevents.PutItemsOutput 65 | err := workflow.ExecuteActivity(ctx, "aws.personalizeevents.PutItems", input).Get(ctx, &output) 66 | return &output, err 67 | } 68 | 69 | func (a *stub) PutItemsAsync(ctx workflow.Context, input *personalizeevents.PutItemsInput) *PutItemsFuture { 70 | future := workflow.ExecuteActivity(ctx, "aws.personalizeevents.PutItems", input) 71 | return &PutItemsFuture{Future: future} 72 | } 73 | 74 | func (a *stub) PutUsers(ctx workflow.Context, input *personalizeevents.PutUsersInput) (*personalizeevents.PutUsersOutput, error) { 75 | var output personalizeevents.PutUsersOutput 76 | err := workflow.ExecuteActivity(ctx, "aws.personalizeevents.PutUsers", input).Get(ctx, &output) 77 | return &output, err 78 | } 79 | 80 | func (a *stub) PutUsersAsync(ctx workflow.Context, input *personalizeevents.PutUsersInput) *PutUsersFuture { 81 | future := workflow.ExecuteActivity(ctx, "aws.personalizeevents.PutUsers", input) 82 | return &PutUsersFuture{Future: future} 83 | } 84 | -------------------------------------------------------------------------------- /clients/personalizeruntimestub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package personalizeruntimestub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/personalizeruntime" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | GetPersonalizedRanking(ctx workflow.Context, input *personalizeruntime.GetPersonalizedRankingInput) (*personalizeruntime.GetPersonalizedRankingOutput, error) 19 | GetPersonalizedRankingAsync(ctx workflow.Context, input *personalizeruntime.GetPersonalizedRankingInput) *GetPersonalizedRankingFuture 20 | 21 | GetRecommendations(ctx workflow.Context, input *personalizeruntime.GetRecommendationsInput) (*personalizeruntime.GetRecommendationsOutput, error) 22 | GetRecommendationsAsync(ctx workflow.Context, input *personalizeruntime.GetRecommendationsInput) *GetRecommendationsFuture 23 | } 24 | 25 | func NewClient() Client { 26 | return &stub{} 27 | } 28 | -------------------------------------------------------------------------------- /clients/personalizeruntimestub/stub.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package personalizeruntimestub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/personalizeruntime" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type stub struct{} 18 | 19 | type GetPersonalizedRankingFuture struct { 20 | // public to support Selector.addFuture 21 | Future workflow.Future 22 | } 23 | 24 | func (r *GetPersonalizedRankingFuture) Get(ctx workflow.Context) (*personalizeruntime.GetPersonalizedRankingOutput, error) { 25 | var output personalizeruntime.GetPersonalizedRankingOutput 26 | err := r.Future.Get(ctx, &output) 27 | return &output, err 28 | } 29 | 30 | type GetRecommendationsFuture struct { 31 | // public to support Selector.addFuture 32 | Future workflow.Future 33 | } 34 | 35 | func (r *GetRecommendationsFuture) Get(ctx workflow.Context) (*personalizeruntime.GetRecommendationsOutput, error) { 36 | var output personalizeruntime.GetRecommendationsOutput 37 | err := r.Future.Get(ctx, &output) 38 | return &output, err 39 | } 40 | 41 | func (a *stub) GetPersonalizedRanking(ctx workflow.Context, input *personalizeruntime.GetPersonalizedRankingInput) (*personalizeruntime.GetPersonalizedRankingOutput, error) { 42 | var output personalizeruntime.GetPersonalizedRankingOutput 43 | err := workflow.ExecuteActivity(ctx, "aws.personalizeruntime.GetPersonalizedRanking", input).Get(ctx, &output) 44 | return &output, err 45 | } 46 | 47 | func (a *stub) GetPersonalizedRankingAsync(ctx workflow.Context, input *personalizeruntime.GetPersonalizedRankingInput) *GetPersonalizedRankingFuture { 48 | future := workflow.ExecuteActivity(ctx, "aws.personalizeruntime.GetPersonalizedRanking", input) 49 | return &GetPersonalizedRankingFuture{Future: future} 50 | } 51 | 52 | func (a *stub) GetRecommendations(ctx workflow.Context, input *personalizeruntime.GetRecommendationsInput) (*personalizeruntime.GetRecommendationsOutput, error) { 53 | var output personalizeruntime.GetRecommendationsOutput 54 | err := workflow.ExecuteActivity(ctx, "aws.personalizeruntime.GetRecommendations", input).Get(ctx, &output) 55 | return &output, err 56 | } 57 | 58 | func (a *stub) GetRecommendationsAsync(ctx workflow.Context, input *personalizeruntime.GetRecommendationsInput) *GetRecommendationsFuture { 59 | future := workflow.ExecuteActivity(ctx, "aws.personalizeruntime.GetRecommendations", input) 60 | return &GetRecommendationsFuture{Future: future} 61 | } 62 | -------------------------------------------------------------------------------- /clients/pinpointsmsvoicestub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package pinpointsmsvoicestub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/pinpointsmsvoice" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | CreateConfigurationSet(ctx workflow.Context, input *pinpointsmsvoice.CreateConfigurationSetInput) (*pinpointsmsvoice.CreateConfigurationSetOutput, error) 19 | CreateConfigurationSetAsync(ctx workflow.Context, input *pinpointsmsvoice.CreateConfigurationSetInput) *CreateConfigurationSetFuture 20 | 21 | CreateConfigurationSetEventDestination(ctx workflow.Context, input *pinpointsmsvoice.CreateConfigurationSetEventDestinationInput) (*pinpointsmsvoice.CreateConfigurationSetEventDestinationOutput, error) 22 | CreateConfigurationSetEventDestinationAsync(ctx workflow.Context, input *pinpointsmsvoice.CreateConfigurationSetEventDestinationInput) *CreateConfigurationSetEventDestinationFuture 23 | 24 | DeleteConfigurationSet(ctx workflow.Context, input *pinpointsmsvoice.DeleteConfigurationSetInput) (*pinpointsmsvoice.DeleteConfigurationSetOutput, error) 25 | DeleteConfigurationSetAsync(ctx workflow.Context, input *pinpointsmsvoice.DeleteConfigurationSetInput) *DeleteConfigurationSetFuture 26 | 27 | DeleteConfigurationSetEventDestination(ctx workflow.Context, input *pinpointsmsvoice.DeleteConfigurationSetEventDestinationInput) (*pinpointsmsvoice.DeleteConfigurationSetEventDestinationOutput, error) 28 | DeleteConfigurationSetEventDestinationAsync(ctx workflow.Context, input *pinpointsmsvoice.DeleteConfigurationSetEventDestinationInput) *DeleteConfigurationSetEventDestinationFuture 29 | 30 | GetConfigurationSetEventDestinations(ctx workflow.Context, input *pinpointsmsvoice.GetConfigurationSetEventDestinationsInput) (*pinpointsmsvoice.GetConfigurationSetEventDestinationsOutput, error) 31 | GetConfigurationSetEventDestinationsAsync(ctx workflow.Context, input *pinpointsmsvoice.GetConfigurationSetEventDestinationsInput) *GetConfigurationSetEventDestinationsFuture 32 | 33 | ListConfigurationSets(ctx workflow.Context, input *pinpointsmsvoice.ListConfigurationSetsInput) (*pinpointsmsvoice.ListConfigurationSetsOutput, error) 34 | ListConfigurationSetsAsync(ctx workflow.Context, input *pinpointsmsvoice.ListConfigurationSetsInput) *ListConfigurationSetsFuture 35 | 36 | SendVoiceMessage(ctx workflow.Context, input *pinpointsmsvoice.SendVoiceMessageInput) (*pinpointsmsvoice.SendVoiceMessageOutput, error) 37 | SendVoiceMessageAsync(ctx workflow.Context, input *pinpointsmsvoice.SendVoiceMessageInput) *SendVoiceMessageFuture 38 | 39 | UpdateConfigurationSetEventDestination(ctx workflow.Context, input *pinpointsmsvoice.UpdateConfigurationSetEventDestinationInput) (*pinpointsmsvoice.UpdateConfigurationSetEventDestinationOutput, error) 40 | UpdateConfigurationSetEventDestinationAsync(ctx workflow.Context, input *pinpointsmsvoice.UpdateConfigurationSetEventDestinationInput) *UpdateConfigurationSetEventDestinationFuture 41 | } 42 | 43 | func NewClient() Client { 44 | return &stub{} 45 | } 46 | -------------------------------------------------------------------------------- /clients/pistub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package pistub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/pi" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | DescribeDimensionKeys(ctx workflow.Context, input *pi.DescribeDimensionKeysInput) (*pi.DescribeDimensionKeysOutput, error) 19 | DescribeDimensionKeysAsync(ctx workflow.Context, input *pi.DescribeDimensionKeysInput) *DescribeDimensionKeysFuture 20 | 21 | GetResourceMetrics(ctx workflow.Context, input *pi.GetResourceMetricsInput) (*pi.GetResourceMetricsOutput, error) 22 | GetResourceMetricsAsync(ctx workflow.Context, input *pi.GetResourceMetricsInput) *GetResourceMetricsFuture 23 | } 24 | 25 | func NewClient() Client { 26 | return &stub{} 27 | } 28 | -------------------------------------------------------------------------------- /clients/pistub/stub.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package pistub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/pi" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type stub struct{} 18 | 19 | type DescribeDimensionKeysFuture struct { 20 | // public to support Selector.addFuture 21 | Future workflow.Future 22 | } 23 | 24 | func (r *DescribeDimensionKeysFuture) Get(ctx workflow.Context) (*pi.DescribeDimensionKeysOutput, error) { 25 | var output pi.DescribeDimensionKeysOutput 26 | err := r.Future.Get(ctx, &output) 27 | return &output, err 28 | } 29 | 30 | type GetResourceMetricsFuture struct { 31 | // public to support Selector.addFuture 32 | Future workflow.Future 33 | } 34 | 35 | func (r *GetResourceMetricsFuture) Get(ctx workflow.Context) (*pi.GetResourceMetricsOutput, error) { 36 | var output pi.GetResourceMetricsOutput 37 | err := r.Future.Get(ctx, &output) 38 | return &output, err 39 | } 40 | 41 | func (a *stub) DescribeDimensionKeys(ctx workflow.Context, input *pi.DescribeDimensionKeysInput) (*pi.DescribeDimensionKeysOutput, error) { 42 | var output pi.DescribeDimensionKeysOutput 43 | err := workflow.ExecuteActivity(ctx, "aws.pi.DescribeDimensionKeys", input).Get(ctx, &output) 44 | return &output, err 45 | } 46 | 47 | func (a *stub) DescribeDimensionKeysAsync(ctx workflow.Context, input *pi.DescribeDimensionKeysInput) *DescribeDimensionKeysFuture { 48 | future := workflow.ExecuteActivity(ctx, "aws.pi.DescribeDimensionKeys", input) 49 | return &DescribeDimensionKeysFuture{Future: future} 50 | } 51 | 52 | func (a *stub) GetResourceMetrics(ctx workflow.Context, input *pi.GetResourceMetricsInput) (*pi.GetResourceMetricsOutput, error) { 53 | var output pi.GetResourceMetricsOutput 54 | err := workflow.ExecuteActivity(ctx, "aws.pi.GetResourceMetrics", input).Get(ctx, &output) 55 | return &output, err 56 | } 57 | 58 | func (a *stub) GetResourceMetricsAsync(ctx workflow.Context, input *pi.GetResourceMetricsInput) *GetResourceMetricsFuture { 59 | future := workflow.ExecuteActivity(ctx, "aws.pi.GetResourceMetrics", input) 60 | return &GetResourceMetricsFuture{Future: future} 61 | } 62 | -------------------------------------------------------------------------------- /clients/pollystub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package pollystub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/polly" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | DeleteLexicon(ctx workflow.Context, input *polly.DeleteLexiconInput) (*polly.DeleteLexiconOutput, error) 19 | DeleteLexiconAsync(ctx workflow.Context, input *polly.DeleteLexiconInput) *DeleteLexiconFuture 20 | 21 | DescribeVoices(ctx workflow.Context, input *polly.DescribeVoicesInput) (*polly.DescribeVoicesOutput, error) 22 | DescribeVoicesAsync(ctx workflow.Context, input *polly.DescribeVoicesInput) *DescribeVoicesFuture 23 | 24 | GetLexicon(ctx workflow.Context, input *polly.GetLexiconInput) (*polly.GetLexiconOutput, error) 25 | GetLexiconAsync(ctx workflow.Context, input *polly.GetLexiconInput) *GetLexiconFuture 26 | 27 | GetSpeechSynthesisTask(ctx workflow.Context, input *polly.GetSpeechSynthesisTaskInput) (*polly.GetSpeechSynthesisTaskOutput, error) 28 | GetSpeechSynthesisTaskAsync(ctx workflow.Context, input *polly.GetSpeechSynthesisTaskInput) *GetSpeechSynthesisTaskFuture 29 | 30 | ListLexicons(ctx workflow.Context, input *polly.ListLexiconsInput) (*polly.ListLexiconsOutput, error) 31 | ListLexiconsAsync(ctx workflow.Context, input *polly.ListLexiconsInput) *ListLexiconsFuture 32 | 33 | ListSpeechSynthesisTasks(ctx workflow.Context, input *polly.ListSpeechSynthesisTasksInput) (*polly.ListSpeechSynthesisTasksOutput, error) 34 | ListSpeechSynthesisTasksAsync(ctx workflow.Context, input *polly.ListSpeechSynthesisTasksInput) *ListSpeechSynthesisTasksFuture 35 | 36 | PutLexicon(ctx workflow.Context, input *polly.PutLexiconInput) (*polly.PutLexiconOutput, error) 37 | PutLexiconAsync(ctx workflow.Context, input *polly.PutLexiconInput) *PutLexiconFuture 38 | 39 | StartSpeechSynthesisTask(ctx workflow.Context, input *polly.StartSpeechSynthesisTaskInput) (*polly.StartSpeechSynthesisTaskOutput, error) 40 | StartSpeechSynthesisTaskAsync(ctx workflow.Context, input *polly.StartSpeechSynthesisTaskInput) *StartSpeechSynthesisTaskFuture 41 | 42 | SynthesizeSpeech(ctx workflow.Context, input *polly.SynthesizeSpeechInput) (*polly.SynthesizeSpeechOutput, error) 43 | SynthesizeSpeechAsync(ctx workflow.Context, input *polly.SynthesizeSpeechInput) *SynthesizeSpeechFuture 44 | } 45 | 46 | func NewClient() Client { 47 | return &stub{} 48 | } 49 | -------------------------------------------------------------------------------- /clients/pricingstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package pricingstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/pricing" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | DescribeServices(ctx workflow.Context, input *pricing.DescribeServicesInput) (*pricing.DescribeServicesOutput, error) 19 | DescribeServicesAsync(ctx workflow.Context, input *pricing.DescribeServicesInput) *DescribeServicesFuture 20 | 21 | GetAttributeValues(ctx workflow.Context, input *pricing.GetAttributeValuesInput) (*pricing.GetAttributeValuesOutput, error) 22 | GetAttributeValuesAsync(ctx workflow.Context, input *pricing.GetAttributeValuesInput) *GetAttributeValuesFuture 23 | 24 | GetProducts(ctx workflow.Context, input *pricing.GetProductsInput) (*pricing.GetProductsOutput, error) 25 | GetProductsAsync(ctx workflow.Context, input *pricing.GetProductsInput) *GetProductsFuture 26 | } 27 | 28 | func NewClient() Client { 29 | return &stub{} 30 | } 31 | -------------------------------------------------------------------------------- /clients/pricingstub/stub.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package pricingstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/pricing" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type stub struct{} 18 | 19 | type DescribeServicesFuture struct { 20 | // public to support Selector.addFuture 21 | Future workflow.Future 22 | } 23 | 24 | func (r *DescribeServicesFuture) Get(ctx workflow.Context) (*pricing.DescribeServicesOutput, error) { 25 | var output pricing.DescribeServicesOutput 26 | err := r.Future.Get(ctx, &output) 27 | return &output, err 28 | } 29 | 30 | type GetAttributeValuesFuture struct { 31 | // public to support Selector.addFuture 32 | Future workflow.Future 33 | } 34 | 35 | func (r *GetAttributeValuesFuture) Get(ctx workflow.Context) (*pricing.GetAttributeValuesOutput, error) { 36 | var output pricing.GetAttributeValuesOutput 37 | err := r.Future.Get(ctx, &output) 38 | return &output, err 39 | } 40 | 41 | type GetProductsFuture struct { 42 | // public to support Selector.addFuture 43 | Future workflow.Future 44 | } 45 | 46 | func (r *GetProductsFuture) Get(ctx workflow.Context) (*pricing.GetProductsOutput, error) { 47 | var output pricing.GetProductsOutput 48 | err := r.Future.Get(ctx, &output) 49 | return &output, err 50 | } 51 | 52 | func (a *stub) DescribeServices(ctx workflow.Context, input *pricing.DescribeServicesInput) (*pricing.DescribeServicesOutput, error) { 53 | var output pricing.DescribeServicesOutput 54 | err := workflow.ExecuteActivity(ctx, "aws.pricing.DescribeServices", input).Get(ctx, &output) 55 | return &output, err 56 | } 57 | 58 | func (a *stub) DescribeServicesAsync(ctx workflow.Context, input *pricing.DescribeServicesInput) *DescribeServicesFuture { 59 | future := workflow.ExecuteActivity(ctx, "aws.pricing.DescribeServices", input) 60 | return &DescribeServicesFuture{Future: future} 61 | } 62 | 63 | func (a *stub) GetAttributeValues(ctx workflow.Context, input *pricing.GetAttributeValuesInput) (*pricing.GetAttributeValuesOutput, error) { 64 | var output pricing.GetAttributeValuesOutput 65 | err := workflow.ExecuteActivity(ctx, "aws.pricing.GetAttributeValues", input).Get(ctx, &output) 66 | return &output, err 67 | } 68 | 69 | func (a *stub) GetAttributeValuesAsync(ctx workflow.Context, input *pricing.GetAttributeValuesInput) *GetAttributeValuesFuture { 70 | future := workflow.ExecuteActivity(ctx, "aws.pricing.GetAttributeValues", input) 71 | return &GetAttributeValuesFuture{Future: future} 72 | } 73 | 74 | func (a *stub) GetProducts(ctx workflow.Context, input *pricing.GetProductsInput) (*pricing.GetProductsOutput, error) { 75 | var output pricing.GetProductsOutput 76 | err := workflow.ExecuteActivity(ctx, "aws.pricing.GetProducts", input).Get(ctx, &output) 77 | return &output, err 78 | } 79 | 80 | func (a *stub) GetProductsAsync(ctx workflow.Context, input *pricing.GetProductsInput) *GetProductsFuture { 81 | future := workflow.ExecuteActivity(ctx, "aws.pricing.GetProducts", input) 82 | return &GetProductsFuture{Future: future} 83 | } 84 | -------------------------------------------------------------------------------- /clients/qldbsessionstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package qldbsessionstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/qldbsession" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | SendCommand(ctx workflow.Context, input *qldbsession.SendCommandInput) (*qldbsession.SendCommandOutput, error) 19 | SendCommandAsync(ctx workflow.Context, input *qldbsession.SendCommandInput) *SendCommandFuture 20 | } 21 | 22 | func NewClient() Client { 23 | return &stub{} 24 | } 25 | -------------------------------------------------------------------------------- /clients/qldbsessionstub/stub.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package qldbsessionstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/qldbsession" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type stub struct{} 18 | 19 | type SendCommandFuture struct { 20 | // public to support Selector.addFuture 21 | Future workflow.Future 22 | } 23 | 24 | func (r *SendCommandFuture) Get(ctx workflow.Context) (*qldbsession.SendCommandOutput, error) { 25 | var output qldbsession.SendCommandOutput 26 | err := r.Future.Get(ctx, &output) 27 | return &output, err 28 | } 29 | 30 | func (a *stub) SendCommand(ctx workflow.Context, input *qldbsession.SendCommandInput) (*qldbsession.SendCommandOutput, error) { 31 | var output qldbsession.SendCommandOutput 32 | err := workflow.ExecuteActivity(ctx, "aws.qldbsession.SendCommand", input).Get(ctx, &output) 33 | return &output, err 34 | } 35 | 36 | func (a *stub) SendCommandAsync(ctx workflow.Context, input *qldbsession.SendCommandInput) *SendCommandFuture { 37 | future := workflow.ExecuteActivity(ctx, "aws.qldbsession.SendCommand", input) 38 | return &SendCommandFuture{Future: future} 39 | } 40 | -------------------------------------------------------------------------------- /clients/rdsdataservicestub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package rdsdataservicestub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/rdsdataservice" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | BatchExecuteStatement(ctx workflow.Context, input *rdsdataservice.BatchExecuteStatementInput) (*rdsdataservice.BatchExecuteStatementOutput, error) 19 | BatchExecuteStatementAsync(ctx workflow.Context, input *rdsdataservice.BatchExecuteStatementInput) *BatchExecuteStatementFuture 20 | 21 | BeginTransaction(ctx workflow.Context, input *rdsdataservice.BeginTransactionInput) (*rdsdataservice.BeginTransactionOutput, error) 22 | BeginTransactionAsync(ctx workflow.Context, input *rdsdataservice.BeginTransactionInput) *BeginTransactionFuture 23 | 24 | CommitTransaction(ctx workflow.Context, input *rdsdataservice.CommitTransactionInput) (*rdsdataservice.CommitTransactionOutput, error) 25 | CommitTransactionAsync(ctx workflow.Context, input *rdsdataservice.CommitTransactionInput) *CommitTransactionFuture 26 | 27 | ExecuteSql(ctx workflow.Context, input *rdsdataservice.ExecuteSqlInput) (*rdsdataservice.ExecuteSqlOutput, error) 28 | ExecuteSqlAsync(ctx workflow.Context, input *rdsdataservice.ExecuteSqlInput) *ExecuteSqlFuture 29 | 30 | ExecuteStatement(ctx workflow.Context, input *rdsdataservice.ExecuteStatementInput) (*rdsdataservice.ExecuteStatementOutput, error) 31 | ExecuteStatementAsync(ctx workflow.Context, input *rdsdataservice.ExecuteStatementInput) *ExecuteStatementFuture 32 | 33 | RollbackTransaction(ctx workflow.Context, input *rdsdataservice.RollbackTransactionInput) (*rdsdataservice.RollbackTransactionOutput, error) 34 | RollbackTransactionAsync(ctx workflow.Context, input *rdsdataservice.RollbackTransactionInput) *RollbackTransactionFuture 35 | } 36 | 37 | func NewClient() Client { 38 | return &stub{} 39 | } 40 | -------------------------------------------------------------------------------- /clients/redshiftdataapiservicestub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package redshiftdataapiservicestub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/redshiftdataapiservice" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | CancelStatement(ctx workflow.Context, input *redshiftdataapiservice.CancelStatementInput) (*redshiftdataapiservice.CancelStatementOutput, error) 19 | CancelStatementAsync(ctx workflow.Context, input *redshiftdataapiservice.CancelStatementInput) *CancelStatementFuture 20 | 21 | DescribeStatement(ctx workflow.Context, input *redshiftdataapiservice.DescribeStatementInput) (*redshiftdataapiservice.DescribeStatementOutput, error) 22 | DescribeStatementAsync(ctx workflow.Context, input *redshiftdataapiservice.DescribeStatementInput) *DescribeStatementFuture 23 | 24 | DescribeTable(ctx workflow.Context, input *redshiftdataapiservice.DescribeTableInput) (*redshiftdataapiservice.DescribeTableOutput, error) 25 | DescribeTableAsync(ctx workflow.Context, input *redshiftdataapiservice.DescribeTableInput) *DescribeTableFuture 26 | 27 | ExecuteStatement(ctx workflow.Context, input *redshiftdataapiservice.ExecuteStatementInput) (*redshiftdataapiservice.ExecuteStatementOutput, error) 28 | ExecuteStatementAsync(ctx workflow.Context, input *redshiftdataapiservice.ExecuteStatementInput) *ExecuteStatementFuture 29 | 30 | GetStatementResult(ctx workflow.Context, input *redshiftdataapiservice.GetStatementResultInput) (*redshiftdataapiservice.GetStatementResultOutput, error) 31 | GetStatementResultAsync(ctx workflow.Context, input *redshiftdataapiservice.GetStatementResultInput) *GetStatementResultFuture 32 | 33 | ListDatabases(ctx workflow.Context, input *redshiftdataapiservice.ListDatabasesInput) (*redshiftdataapiservice.ListDatabasesOutput, error) 34 | ListDatabasesAsync(ctx workflow.Context, input *redshiftdataapiservice.ListDatabasesInput) *ListDatabasesFuture 35 | 36 | ListSchemas(ctx workflow.Context, input *redshiftdataapiservice.ListSchemasInput) (*redshiftdataapiservice.ListSchemasOutput, error) 37 | ListSchemasAsync(ctx workflow.Context, input *redshiftdataapiservice.ListSchemasInput) *ListSchemasFuture 38 | 39 | ListStatements(ctx workflow.Context, input *redshiftdataapiservice.ListStatementsInput) (*redshiftdataapiservice.ListStatementsOutput, error) 40 | ListStatementsAsync(ctx workflow.Context, input *redshiftdataapiservice.ListStatementsInput) *ListStatementsFuture 41 | 42 | ListTables(ctx workflow.Context, input *redshiftdataapiservice.ListTablesInput) (*redshiftdataapiservice.ListTablesOutput, error) 43 | ListTablesAsync(ctx workflow.Context, input *redshiftdataapiservice.ListTablesInput) *ListTablesFuture 44 | } 45 | 46 | func NewClient() Client { 47 | return &stub{} 48 | } 49 | -------------------------------------------------------------------------------- /clients/resourcegroupstaggingapistub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package resourcegroupstaggingapistub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/resourcegroupstaggingapi" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | DescribeReportCreation(ctx workflow.Context, input *resourcegroupstaggingapi.DescribeReportCreationInput) (*resourcegroupstaggingapi.DescribeReportCreationOutput, error) 19 | DescribeReportCreationAsync(ctx workflow.Context, input *resourcegroupstaggingapi.DescribeReportCreationInput) *DescribeReportCreationFuture 20 | 21 | GetComplianceSummary(ctx workflow.Context, input *resourcegroupstaggingapi.GetComplianceSummaryInput) (*resourcegroupstaggingapi.GetComplianceSummaryOutput, error) 22 | GetComplianceSummaryAsync(ctx workflow.Context, input *resourcegroupstaggingapi.GetComplianceSummaryInput) *GetComplianceSummaryFuture 23 | 24 | GetResources(ctx workflow.Context, input *resourcegroupstaggingapi.GetResourcesInput) (*resourcegroupstaggingapi.GetResourcesOutput, error) 25 | GetResourcesAsync(ctx workflow.Context, input *resourcegroupstaggingapi.GetResourcesInput) *GetResourcesFuture 26 | 27 | GetTagKeys(ctx workflow.Context, input *resourcegroupstaggingapi.GetTagKeysInput) (*resourcegroupstaggingapi.GetTagKeysOutput, error) 28 | GetTagKeysAsync(ctx workflow.Context, input *resourcegroupstaggingapi.GetTagKeysInput) *GetTagKeysFuture 29 | 30 | GetTagValues(ctx workflow.Context, input *resourcegroupstaggingapi.GetTagValuesInput) (*resourcegroupstaggingapi.GetTagValuesOutput, error) 31 | GetTagValuesAsync(ctx workflow.Context, input *resourcegroupstaggingapi.GetTagValuesInput) *GetTagValuesFuture 32 | 33 | StartReportCreation(ctx workflow.Context, input *resourcegroupstaggingapi.StartReportCreationInput) (*resourcegroupstaggingapi.StartReportCreationOutput, error) 34 | StartReportCreationAsync(ctx workflow.Context, input *resourcegroupstaggingapi.StartReportCreationInput) *StartReportCreationFuture 35 | 36 | TagResources(ctx workflow.Context, input *resourcegroupstaggingapi.TagResourcesInput) (*resourcegroupstaggingapi.TagResourcesOutput, error) 37 | TagResourcesAsync(ctx workflow.Context, input *resourcegroupstaggingapi.TagResourcesInput) *TagResourcesFuture 38 | 39 | UntagResources(ctx workflow.Context, input *resourcegroupstaggingapi.UntagResourcesInput) (*resourcegroupstaggingapi.UntagResourcesOutput, error) 40 | UntagResourcesAsync(ctx workflow.Context, input *resourcegroupstaggingapi.UntagResourcesInput) *UntagResourcesFuture 41 | } 42 | 43 | func NewClient() Client { 44 | return &stub{} 45 | } 46 | -------------------------------------------------------------------------------- /clients/s3outpostsstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package s3outpostsstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/s3outposts" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | CreateEndpoint(ctx workflow.Context, input *s3outposts.CreateEndpointInput) (*s3outposts.CreateEndpointOutput, error) 19 | CreateEndpointAsync(ctx workflow.Context, input *s3outposts.CreateEndpointInput) *CreateEndpointFuture 20 | 21 | DeleteEndpoint(ctx workflow.Context, input *s3outposts.DeleteEndpointInput) (*s3outposts.DeleteEndpointOutput, error) 22 | DeleteEndpointAsync(ctx workflow.Context, input *s3outposts.DeleteEndpointInput) *DeleteEndpointFuture 23 | 24 | ListEndpoints(ctx workflow.Context, input *s3outposts.ListEndpointsInput) (*s3outposts.ListEndpointsOutput, error) 25 | ListEndpointsAsync(ctx workflow.Context, input *s3outposts.ListEndpointsInput) *ListEndpointsFuture 26 | } 27 | 28 | func NewClient() Client { 29 | return &stub{} 30 | } 31 | -------------------------------------------------------------------------------- /clients/sagemakerruntimestub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package sagemakerruntimestub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/sagemakerruntime" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | InvokeEndpoint(ctx workflow.Context, input *sagemakerruntime.InvokeEndpointInput) (*sagemakerruntime.InvokeEndpointOutput, error) 19 | InvokeEndpointAsync(ctx workflow.Context, input *sagemakerruntime.InvokeEndpointInput) *InvokeEndpointFuture 20 | } 21 | 22 | func NewClient() Client { 23 | return &stub{} 24 | } 25 | -------------------------------------------------------------------------------- /clients/sagemakerruntimestub/stub.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package sagemakerruntimestub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/sagemakerruntime" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type stub struct{} 18 | 19 | type InvokeEndpointFuture struct { 20 | // public to support Selector.addFuture 21 | Future workflow.Future 22 | } 23 | 24 | func (r *InvokeEndpointFuture) Get(ctx workflow.Context) (*sagemakerruntime.InvokeEndpointOutput, error) { 25 | var output sagemakerruntime.InvokeEndpointOutput 26 | err := r.Future.Get(ctx, &output) 27 | return &output, err 28 | } 29 | 30 | func (a *stub) InvokeEndpoint(ctx workflow.Context, input *sagemakerruntime.InvokeEndpointInput) (*sagemakerruntime.InvokeEndpointOutput, error) { 31 | var output sagemakerruntime.InvokeEndpointOutput 32 | err := workflow.ExecuteActivity(ctx, "aws.sagemakerruntime.InvokeEndpoint", input).Get(ctx, &output) 33 | return &output, err 34 | } 35 | 36 | func (a *stub) InvokeEndpointAsync(ctx workflow.Context, input *sagemakerruntime.InvokeEndpointInput) *InvokeEndpointFuture { 37 | future := workflow.ExecuteActivity(ctx, "aws.sagemakerruntime.InvokeEndpoint", input) 38 | return &InvokeEndpointFuture{Future: future} 39 | } 40 | -------------------------------------------------------------------------------- /clients/savingsplansstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package savingsplansstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/savingsplans" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | CreateSavingsPlan(ctx workflow.Context, input *savingsplans.CreateSavingsPlanInput) (*savingsplans.CreateSavingsPlanOutput, error) 19 | CreateSavingsPlanAsync(ctx workflow.Context, input *savingsplans.CreateSavingsPlanInput) *CreateSavingsPlanFuture 20 | 21 | DeleteQueuedSavingsPlan(ctx workflow.Context, input *savingsplans.DeleteQueuedSavingsPlanInput) (*savingsplans.DeleteQueuedSavingsPlanOutput, error) 22 | DeleteQueuedSavingsPlanAsync(ctx workflow.Context, input *savingsplans.DeleteQueuedSavingsPlanInput) *DeleteQueuedSavingsPlanFuture 23 | 24 | DescribeSavingsPlanRates(ctx workflow.Context, input *savingsplans.DescribeSavingsPlanRatesInput) (*savingsplans.DescribeSavingsPlanRatesOutput, error) 25 | DescribeSavingsPlanRatesAsync(ctx workflow.Context, input *savingsplans.DescribeSavingsPlanRatesInput) *DescribeSavingsPlanRatesFuture 26 | 27 | DescribeSavingsPlans(ctx workflow.Context, input *savingsplans.DescribeSavingsPlansInput) (*savingsplans.DescribeSavingsPlansOutput, error) 28 | DescribeSavingsPlansAsync(ctx workflow.Context, input *savingsplans.DescribeSavingsPlansInput) *DescribeSavingsPlansFuture 29 | 30 | DescribeSavingsPlansOfferingRates(ctx workflow.Context, input *savingsplans.DescribeSavingsPlansOfferingRatesInput) (*savingsplans.DescribeSavingsPlansOfferingRatesOutput, error) 31 | DescribeSavingsPlansOfferingRatesAsync(ctx workflow.Context, input *savingsplans.DescribeSavingsPlansOfferingRatesInput) *DescribeSavingsPlansOfferingRatesFuture 32 | 33 | DescribeSavingsPlansOfferings(ctx workflow.Context, input *savingsplans.DescribeSavingsPlansOfferingsInput) (*savingsplans.DescribeSavingsPlansOfferingsOutput, error) 34 | DescribeSavingsPlansOfferingsAsync(ctx workflow.Context, input *savingsplans.DescribeSavingsPlansOfferingsInput) *DescribeSavingsPlansOfferingsFuture 35 | 36 | ListTagsForResource(ctx workflow.Context, input *savingsplans.ListTagsForResourceInput) (*savingsplans.ListTagsForResourceOutput, error) 37 | ListTagsForResourceAsync(ctx workflow.Context, input *savingsplans.ListTagsForResourceInput) *ListTagsForResourceFuture 38 | 39 | TagResource(ctx workflow.Context, input *savingsplans.TagResourceInput) (*savingsplans.TagResourceOutput, error) 40 | TagResourceAsync(ctx workflow.Context, input *savingsplans.TagResourceInput) *TagResourceFuture 41 | 42 | UntagResource(ctx workflow.Context, input *savingsplans.UntagResourceInput) (*savingsplans.UntagResourceOutput, error) 43 | UntagResourceAsync(ctx workflow.Context, input *savingsplans.UntagResourceInput) *UntagResourceFuture 44 | } 45 | 46 | func NewClient() Client { 47 | return &stub{} 48 | } 49 | -------------------------------------------------------------------------------- /clients/simpledbstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package simpledbstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/simpledb" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | BatchDeleteAttributes(ctx workflow.Context, input *simpledb.BatchDeleteAttributesInput) (*simpledb.BatchDeleteAttributesOutput, error) 19 | BatchDeleteAttributesAsync(ctx workflow.Context, input *simpledb.BatchDeleteAttributesInput) *BatchDeleteAttributesFuture 20 | 21 | BatchPutAttributes(ctx workflow.Context, input *simpledb.BatchPutAttributesInput) (*simpledb.BatchPutAttributesOutput, error) 22 | BatchPutAttributesAsync(ctx workflow.Context, input *simpledb.BatchPutAttributesInput) *BatchPutAttributesFuture 23 | 24 | CreateDomain(ctx workflow.Context, input *simpledb.CreateDomainInput) (*simpledb.CreateDomainOutput, error) 25 | CreateDomainAsync(ctx workflow.Context, input *simpledb.CreateDomainInput) *CreateDomainFuture 26 | 27 | DeleteAttributes(ctx workflow.Context, input *simpledb.DeleteAttributesInput) (*simpledb.DeleteAttributesOutput, error) 28 | DeleteAttributesAsync(ctx workflow.Context, input *simpledb.DeleteAttributesInput) *DeleteAttributesFuture 29 | 30 | DeleteDomain(ctx workflow.Context, input *simpledb.DeleteDomainInput) (*simpledb.DeleteDomainOutput, error) 31 | DeleteDomainAsync(ctx workflow.Context, input *simpledb.DeleteDomainInput) *DeleteDomainFuture 32 | 33 | DomainMetadata(ctx workflow.Context, input *simpledb.DomainMetadataInput) (*simpledb.DomainMetadataOutput, error) 34 | DomainMetadataAsync(ctx workflow.Context, input *simpledb.DomainMetadataInput) *DomainMetadataFuture 35 | 36 | GetAttributes(ctx workflow.Context, input *simpledb.GetAttributesInput) (*simpledb.GetAttributesOutput, error) 37 | GetAttributesAsync(ctx workflow.Context, input *simpledb.GetAttributesInput) *GetAttributesFuture 38 | 39 | ListDomains(ctx workflow.Context, input *simpledb.ListDomainsInput) (*simpledb.ListDomainsOutput, error) 40 | ListDomainsAsync(ctx workflow.Context, input *simpledb.ListDomainsInput) *ListDomainsFuture 41 | 42 | PutAttributes(ctx workflow.Context, input *simpledb.PutAttributesInput) (*simpledb.PutAttributesOutput, error) 43 | PutAttributesAsync(ctx workflow.Context, input *simpledb.PutAttributesInput) *PutAttributesFuture 44 | 45 | Select(ctx workflow.Context, input *simpledb.SelectInput) (*simpledb.SelectOutput, error) 46 | SelectAsync(ctx workflow.Context, input *simpledb.SelectInput) *SelectFuture 47 | } 48 | 49 | func NewClient() Client { 50 | return &stub{} 51 | } 52 | -------------------------------------------------------------------------------- /clients/ssooidcstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package ssooidcstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/ssooidc" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | CreateToken(ctx workflow.Context, input *ssooidc.CreateTokenInput) (*ssooidc.CreateTokenOutput, error) 19 | CreateTokenAsync(ctx workflow.Context, input *ssooidc.CreateTokenInput) *CreateTokenFuture 20 | 21 | RegisterClient(ctx workflow.Context, input *ssooidc.RegisterClientInput) (*ssooidc.RegisterClientOutput, error) 22 | RegisterClientAsync(ctx workflow.Context, input *ssooidc.RegisterClientInput) *RegisterClientFuture 23 | 24 | StartDeviceAuthorization(ctx workflow.Context, input *ssooidc.StartDeviceAuthorizationInput) (*ssooidc.StartDeviceAuthorizationOutput, error) 25 | StartDeviceAuthorizationAsync(ctx workflow.Context, input *ssooidc.StartDeviceAuthorizationInput) *StartDeviceAuthorizationFuture 26 | } 27 | 28 | func NewClient() Client { 29 | return &stub{} 30 | } 31 | -------------------------------------------------------------------------------- /clients/ssostub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package ssostub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/sso" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | GetRoleCredentials(ctx workflow.Context, input *sso.GetRoleCredentialsInput) (*sso.GetRoleCredentialsOutput, error) 19 | GetRoleCredentialsAsync(ctx workflow.Context, input *sso.GetRoleCredentialsInput) *GetRoleCredentialsFuture 20 | 21 | ListAccountRoles(ctx workflow.Context, input *sso.ListAccountRolesInput) (*sso.ListAccountRolesOutput, error) 22 | ListAccountRolesAsync(ctx workflow.Context, input *sso.ListAccountRolesInput) *ListAccountRolesFuture 23 | 24 | ListAccounts(ctx workflow.Context, input *sso.ListAccountsInput) (*sso.ListAccountsOutput, error) 25 | ListAccountsAsync(ctx workflow.Context, input *sso.ListAccountsInput) *ListAccountsFuture 26 | 27 | Logout(ctx workflow.Context, input *sso.LogoutInput) (*sso.LogoutOutput, error) 28 | LogoutAsync(ctx workflow.Context, input *sso.LogoutInput) *LogoutFuture 29 | } 30 | 31 | func NewClient() Client { 32 | return &stub{} 33 | } 34 | -------------------------------------------------------------------------------- /clients/stsstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package stsstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/sts" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | AssumeRole(ctx workflow.Context, input *sts.AssumeRoleInput) (*sts.AssumeRoleOutput, error) 19 | AssumeRoleAsync(ctx workflow.Context, input *sts.AssumeRoleInput) *AssumeRoleFuture 20 | 21 | AssumeRoleWithSAML(ctx workflow.Context, input *sts.AssumeRoleWithSAMLInput) (*sts.AssumeRoleWithSAMLOutput, error) 22 | AssumeRoleWithSAMLAsync(ctx workflow.Context, input *sts.AssumeRoleWithSAMLInput) *AssumeRoleWithSAMLFuture 23 | 24 | AssumeRoleWithWebIdentity(ctx workflow.Context, input *sts.AssumeRoleWithWebIdentityInput) (*sts.AssumeRoleWithWebIdentityOutput, error) 25 | AssumeRoleWithWebIdentityAsync(ctx workflow.Context, input *sts.AssumeRoleWithWebIdentityInput) *AssumeRoleWithWebIdentityFuture 26 | 27 | DecodeAuthorizationMessage(ctx workflow.Context, input *sts.DecodeAuthorizationMessageInput) (*sts.DecodeAuthorizationMessageOutput, error) 28 | DecodeAuthorizationMessageAsync(ctx workflow.Context, input *sts.DecodeAuthorizationMessageInput) *DecodeAuthorizationMessageFuture 29 | 30 | GetAccessKeyInfo(ctx workflow.Context, input *sts.GetAccessKeyInfoInput) (*sts.GetAccessKeyInfoOutput, error) 31 | GetAccessKeyInfoAsync(ctx workflow.Context, input *sts.GetAccessKeyInfoInput) *GetAccessKeyInfoFuture 32 | 33 | GetCallerIdentity(ctx workflow.Context, input *sts.GetCallerIdentityInput) (*sts.GetCallerIdentityOutput, error) 34 | GetCallerIdentityAsync(ctx workflow.Context, input *sts.GetCallerIdentityInput) *GetCallerIdentityFuture 35 | 36 | GetFederationToken(ctx workflow.Context, input *sts.GetFederationTokenInput) (*sts.GetFederationTokenOutput, error) 37 | GetFederationTokenAsync(ctx workflow.Context, input *sts.GetFederationTokenInput) *GetFederationTokenFuture 38 | 39 | GetSessionToken(ctx workflow.Context, input *sts.GetSessionTokenInput) (*sts.GetSessionTokenOutput, error) 40 | GetSessionTokenAsync(ctx workflow.Context, input *sts.GetSessionTokenInput) *GetSessionTokenFuture 41 | } 42 | 43 | func NewClient() Client { 44 | return &stub{} 45 | } 46 | -------------------------------------------------------------------------------- /clients/textractstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package textractstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/textract" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | AnalyzeDocument(ctx workflow.Context, input *textract.AnalyzeDocumentInput) (*textract.AnalyzeDocumentOutput, error) 19 | AnalyzeDocumentAsync(ctx workflow.Context, input *textract.AnalyzeDocumentInput) *AnalyzeDocumentFuture 20 | 21 | DetectDocumentText(ctx workflow.Context, input *textract.DetectDocumentTextInput) (*textract.DetectDocumentTextOutput, error) 22 | DetectDocumentTextAsync(ctx workflow.Context, input *textract.DetectDocumentTextInput) *DetectDocumentTextFuture 23 | 24 | GetDocumentAnalysis(ctx workflow.Context, input *textract.GetDocumentAnalysisInput) (*textract.GetDocumentAnalysisOutput, error) 25 | GetDocumentAnalysisAsync(ctx workflow.Context, input *textract.GetDocumentAnalysisInput) *GetDocumentAnalysisFuture 26 | 27 | GetDocumentTextDetection(ctx workflow.Context, input *textract.GetDocumentTextDetectionInput) (*textract.GetDocumentTextDetectionOutput, error) 28 | GetDocumentTextDetectionAsync(ctx workflow.Context, input *textract.GetDocumentTextDetectionInput) *GetDocumentTextDetectionFuture 29 | 30 | StartDocumentAnalysis(ctx workflow.Context, input *textract.StartDocumentAnalysisInput) (*textract.StartDocumentAnalysisOutput, error) 31 | StartDocumentAnalysisAsync(ctx workflow.Context, input *textract.StartDocumentAnalysisInput) *StartDocumentAnalysisFuture 32 | 33 | StartDocumentTextDetection(ctx workflow.Context, input *textract.StartDocumentTextDetectionInput) (*textract.StartDocumentTextDetectionOutput, error) 34 | StartDocumentTextDetectionAsync(ctx workflow.Context, input *textract.StartDocumentTextDetectionInput) *StartDocumentTextDetectionFuture 35 | } 36 | 37 | func NewClient() Client { 38 | return &stub{} 39 | } 40 | -------------------------------------------------------------------------------- /clients/timestreamquerystub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package timestreamquerystub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/timestreamquery" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | CancelQuery(ctx workflow.Context, input *timestreamquery.CancelQueryInput) (*timestreamquery.CancelQueryOutput, error) 19 | CancelQueryAsync(ctx workflow.Context, input *timestreamquery.CancelQueryInput) *CancelQueryFuture 20 | 21 | DescribeEndpoints(ctx workflow.Context, input *timestreamquery.DescribeEndpointsInput) (*timestreamquery.DescribeEndpointsOutput, error) 22 | DescribeEndpointsAsync(ctx workflow.Context, input *timestreamquery.DescribeEndpointsInput) *DescribeEndpointsFuture 23 | 24 | Query(ctx workflow.Context, input *timestreamquery.QueryInput) (*timestreamquery.QueryOutput, error) 25 | QueryAsync(ctx workflow.Context, input *timestreamquery.QueryInput) *QueryFuture 26 | } 27 | 28 | func NewClient() Client { 29 | return &stub{} 30 | } 31 | -------------------------------------------------------------------------------- /clients/transcribestreamingservicestub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package transcribestreamingservicestub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/transcribestreamingservice" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | StartStreamTranscription(ctx workflow.Context, input *transcribestreamingservice.StartStreamTranscriptionInput) (*transcribestreamingservice.StartStreamTranscriptionOutput, error) 19 | StartStreamTranscriptionAsync(ctx workflow.Context, input *transcribestreamingservice.StartStreamTranscriptionInput) *StartStreamTranscriptionFuture 20 | } 21 | 22 | func NewClient() Client { 23 | return &stub{} 24 | } 25 | -------------------------------------------------------------------------------- /clients/transcribestreamingservicestub/stub.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package transcribestreamingservicestub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/transcribestreamingservice" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type stub struct{} 18 | 19 | type StartStreamTranscriptionFuture struct { 20 | // public to support Selector.addFuture 21 | Future workflow.Future 22 | } 23 | 24 | func (r *StartStreamTranscriptionFuture) Get(ctx workflow.Context) (*transcribestreamingservice.StartStreamTranscriptionOutput, error) { 25 | var output transcribestreamingservice.StartStreamTranscriptionOutput 26 | err := r.Future.Get(ctx, &output) 27 | return &output, err 28 | } 29 | 30 | func (a *stub) StartStreamTranscription(ctx workflow.Context, input *transcribestreamingservice.StartStreamTranscriptionInput) (*transcribestreamingservice.StartStreamTranscriptionOutput, error) { 31 | var output transcribestreamingservice.StartStreamTranscriptionOutput 32 | err := workflow.ExecuteActivity(ctx, "aws.transcribestreamingservice.StartStreamTranscription", input).Get(ctx, &output) 33 | return &output, err 34 | } 35 | 36 | func (a *stub) StartStreamTranscriptionAsync(ctx workflow.Context, input *transcribestreamingservice.StartStreamTranscriptionInput) *StartStreamTranscriptionFuture { 37 | future := workflow.ExecuteActivity(ctx, "aws.transcribestreamingservice.StartStreamTranscription", input) 38 | return &StartStreamTranscriptionFuture{Future: future} 39 | } 40 | -------------------------------------------------------------------------------- /clients/translatestub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package translatestub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/translate" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | DeleteTerminology(ctx workflow.Context, input *translate.DeleteTerminologyInput) (*translate.DeleteTerminologyOutput, error) 19 | DeleteTerminologyAsync(ctx workflow.Context, input *translate.DeleteTerminologyInput) *DeleteTerminologyFuture 20 | 21 | DescribeTextTranslationJob(ctx workflow.Context, input *translate.DescribeTextTranslationJobInput) (*translate.DescribeTextTranslationJobOutput, error) 22 | DescribeTextTranslationJobAsync(ctx workflow.Context, input *translate.DescribeTextTranslationJobInput) *DescribeTextTranslationJobFuture 23 | 24 | GetTerminology(ctx workflow.Context, input *translate.GetTerminologyInput) (*translate.GetTerminologyOutput, error) 25 | GetTerminologyAsync(ctx workflow.Context, input *translate.GetTerminologyInput) *GetTerminologyFuture 26 | 27 | ImportTerminology(ctx workflow.Context, input *translate.ImportTerminologyInput) (*translate.ImportTerminologyOutput, error) 28 | ImportTerminologyAsync(ctx workflow.Context, input *translate.ImportTerminologyInput) *ImportTerminologyFuture 29 | 30 | ListTerminologies(ctx workflow.Context, input *translate.ListTerminologiesInput) (*translate.ListTerminologiesOutput, error) 31 | ListTerminologiesAsync(ctx workflow.Context, input *translate.ListTerminologiesInput) *ListTerminologiesFuture 32 | 33 | ListTextTranslationJobs(ctx workflow.Context, input *translate.ListTextTranslationJobsInput) (*translate.ListTextTranslationJobsOutput, error) 34 | ListTextTranslationJobsAsync(ctx workflow.Context, input *translate.ListTextTranslationJobsInput) *ListTextTranslationJobsFuture 35 | 36 | StartTextTranslationJob(ctx workflow.Context, input *translate.StartTextTranslationJobInput) (*translate.StartTextTranslationJobOutput, error) 37 | StartTextTranslationJobAsync(ctx workflow.Context, input *translate.StartTextTranslationJobInput) *StartTextTranslationJobFuture 38 | 39 | StopTextTranslationJob(ctx workflow.Context, input *translate.StopTextTranslationJobInput) (*translate.StopTextTranslationJobOutput, error) 40 | StopTextTranslationJobAsync(ctx workflow.Context, input *translate.StopTextTranslationJobInput) *StopTextTranslationJobFuture 41 | 42 | Text(ctx workflow.Context, input *translate.TextInput) (*translate.TextOutput, error) 43 | TextAsync(ctx workflow.Context, input *translate.TextInput) *TextFuture 44 | } 45 | 46 | func NewClient() Client { 47 | return &stub{} 48 | } 49 | -------------------------------------------------------------------------------- /clients/voidfuture.go: -------------------------------------------------------------------------------- 1 | package clients 2 | 3 | import ( 4 | "go.temporal.io/sdk/workflow" 5 | ) 6 | 7 | type VoidFuture struct { 8 | Future workflow.Future 9 | } 10 | 11 | func (r *VoidFuture) Get(ctx workflow.Context) error { 12 | return r.Future.Get(ctx, nil) 13 | } 14 | 15 | func NewVoidFuture(future workflow.Future) *VoidFuture { 16 | return &VoidFuture{Future: future} 17 | } 18 | -------------------------------------------------------------------------------- /clients/workmailmessageflowstub/interface.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package workmailmessageflowstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/workmailmessageflow" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type Client interface { 18 | GetRawMessageContent(ctx workflow.Context, input *workmailmessageflow.GetRawMessageContentInput) (*workmailmessageflow.GetRawMessageContentOutput, error) 19 | GetRawMessageContentAsync(ctx workflow.Context, input *workmailmessageflow.GetRawMessageContentInput) *GetRawMessageContentFuture 20 | } 21 | 22 | func NewClient() Client { 23 | return &stub{} 24 | } 25 | -------------------------------------------------------------------------------- /clients/workmailmessageflowstub/stub.go: -------------------------------------------------------------------------------- 1 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 2 | // from github.com/aws/aws-sdk-go version 1.35.7 3 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 | 5 | package workmailmessageflowstub 6 | 7 | import ( 8 | "github.com/aws/aws-sdk-go/service/workmailmessageflow" 9 | "go.temporal.io/sdk/workflow" 10 | 11 | "go.temporal.io/aws-sdk/clients" 12 | ) 13 | 14 | // ensure that imports are valid even if not used by the generated code 15 | var _ clients.VoidFuture 16 | 17 | type stub struct{} 18 | 19 | type GetRawMessageContentFuture struct { 20 | // public to support Selector.addFuture 21 | Future workflow.Future 22 | } 23 | 24 | func (r *GetRawMessageContentFuture) Get(ctx workflow.Context) (*workmailmessageflow.GetRawMessageContentOutput, error) { 25 | var output workmailmessageflow.GetRawMessageContentOutput 26 | err := r.Future.Get(ctx, &output) 27 | return &output, err 28 | } 29 | 30 | func (a *stub) GetRawMessageContent(ctx workflow.Context, input *workmailmessageflow.GetRawMessageContentInput) (*workmailmessageflow.GetRawMessageContentOutput, error) { 31 | var output workmailmessageflow.GetRawMessageContentOutput 32 | err := workflow.ExecuteActivity(ctx, "aws.workmailmessageflow.GetRawMessageContent", input).Get(ctx, &output) 33 | return &output, err 34 | } 35 | 36 | func (a *stub) GetRawMessageContentAsync(ctx workflow.Context, input *workmailmessageflow.GetRawMessageContentInput) *GetRawMessageContentFuture { 37 | future := workflow.ExecuteActivity(ctx, "aws.workmailmessageflow.GetRawMessageContent", input) 38 | return &GetRawMessageContentFuture{Future: future} 39 | } 40 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module go.temporal.io/aws-sdk 2 | 3 | go 1.14 4 | 5 | require ( 6 | github.com/aws/aws-sdk-go v1.35.7 7 | github.com/urfave/cli/v2 v2.2.0 8 | go.temporal.io/sdk v0.29.0 9 | golang.org/x/tools v0.0.0-20201010145503-6e5c6d77ddcc // indirect 10 | ) 11 | -------------------------------------------------------------------------------- /internal/activityutil.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | import ( 4 | "context" 5 | "github.com/aws/aws-sdk-go/aws/awserr" 6 | "github.com/aws/aws-sdk-go/aws/request" 7 | "go.temporal.io/sdk/activity" 8 | "time" 9 | ) 10 | 11 | // SetClientToken assigns idempotency token to the same value across retries 12 | func SetClientToken(ctx context.Context, clientToken **string) { 13 | if clientToken == nil { 14 | info := activity.GetInfo(ctx) 15 | token := info.WorkflowExecution.RunID + "-" + info.ActivityID 16 | *clientToken = &token 17 | } 18 | } 19 | 20 | // WaitUntilActivity calls function until it returns an error which is not request.WaiterResourceNotReadyErrorCode. 21 | func WaitUntilActivity(ctx context.Context, f func(context.Context, ...request.WaiterOption) error) error { 22 | // Do not rely on the waiter for retries to support heartbeating 23 | for { 24 | err := f(ctx, request.WithWaiterMaxAttempts(1)) 25 | aerr, ok := err.(awserr.Error) 26 | if !ok || request.WaiterResourceNotReadyErrorCode != aerr.Code() { 27 | return err 28 | } 29 | activity.RecordHeartbeat(ctx) 30 | //TODO(maxim): Configurable poll interval 31 | time.Sleep(10 * time.Second) 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /internal/errors.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | import ( 4 | "errors" 5 | "fmt" 6 | "strings" 7 | 8 | "github.com/aws/aws-sdk-go/aws/awserr" 9 | "go.temporal.io/sdk/temporal" 10 | ) 11 | 12 | // errorType identifies a custom Cadence error as an AWS SDK error. 13 | const errorType = "AWS_SDK_ERROR" 14 | 15 | // encodedError is a serialized version of the AWS SDK error. 16 | type encodedError struct { 17 | Code string 18 | Message string 19 | OrigErr string 20 | } 21 | 22 | // Error implements the error interface. 23 | func (e encodedError) Error() string { 24 | return fmt.Sprintf("%s: %s", e.Code, e.Message) 25 | } 26 | 27 | // EncodeError encodes an error returned by the AWS SDK as a Cadence error. 28 | func EncodeError(err error) error { 29 | if err == nil { 30 | return nil 31 | } 32 | 33 | if aerr, ok := err.(awserr.Error); ok { 34 | newErr := encodedError{ 35 | Code: aerr.Code(), 36 | Message: aerr.Message(), 37 | } 38 | 39 | // TODO: try to encode the original error as well? 40 | if aerr.OrigErr() != nil { 41 | newErr.OrigErr = aerr.OrigErr().Error() 42 | } 43 | 44 | return temporal.NewApplicationErrorWithCause(newErr.Error(), "AWS_SDK_" + aerr.Code(), aerr.OrigErr(), newErr) 45 | } 46 | 47 | return err 48 | } 49 | 50 | // decodedError is a serialized version of the AWS SDK error. 51 | type decodedError struct { 52 | Code string 53 | Message string 54 | OrigErr error 55 | } 56 | 57 | // decodedError implements the error interface. 58 | func (e decodedError) Error() string { 59 | return fmt.Sprintf("%s: %s", e.Code, e.Message) 60 | } 61 | 62 | // DecodeError decodes an error returned by a Cadence activity. 63 | // If the error is an AWS SDK error, it gets converted to an AWS SDK compatible error interface. 64 | // Otherwise the original error is returned. 65 | func DecodeError(err error) error { 66 | if err == nil { 67 | return nil 68 | } 69 | 70 | var applicationError *temporal.ApplicationError 71 | 72 | if errors.As(err, &applicationError) && strings.HasPrefix(applicationError.Type(), "AWS_SDK_") { 73 | var aerr decodedError 74 | 75 | _ = applicationError.Details(&aerr) 76 | 77 | return awserr.New(aerr.Code, aerr.Message, aerr.OrigErr) 78 | } 79 | 80 | return err 81 | } 82 | -------------------------------------------------------------------------------- /samples/ec2demo/starter/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "context" 5 | "go.temporal.io/aws-sdk/samples/ec2demo" 6 | "go.temporal.io/sdk/client" 7 | "log" 8 | ) 9 | 10 | const taskQueue = "ec2demo" 11 | 12 | func main() { 13 | c, err := client.NewClient(client.Options{}) 14 | if err != nil { 15 | log.Fatalln("Unable to create client", err) 16 | } 17 | defer c.Close() 18 | 19 | options := client.StartWorkflowOptions{ 20 | TaskQueue: taskQueue, 21 | } 22 | wRun, err := c.ExecuteWorkflow(context.Background(), options, ec2demo.KeepInstance) 23 | if err != nil { 24 | log.Fatalln("Failure starting workflow", err) 25 | } 26 | log.Printf("Started KeepInstanceWorkflow. WorkflowID=%v", wRun.GetID()) 27 | } 28 | -------------------------------------------------------------------------------- /samples/ec2demo/worker/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "go.temporal.io/aws-sdk/samples/ec2demo" 5 | "go.temporal.io/sdk/client" 6 | "go.temporal.io/sdk/worker" 7 | "log" 8 | ) 9 | 10 | const taskQueue = "ec2demo" 11 | 12 | func main() { 13 | c, err := client.NewClient(client.Options{}) 14 | if err != nil { 15 | log.Fatalln("Unable to create client", err) 16 | } 17 | defer c.Close() 18 | 19 | w := worker.New(c, taskQueue, worker.Options{}) 20 | 21 | w.RegisterWorkflow(ec2demo.KeepInstance) 22 | 23 | err = w.Run(worker.InterruptCh()) 24 | if err != nil { 25 | log.Fatalln("Unable to start worker", err) 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /samples/ec2demo/workflow.go: -------------------------------------------------------------------------------- 1 | package ec2demo 2 | 3 | import ( 4 | "github.com/aws/aws-sdk-go/aws" 5 | "github.com/aws/aws-sdk-go/service/ec2" 6 | "go.temporal.io/aws-sdk/clients/ec2stub" 7 | "go.temporal.io/sdk/temporal" 8 | "go.temporal.io/sdk/workflow" 9 | "time" 10 | ) 11 | 12 | func KeepInstance(ctx workflow.Context) error { 13 | ctx1 := workflow.WithActivityOptions(ctx, workflow.ActivityOptions{ 14 | TaskQueue: "aws-sdk", 15 | StartToCloseTimeout: 10 * time.Second, 16 | }) 17 | ctx2 := workflow.WithActivityOptions(ctx, workflow.ActivityOptions{ 18 | TaskQueue: "aws-sdk", 19 | StartToCloseTimeout: 24 * 364 * time.Hour, 20 | HeartbeatTimeout: time.Minute, 21 | RetryPolicy: &temporal.RetryPolicy{ 22 | NonRetryableErrorTypes: []string{"foo"}, 23 | }, 24 | }) 25 | logger := workflow.GetLogger(ctx) 26 | ec2Client := ec2stub.NewClient() 27 | for i := 0; i < 1000; i++ { 28 | reservation, err := ec2Client.RunInstances(ctx1, &ec2.RunInstancesInput{ 29 | ImageId: aws.String("ami-0947d2ba12ee1ff75"), 30 | InstanceType: aws.String("t2.nano"), 31 | MinCount: aws.Int64(1), 32 | MaxCount: aws.Int64(1), 33 | }) 34 | if err != nil { 35 | return err 36 | } 37 | instanceId := reservation.Instances[0].InstanceId 38 | logger.Info("Starting EC2 instance", "instanceId", *instanceId) 39 | 40 | err = ec2Client.WaitUntilInstanceTerminated(ctx2, &ec2.DescribeInstancesInput{ 41 | InstanceIds: []*string{instanceId}, 42 | }) 43 | if err != nil { 44 | return err 45 | } 46 | logger.Info("EC2 instance terminated. Relaunching...", "instanceId", *instanceId) 47 | } 48 | // Start new run atomically to keep history size bounded 49 | return workflow.NewContinueAsNewError(ctx, KeepInstance) 50 | } 51 | -------------------------------------------------------------------------------- /samples/s3list/worker/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "context" 5 | "fmt" 6 | "github.com/aws/aws-sdk-go/aws" 7 | s32 "github.com/aws/aws-sdk-go/service/s3" 8 | "go.temporal.io/aws-sdk/samples/s3list" 9 | "go.temporal.io/sdk/client" 10 | "go.temporal.io/sdk/worker" 11 | "log" 12 | ) 13 | 14 | const taskQueue = "s3list" 15 | 16 | func main() { 17 | c, err := client.NewClient(client.Options{}) 18 | if err != nil { 19 | log.Fatalln("Unable to create client", err) 20 | } 21 | defer c.Close() 22 | 23 | w := worker.New(c, taskQueue, worker.Options{}) 24 | 25 | w.RegisterWorkflow(s3list.Workflow) 26 | 27 | err = w.Start() 28 | if err != nil { 29 | log.Fatalln("Unable to start worker", err) 30 | } 31 | defer w.Stop() 32 | 33 | options := client.StartWorkflowOptions{ 34 | TaskQueue: taskQueue, 35 | } 36 | wRun, err := c.ExecuteWorkflow(context.Background(), options, s3list.Workflow) 37 | if err != nil { 38 | log.Fatalln("Failure starting workflow", err) 39 | } 40 | var result s32.ListBucketsOutput 41 | wRun.Get(context.Background(), &result) 42 | for _, b := range result.Buckets { 43 | fmt.Printf("* %s created on %s\n", 44 | aws.StringValue(b.Name), aws.TimeValue(b.CreationDate)) 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /samples/s3list/workflow.go: -------------------------------------------------------------------------------- 1 | package s3list 2 | 3 | import ( 4 | s32 "github.com/aws/aws-sdk-go/service/s3" 5 | "go.temporal.io/aws-sdk/clients/s3stub" 6 | "go.temporal.io/sdk/workflow" 7 | "time" 8 | ) 9 | 10 | func Workflow(ctx workflow.Context) (*s32.ListBucketsOutput, error) { 11 | ctx = workflow.WithActivityOptions(ctx, workflow.ActivityOptions{ 12 | TaskQueue: "aws-sdk", 13 | StartToCloseTimeout: 10 * time.Second, 14 | }) 15 | s3 := s3stub.NewClient() 16 | return s3.ListBuckets(ctx, &s32.ListBucketsInput{}) 17 | } 18 | -------------------------------------------------------------------------------- /templates/activities_registration.tmpl: -------------------------------------------------------------------------------- 1 | {{- SetFileName "activities/activities.go" -}} 2 | {{- $services := .Services -}} 3 | // Generated by github.com/temporalio/temporal-aws-sdk-generator 4 | // from github.com/aws/aws-sdk-go version {{ .Version }} 5 | // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 6 | 7 | package activities 8 | 9 | import ( 10 | "context" 11 | "github.com/aws/aws-sdk-go/aws" 12 | "github.com/aws/aws-sdk-go/aws/session" 13 | {{- range $services }} 14 | {{- $name := .Name }} 15 | {{- $lowerName := .Name |ToLower }} 16 | "go.temporal.io/aws-sdk/activities/{{ $lowerName }}" 17 | {{- end }} 18 | "go.temporal.io/sdk/activity" 19 | "go.temporal.io/sdk/worker" 20 | ) 21 | 22 | // SessionFactory returns an aws.Session based on the activity context. 23 | type SessionFactory interface { 24 | Session(ctx context.Context) (*session.Session, error) 25 | } 26 | 27 | // RegisterAwsActivities registers AWS activities with a single session. 28 | // Use this registration method if your worker will only use a single set of credentials for authentication. 29 | func RegisterAwsActivities(worker worker.Worker, sess *session.Session, config ...*aws.Config) { 30 | {{- range $services }} 31 | {{- $name := .Name }} 32 | {{- $lowerName := .Name |ToLower }} 33 | worker.RegisterActivityWithOptions({{ $lowerName }}.NewActivities(sess, config...), activity.RegisterOptions{Name: "aws.{{.ID}}."}) 34 | {{- end }} 35 | } 36 | 37 | // RegisterAwsActivitiesWithSessionFactory registers AWS activities with a session factory that creates a session for every activity execution. 38 | // Use this registration method if your activities will receive credentials in the context for each activity execution. 39 | func RegisterAwsActivitiesWithSessionFactory(worker worker.Worker, sessionFactory SessionFactory) { 40 | {{- range $services }} 41 | {{- $name := .Name }} 42 | {{- $lowerName := .Name |ToLower }} 43 | worker.RegisterActivityWithOptions({{ $lowerName }}.NewActivitiesWithSessionFactory(sessionFactory), activity.RegisterOptions{Name: "aws.{{.ID}}."}) 44 | {{- end }} 45 | } 46 | --------------------------------------------------------------------------------