From 5edf6477154bc01d2260acfddb9a0c0a17db9867 Mon Sep 17 00:00:00 2001 From: exoego Date: Fri, 17 Jul 2020 08:46:01 +0900 Subject: [PATCH 1/2] Update to aws-sdk v2.714.2 --- .../main/scala/facade/amazonaws/package.scala | 35 +- .../scala/net/exoego/AllServicesTest.scala | 477 +- build.sbt | 148 +- .../AWSConfigWithServicesDefault.scala | 6 + .../amazonaws/services/CodeArtifact.scala | 2292 ++++++++ .../facade/amazonaws/services/Honeycode.scala | 294 + .../amazonaws/services/IoTSiteWise.scala | 4279 ++++++++++++++ .../scala/facade/amazonaws/services/IVS.scala | 980 ++++ .../facade/amazonaws/services/Macie2.scala | 5024 +++++++++++++++++ .../amazonaws/services/Synthetics.scala | 1085 ++++ 10 files changed, 14319 insertions(+), 301 deletions(-) create mode 100644 services/codeartifact/src/main/scala/facade/amazonaws/services/CodeArtifact.scala create mode 100644 services/honeycode/src/main/scala/facade/amazonaws/services/Honeycode.scala create mode 100644 services/iotsitewise/src/main/scala/facade/amazonaws/services/IoTSiteWise.scala create mode 100644 services/ivs/src/main/scala/facade/amazonaws/services/IVS.scala create mode 100644 services/macie2/src/main/scala/facade/amazonaws/services/Macie2.scala create mode 100644 services/synthetics/src/main/scala/facade/amazonaws/services/Synthetics.scala diff --git a/all/src/main/scala/facade/amazonaws/package.scala b/all/src/main/scala/facade/amazonaws/package.scala index ad092923c..86391da5d 100644 --- a/all/src/main/scala/facade/amazonaws/package.scala +++ b/all/src/main/scala/facade/amazonaws/package.scala @@ -9,11 +9,6 @@ package object amazonaws { } } - type MigrationHub = services.migrationhub.MigrationHub - def MigrationHub(): services.migrationhub.MigrationHub = new services.migrationhub.MigrationHub() - def MigrationHub(config: AWSConfig): services.migrationhub.MigrationHub = - new services.migrationhub.MigrationHub(config) - type AccessAnalyzer = services.accessanalyzer.AccessAnalyzer def AccessAnalyzer(): services.accessanalyzer.AccessAnalyzer = new services.accessanalyzer.AccessAnalyzer() def AccessAnalyzer(config: AWSConfig): services.accessanalyzer.AccessAnalyzer = @@ -94,6 +89,11 @@ package object amazonaws { def AutoScalingPlans(config: AWSConfig): services.autoscalingplans.AutoScalingPlans = new services.autoscalingplans.AutoScalingPlans(config) + type MigrationHub = services.migrationhub.MigrationHub + def MigrationHub(): services.migrationhub.MigrationHub = new services.migrationhub.MigrationHub() + def MigrationHub(config: AWSConfig): services.migrationhub.MigrationHub = + new services.migrationhub.MigrationHub(config) + type Backup = services.backup.Backup def Backup(): services.backup.Backup = new services.backup.Backup() def Backup(config: AWSConfig): services.backup.Backup = new services.backup.Backup(config) @@ -156,6 +156,11 @@ package object amazonaws { def CloudTrail(): services.cloudtrail.CloudTrail = new services.cloudtrail.CloudTrail() def CloudTrail(config: AWSConfig): services.cloudtrail.CloudTrail = new services.cloudtrail.CloudTrail(config) + type CodeArtifact = services.codeartifact.CodeArtifact + def CodeArtifact(): services.codeartifact.CodeArtifact = new services.codeartifact.CodeArtifact() + def CodeArtifact(config: AWSConfig): services.codeartifact.CodeArtifact = + new services.codeartifact.CodeArtifact(config) + type CodeBuild = services.codebuild.CodeBuild def CodeBuild(): services.codebuild.CodeBuild = new services.codebuild.CodeBuild() def CodeBuild(config: AWSConfig): services.codebuild.CodeBuild = new services.codebuild.CodeBuild(config) @@ -461,6 +466,10 @@ package object amazonaws { def Health(): services.health.Health = new services.health.Health() def Health(config: AWSConfig): services.health.Health = new services.health.Health(config) + type Honeycode = services.honeycode.Honeycode + def Honeycode(): services.honeycode.Honeycode = new services.honeycode.Honeycode() + def Honeycode(config: AWSConfig): services.honeycode.Honeycode = new services.honeycode.Honeycode(config) + type IAM = services.iam.IAM def IAM(): services.iam.IAM = new services.iam.IAM() def IAM(config: AWSConfig): services.iam.IAM = new services.iam.IAM(config) @@ -525,11 +534,19 @@ package object amazonaws { def IoTSecureTunneling(config: AWSConfig): services.iotsecuretunneling.IoTSecureTunneling = new services.iotsecuretunneling.IoTSecureTunneling(config) + type IoTSiteWise = services.iotsitewise.IoTSiteWise + def IoTSiteWise(): services.iotsitewise.IoTSiteWise = new services.iotsitewise.IoTSiteWise() + def IoTSiteWise(config: AWSConfig): services.iotsitewise.IoTSiteWise = new services.iotsitewise.IoTSiteWise(config) + type IoTThingsGraph = services.iotthingsgraph.IoTThingsGraph def IoTThingsGraph(): services.iotthingsgraph.IoTThingsGraph = new services.iotthingsgraph.IoTThingsGraph() def IoTThingsGraph(config: AWSConfig): services.iotthingsgraph.IoTThingsGraph = new services.iotthingsgraph.IoTThingsGraph(config) + type IVS = services.ivs.IVS + def IVS(): services.ivs.IVS = new services.ivs.IVS() + def IVS(config: AWSConfig): services.ivs.IVS = new services.ivs.IVS(config) + type Kafka = services.kafka.Kafka def Kafka(): services.kafka.Kafka = new services.kafka.Kafka() def Kafka(config: AWSConfig): services.kafka.Kafka = new services.kafka.Kafka(config) @@ -619,6 +636,10 @@ package object amazonaws { def Macie(): services.macie.Macie = new services.macie.Macie() def Macie(config: AWSConfig): services.macie.Macie = new services.macie.Macie(config) + type Macie2 = services.macie2.Macie2 + def Macie2(): services.macie2.Macie2 = new services.macie2.Macie2() + def Macie2(config: AWSConfig): services.macie2.Macie2 = new services.macie2.Macie2(config) + type ManagedBlockchain = services.managedblockchain.ManagedBlockchain def ManagedBlockchain(): services.managedblockchain.ManagedBlockchain = new services.managedblockchain.ManagedBlockchain() @@ -981,6 +1002,10 @@ package object amazonaws { def SWF(): services.swf.SWF = new services.swf.SWF() def SWF(config: AWSConfig): services.swf.SWF = new services.swf.SWF(config) + type Synthetics = services.synthetics.Synthetics + def Synthetics(): services.synthetics.Synthetics = new services.synthetics.Synthetics() + def Synthetics(config: AWSConfig): services.synthetics.Synthetics = new services.synthetics.Synthetics(config) + type Textract = services.textract.Textract def Textract(): services.textract.Textract = new services.textract.Textract() def Textract(config: AWSConfig): services.textract.Textract = new services.textract.Textract(config) diff --git a/all/src/test/scala/net/exoego/AllServicesTest.scala b/all/src/test/scala/net/exoego/AllServicesTest.scala index 365c7958a..1bb4b3e82 100644 --- a/all/src/test/scala/net/exoego/AllServicesTest.scala +++ b/all/src/test/scala/net/exoego/AllServicesTest.scala @@ -4,891 +4,912 @@ import facade.amazonaws.{AWSConfig, services} import org.scalatest.funsuite.AnyFunSuite class AllServicesTest extends AnyFunSuite { + val config = AWSConfig( + endpoint = "http://localhost" + ) + test("ACM") { - val instance = new services.acm.ACM + val instance = new services.acm.ACM(config) } test("ACMPCA") { - val instance = new services.acmpca.ACMPCA + val instance = new services.acmpca.ACMPCA(config) } test("APIGateway") { - val instance = new services.apigateway.APIGateway + val instance = new services.apigateway.APIGateway(config) } test("AccessAnalyzer") { - val instance = new services.accessanalyzer.AccessAnalyzer + val instance = new services.accessanalyzer.AccessAnalyzer(config) } test("AlexaForBusiness") { - val instance = new services.alexaforbusiness.AlexaForBusiness + val instance = new services.alexaforbusiness.AlexaForBusiness(config) } test("Amplify") { - val instance = new services.amplify.Amplify + val instance = new services.amplify.Amplify(config) } test("ApiGatewayManagementApi") { - val instance = new services.apigatewaymanagementapi.ApiGatewayManagementApi + val instance = new services.apigatewaymanagementapi.ApiGatewayManagementApi(config) } test("ApiGatewayV2") { - val instance = new services.apigatewayv2.ApiGatewayV2 + val instance = new services.apigatewayv2.ApiGatewayV2(config) } test("AppConfig") { - val instance = new services.appconfig.AppConfig + val instance = new services.appconfig.AppConfig(config) } test("AppMesh") { - val instance = new services.appmesh.AppMesh + val instance = new services.appmesh.AppMesh(config) } test("AppStream") { - val instance = new services.appstream.AppStream + val instance = new services.appstream.AppStream(config) } test("AppSync") { - val instance = new services.appsync.AppSync + val instance = new services.appsync.AppSync(config) } test("ApplicationAutoScaling") { - val instance = new services.applicationautoscaling.ApplicationAutoScaling + val instance = new services.applicationautoscaling.ApplicationAutoScaling(config) } test("ApplicationDiscovery") { - val instance = new services.applicationdiscovery.ApplicationDiscovery + val instance = new services.applicationdiscovery.ApplicationDiscovery(config) } test("ApplicationInsights") { - val instance = new services.applicationinsights.ApplicationInsights + val instance = new services.applicationinsights.ApplicationInsights(config) } test("Athena") { - val instance = new services.athena.Athena + val instance = new services.athena.Athena(config) } test("AugmentedAIRuntime") { - val instance = new services.augmentedairuntime.AugmentedAIRuntime + val instance = new services.augmentedairuntime.AugmentedAIRuntime(config) } test("AutoScaling") { - val instance = new services.autoscaling.AutoScaling + val instance = new services.autoscaling.AutoScaling(config) } test("AutoScalingPlans") { - val instance = new services.autoscalingplans.AutoScalingPlans + val instance = new services.autoscalingplans.AutoScalingPlans(config) } test("Backup") { - val instance = new services.backup.Backup + val instance = new services.backup.Backup(config) } test("Batch") { - val instance = new services.batch.Batch + val instance = new services.batch.Batch(config) } test("BudgetsService") { - val instance = new services.budgetsservice.BudgetsService + val instance = new services.budgetsservice.BudgetsService(config) } test("CUR") { - val instance = new services.cur.CUR + val instance = new services.cur.CUR(config) } test("Chime") { - val instance = new services.chime.Chime + val instance = new services.chime.Chime(config) } test("Cloud9") { - val instance = new services.cloud9.Cloud9 + val instance = new services.cloud9.Cloud9(config) } test("CloudDirectory") { - val instance = new services.clouddirectory.CloudDirectory + val instance = new services.clouddirectory.CloudDirectory(config) } test("CloudFormation") { - val instance = new services.cloudformation.CloudFormation + val instance = new services.cloudformation.CloudFormation(config) } test("CloudFront") { - val instance = new services.cloudfront.CloudFront + val instance = new services.cloudfront.CloudFront(config) } test("CloudHSM") { - val instance = new services.cloudhsm.CloudHSM + val instance = new services.cloudhsm.CloudHSM(config) } test("CloudHSMV2") { - val instance = new services.cloudhsmv2.CloudHSMV2 + val instance = new services.cloudhsmv2.CloudHSMV2(config) } test("CloudSearch") { - val instance = new services.cloudsearch.CloudSearch + val instance = new services.cloudsearch.CloudSearch(config) } test("CloudSearchDomain") { - val instance = new services.cloudsearchdomain.CloudSearchDomain( - AWSConfig( - endpoint = "http://localhost" - ) - ) + val instance = new services.cloudsearchdomain.CloudSearchDomain(config) } test("CloudTrail") { - val instance = new services.cloudtrail.CloudTrail + val instance = new services.cloudtrail.CloudTrail(config) } test("CloudWatch") { - val instance = new services.cloudwatch.CloudWatch + val instance = new services.cloudwatch.CloudWatch(config) } test("CloudWatchEvents") { - val instance = new services.cloudwatchevents.CloudWatchEvents + val instance = new services.cloudwatchevents.CloudWatchEvents(config) } test("CloudWatchLogs") { - val instance = new services.cloudwatchlogs.CloudWatchLogs + val instance = new services.cloudwatchlogs.CloudWatchLogs(config) + } + + test("CodeArtifact") { + val instance = new services.codeartifact.CodeArtifact(config) } test("CodeBuild") { - val instance = new services.codebuild.CodeBuild + val instance = new services.codebuild.CodeBuild(config) } test("CodeCommit") { - val instance = new services.codecommit.CodeCommit + val instance = new services.codecommit.CodeCommit(config) } test("CodeDeploy") { - val instance = new services.codedeploy.CodeDeploy + val instance = new services.codedeploy.CodeDeploy(config) } test("CodeGuruProfiler") { - val instance = new services.codeguruprofiler.CodeGuruProfiler + val instance = new services.codeguruprofiler.CodeGuruProfiler(config) } test("CodeGuruReviewer") { - val instance = new services.codegurureviewer.CodeGuruReviewer + val instance = new services.codegurureviewer.CodeGuruReviewer(config) } test("CodePipeline") { - val instance = new services.codepipeline.CodePipeline + val instance = new services.codepipeline.CodePipeline(config) } test("CodeStar") { - val instance = new services.codestar.CodeStar + val instance = new services.codestar.CodeStar(config) } test("CodeStarNotifications") { - val instance = new services.codestarnotifications.CodeStarNotifications + val instance = new services.codestarnotifications.CodeStarNotifications(config) } test("CodeStarconnections") { - val instance = new services.codestarconnections.CodeStarconnections + val instance = new services.codestarconnections.CodeStarconnections(config) } test("CognitoIdentity") { - val instance = new services.cognitoidentity.CognitoIdentity + val instance = new services.cognitoidentity.CognitoIdentity(config) } test("CognitoIdentityProvider") { - val instance = new services.cognitoidentityprovider.CognitoIdentityProvider + val instance = new services.cognitoidentityprovider.CognitoIdentityProvider(config) } test("CognitoSync") { - val instance = new services.cognitosync.CognitoSync + val instance = new services.cognitosync.CognitoSync(config) } test("Comprehend") { - val instance = new services.comprehend.Comprehend + val instance = new services.comprehend.Comprehend(config) } test("ComprehendMedical") { - val instance = new services.comprehendmedical.ComprehendMedical + val instance = new services.comprehendmedical.ComprehendMedical(config) } test("ComputeOptimizer") { - val instance = new services.computeoptimizer.ComputeOptimizer + val instance = new services.computeoptimizer.ComputeOptimizer(config) } test("ConfigService") { - val instance = new services.configservice.ConfigService + val instance = new services.configservice.ConfigService(config) } test("Connect") { - val instance = new services.connect.Connect + val instance = new services.connect.Connect(config) } test("ConnectParticipant") { - val instance = new services.connectparticipant.ConnectParticipant + val instance = new services.connectparticipant.ConnectParticipant(config) } test("CostExplorer") { - val instance = new services.costexplorer.CostExplorer + val instance = new services.costexplorer.CostExplorer(config) } test("DAX") { - val instance = new services.dax.DAX + val instance = new services.dax.DAX(config) } test("DLM") { - val instance = new services.dlm.DLM + val instance = new services.dlm.DLM(config) } test("DMS") { - val instance = new services.dms.DMS + val instance = new services.dms.DMS(config) } test("DataExchange") { - val instance = new services.dataexchange.DataExchange + val instance = new services.dataexchange.DataExchange(config) } test("DataPipeline") { - val instance = new services.datapipeline.DataPipeline + val instance = new services.datapipeline.DataPipeline(config) } test("DataSync") { - val instance = new services.datasync.DataSync + val instance = new services.datasync.DataSync(config) } test("Detective") { - val instance = new services.detective.Detective + val instance = new services.detective.Detective(config) } test("DeviceFarm") { - val instance = new services.devicefarm.DeviceFarm + val instance = new services.devicefarm.DeviceFarm(config) } test("DirectConnect") { - val instance = new services.directconnect.DirectConnect + val instance = new services.directconnect.DirectConnect(config) } test("DirectoryService") { - val instance = new services.directoryservice.DirectoryService + val instance = new services.directoryservice.DirectoryService(config) } test("DocDB") { - val instance = new services.docdb.DocDB + val instance = new services.docdb.DocDB(config) } test("DynamoDB") { - val instance = new services.dynamodb.DynamoDB + val instance = new services.dynamodb.DynamoDB(config) } test("DynamoDBStreams") { - val instance = new services.dynamodbstreams.DynamoDBStreams + val instance = new services.dynamodbstreams.DynamoDBStreams(config) } test("EBS") { - val instance = new services.ebs.EBS + val instance = new services.ebs.EBS(config) } test("EC2") { - val instance = new services.ec2.EC2 + val instance = new services.ec2.EC2(config) } test("EC2InstanceConnect") { - val instance = new services.ec2instanceconnect.EC2InstanceConnect + val instance = new services.ec2instanceconnect.EC2InstanceConnect(config) } test("ECR") { - val instance = new services.ecr.ECR + val instance = new services.ecr.ECR(config) } test("ECS") { - val instance = new services.ecs.ECS + val instance = new services.ecs.ECS(config) } test("EFS") { - val instance = new services.efs.EFS + val instance = new services.efs.EFS(config) } test("EKS") { - val instance = new services.eks.EKS + val instance = new services.eks.EKS(config) } test("ELB") { - val instance = new services.elb.ELB + val instance = new services.elb.ELB(config) } test("ELBv2") { - val instance = new services.elbv2.ELBv2 + val instance = new services.elbv2.ELBv2(config) } test("EMR") { - val instance = new services.emr.EMR + val instance = new services.emr.EMR(config) } test("ES") { - val instance = new services.es.ES + val instance = new services.es.ES(config) } test("ElastiCache") { - val instance = new services.elasticache.ElastiCache + val instance = new services.elasticache.ElastiCache(config) } test("ElasticBeanstalk") { - val instance = new services.elasticbeanstalk.ElasticBeanstalk + val instance = new services.elasticbeanstalk.ElasticBeanstalk(config) } test("ElasticInference") { - val instance = new services.elasticinference.ElasticInference + val instance = new services.elasticinference.ElasticInference(config) } test("ElasticTranscoder") { - val instance = new services.elastictranscoder.ElasticTranscoder + val instance = new services.elastictranscoder.ElasticTranscoder(config) } test("EventBridge") { - val instance = new services.eventbridge.EventBridge + val instance = new services.eventbridge.EventBridge(config) } test("FMS") { - val instance = new services.fms.FMS + val instance = new services.fms.FMS(config) } test("FSx") { - val instance = new services.fsx.FSx + val instance = new services.fsx.FSx(config) } test("Firehose") { - val instance = new services.firehose.Firehose + val instance = new services.firehose.Firehose(config) } test("Forecast") { - val instance = new services.forecast.Forecast + val instance = new services.forecast.Forecast(config) } test("ForecastQuery") { - val instance = new services.forecastquery.ForecastQuery + val instance = new services.forecastquery.ForecastQuery(config) } test("FraudDetector") { - val instance = new services.frauddetector.FraudDetector + val instance = new services.frauddetector.FraudDetector(config) } test("GameLift") { - val instance = new services.gamelift.GameLift + val instance = new services.gamelift.GameLift(config) } test("Glacier") { - val instance = new services.glacier.Glacier + val instance = new services.glacier.Glacier(config) } test("GlobalAccelerator") { - val instance = new services.globalaccelerator.GlobalAccelerator + val instance = new services.globalaccelerator.GlobalAccelerator(config) } test("Glue") { - val instance = new services.glue.Glue + val instance = new services.glue.Glue(config) } test("Greengrass") { - val instance = new services.greengrass.Greengrass + val instance = new services.greengrass.Greengrass(config) } test("GroundStation") { - val instance = new services.groundstation.GroundStation + val instance = new services.groundstation.GroundStation(config) } test("GuardDuty") { - val instance = new services.guardduty.GuardDuty + val instance = new services.guardduty.GuardDuty(config) } test("Health") { - val instance = new services.health.Health + val instance = new services.health.Health(config) + } + + test("Honeycode") { + val instance = new services.honeycode.Honeycode(config) } test("IAM") { - val instance = new services.iam.IAM + val instance = new services.iam.IAM(config) + } + + test("IVS") { + val instance = new services.ivs.IVS(config) } test("Imagebuilder") { - val instance = new services.imagebuilder.Imagebuilder + val instance = new services.imagebuilder.Imagebuilder(config) } test("ImportExport") { - val instance = new services.importexport.ImportExport + val instance = new services.importexport.ImportExport(config) } test("Inspector") { - val instance = new services.inspector.Inspector + val instance = new services.inspector.Inspector(config) } test("IoT1ClickDevicesService") { - val instance = new services.iot1clickdevicesservice.IoT1ClickDevicesService + val instance = new services.iot1clickdevicesservice.IoT1ClickDevicesService(config) } test("IoT1ClickProjects") { - val instance = new services.iot1clickprojects.IoT1ClickProjects + val instance = new services.iot1clickprojects.IoT1ClickProjects(config) } test("IoTAnalytics") { - val instance = new services.iotanalytics.IoTAnalytics + val instance = new services.iotanalytics.IoTAnalytics(config) } test("IoTEvents") { - val instance = new services.iotevents.IoTEvents + val instance = new services.iotevents.IoTEvents(config) } test("IoTEventsData") { - val instance = new services.ioteventsdata.IoTEventsData + val instance = new services.ioteventsdata.IoTEventsData(config) } test("IoTJobsDataPlane") { - val instance = new services.iotjobsdataplane.IoTJobsDataPlane + val instance = new services.iotjobsdataplane.IoTJobsDataPlane(config) } test("IoTSecureTunneling") { - val instance = new services.iotsecuretunneling.IoTSecureTunneling + val instance = new services.iotsecuretunneling.IoTSecureTunneling(config) + } + + test("IoTSiteWise") { + val instance = new services.iotsitewise.IoTSiteWise(config) } test("IoTThingsGraph") { - val instance = new services.iotthingsgraph.IoTThingsGraph + val instance = new services.iotthingsgraph.IoTThingsGraph(config) } test("Iot") { - val instance = new services.iot.Iot + val instance = new services.iot.Iot(config) } test("IotData") { - val instance = new services.iotdata.IotData( - AWSConfig( - endpoint = "http://localhost" - ) - ) + val instance = new services.iotdata.IotData(config) } test("KMS") { - val instance = new services.kms.KMS + val instance = new services.kms.KMS(config) } test("Kafka") { - val instance = new services.kafka.Kafka + val instance = new services.kafka.Kafka(config) } test("Kendra") { - val instance = new services.kendra.Kendra + val instance = new services.kendra.Kendra(config) } test("Kinesis") { - val instance = new services.kinesis.Kinesis + val instance = new services.kinesis.Kinesis(config) } test("KinesisAnalytics") { - val instance = new services.kinesisanalytics.KinesisAnalytics + val instance = new services.kinesisanalytics.KinesisAnalytics(config) } test("KinesisAnalyticsV2") { - val instance = new services.kinesisanalyticsv2.KinesisAnalyticsV2 + val instance = new services.kinesisanalyticsv2.KinesisAnalyticsV2(config) } test("KinesisVideo") { - val instance = new services.kinesisvideo.KinesisVideo + val instance = new services.kinesisvideo.KinesisVideo(config) } test("KinesisVideoArchivedMedia") { - val instance = new services.kinesisvideoarchivedmedia.KinesisVideoArchivedMedia + val instance = new services.kinesisvideoarchivedmedia.KinesisVideoArchivedMedia(config) } test("KinesisVideoMedia") { - val instance = new services.kinesisvideomedia.KinesisVideoMedia + val instance = new services.kinesisvideomedia.KinesisVideoMedia(config) } test("KinesisVideoSignaling") { - val instance = new services.kinesisvideosignaling.KinesisVideoSignaling + val instance = new services.kinesisvideosignaling.KinesisVideoSignaling(config) } test("LakeFormation") { - val instance = new services.lakeformation.LakeFormation + val instance = new services.lakeformation.LakeFormation(config) } test("Lambda") { - val instance = new services.lambda.Lambda + val instance = new services.lambda.Lambda(config) } test("LexModelBuildingService") { - val instance = new services.lexmodelbuildingservice.LexModelBuildingService + val instance = new services.lexmodelbuildingservice.LexModelBuildingService(config) } test("LexRuntime") { - val instance = new services.lexruntime.LexRuntime + val instance = new services.lexruntime.LexRuntime(config) } test("LicenseManager") { - val instance = new services.licensemanager.LicenseManager + val instance = new services.licensemanager.LicenseManager(config) } test("Lightsail") { - val instance = new services.lightsail.Lightsail + val instance = new services.lightsail.Lightsail(config) } test("MQ") { - val instance = new services.mq.MQ + val instance = new services.mq.MQ(config) } test("MTurk") { - val instance = new services.mturk.MTurk + val instance = new services.mturk.MTurk(config) } test("MachineLearning") { - val instance = new services.machinelearning.MachineLearning + val instance = new services.machinelearning.MachineLearning(config) } test("Macie") { - val instance = new services.macie.Macie + val instance = new services.macie.Macie(config) + } + + test("Macie2") { + val instance = new services.macie2.Macie2(config) } test("ManagedBlockchain") { - val instance = new services.managedblockchain.ManagedBlockchain + val instance = new services.managedblockchain.ManagedBlockchain(config) } test("MarketplaceCatalog") { - val instance = new services.marketplacecatalog.MarketplaceCatalog + val instance = new services.marketplacecatalog.MarketplaceCatalog(config) } test("MarketplaceCommerceAnalytics") { - val instance = new services.marketplacecommerceanalytics.MarketplaceCommerceAnalytics + val instance = new services.marketplacecommerceanalytics.MarketplaceCommerceAnalytics(config) } test("MarketplaceEntitlementService") { - val instance = new services.marketplaceentitlementservice.MarketplaceEntitlementService + val instance = new services.marketplaceentitlementservice.MarketplaceEntitlementService(config) } test("MarketplaceMetering") { - val instance = new services.marketplacemetering.MarketplaceMetering + val instance = new services.marketplacemetering.MarketplaceMetering(config) } test("MediaConnect") { - val instance = new services.mediaconnect.MediaConnect + val instance = new services.mediaconnect.MediaConnect(config) } test("MediaConvert") { - val instance = new services.mediaconvert.MediaConvert + val instance = new services.mediaconvert.MediaConvert(config) } test("MediaLive") { - val instance = new services.medialive.MediaLive + val instance = new services.medialive.MediaLive(config) } test("MediaPackage") { - val instance = new services.mediapackage.MediaPackage + val instance = new services.mediapackage.MediaPackage(config) } test("MediaPackageVod") { - val instance = new services.mediapackagevod.MediaPackageVod + val instance = new services.mediapackagevod.MediaPackageVod(config) } test("MediaStore") { - val instance = new services.mediastore.MediaStore + val instance = new services.mediastore.MediaStore(config) } test("MediaStoreData") { - val instance = new services.mediastoredata.MediaStoreData + val instance = new services.mediastoredata.MediaStoreData(config) } test("MediaTailor") { - val instance = new services.mediatailor.MediaTailor + val instance = new services.mediatailor.MediaTailor(config) } test("MigrationHub") { - val instance = new services.migrationhub.MigrationHub + val instance = new services.migrationhub.MigrationHub(config) } test("MigrationHubConfig") { - val instance = new services.migrationhubconfig.MigrationHubConfig + val instance = new services.migrationhubconfig.MigrationHubConfig(config) } test("Mobile") { - val instance = new services.mobile.Mobile + val instance = new services.mobile.Mobile(config) } test("MobileAnalytics") { - val instance = new services.mobileanalytics.MobileAnalytics + val instance = new services.mobileanalytics.MobileAnalytics(config) } test("Neptune") { - val instance = new services.neptune.Neptune + val instance = new services.neptune.Neptune(config) } test("NetworkManager") { - val instance = new services.networkmanager.NetworkManager + val instance = new services.networkmanager.NetworkManager(config) } test("OpsWorks") { - val instance = new services.opsworks.OpsWorks + val instance = new services.opsworks.OpsWorks(config) } test("OpsWorksCM") { - val instance = new services.opsworkscm.OpsWorksCM + val instance = new services.opsworkscm.OpsWorksCM(config) } test("Organizations") { - val instance = new services.organizations.Organizations + val instance = new services.organizations.Organizations(config) } test("Outposts") { - val instance = new services.outposts.Outposts + val instance = new services.outposts.Outposts(config) } test("PI") { - val instance = new services.pi.PI + val instance = new services.pi.PI(config) } test("Personalize") { - val instance = new services.personalize.Personalize + val instance = new services.personalize.Personalize(config) } test("PersonalizeEvents") { - val instance = new services.personalizeevents.PersonalizeEvents + val instance = new services.personalizeevents.PersonalizeEvents(config) } test("PersonalizeRuntime") { - val instance = new services.personalizeruntime.PersonalizeRuntime + val instance = new services.personalizeruntime.PersonalizeRuntime(config) } test("Pinpoint") { - val instance = new services.pinpoint.Pinpoint + val instance = new services.pinpoint.Pinpoint(config) } test("PinpointEmail") { - val instance = new services.pinpointemail.PinpointEmail + val instance = new services.pinpointemail.PinpointEmail(config) } test("PinpointSMSVoice") { - val instance = new services.pinpointsmsvoice.PinpointSMSVoice + val instance = new services.pinpointsmsvoice.PinpointSMSVoice(config) } test("Polly") { - val instance = new services.polly.Polly + val instance = new services.polly.Polly(config) } test("Pricing") { - val instance = new services.pricing.Pricing + val instance = new services.pricing.Pricing(config) } test("QLDB") { - val instance = new services.qldb.QLDB + val instance = new services.qldb.QLDB(config) } test("QLDBSession") { - val instance = new services.qldbsession.QLDBSession + val instance = new services.qldbsession.QLDBSession(config) } test("QuickSight") { - val instance = new services.quicksight.QuickSight + val instance = new services.quicksight.QuickSight(config) } test("RAM") { - val instance = new services.ram.RAM + val instance = new services.ram.RAM(config) } test("RDS") { - val instance = new services.rds.RDS + val instance = new services.rds.RDS(config) } test("RDSDataService") { - val instance = new services.rdsdataservice.RDSDataService + val instance = new services.rdsdataservice.RDSDataService(config) } test("Redshift") { - val instance = new services.redshift.Redshift + val instance = new services.redshift.Redshift(config) } test("Rekognition") { - val instance = new services.rekognition.Rekognition + val instance = new services.rekognition.Rekognition(config) } test("ResourceGroups") { - val instance = new services.resourcegroups.ResourceGroups + val instance = new services.resourcegroups.ResourceGroups(config) } test("ResourceGroupsTaggingAPI") { - val instance = new services.resourcegroupstaggingapi.ResourceGroupsTaggingAPI + val instance = new services.resourcegroupstaggingapi.ResourceGroupsTaggingAPI(config) } test("RoboMaker") { - val instance = new services.robomaker.RoboMaker + val instance = new services.robomaker.RoboMaker(config) } test("Route53") { - val instance = new services.route53.Route53 + val instance = new services.route53.Route53(config) } test("Route53Domains") { - val instance = new services.route53domains.Route53Domains + val instance = new services.route53domains.Route53Domains(config) } test("Route53Resolver") { - val instance = new services.route53resolver.Route53Resolver + val instance = new services.route53resolver.Route53Resolver(config) } test("S3") { - val instance = new services.s3.S3 + val instance = new services.s3.S3(config) } test("S3Control") { - val instance = new services.s3control.S3Control + val instance = new services.s3control.S3Control(config) } test("SES") { - val instance = new services.ses.SES + val instance = new services.ses.SES(config) } test("SESv2") { - val instance = new services.sesv2.SESv2 + val instance = new services.sesv2.SESv2(config) } test("SMS") { - val instance = new services.sms.SMS + val instance = new services.sms.SMS(config) } test("SNS") { - val instance = new services.sns.SNS + val instance = new services.sns.SNS(config) } test("SQS") { - val instance = new services.sqs.SQS + val instance = new services.sqs.SQS(config) } test("SSM") { - val instance = new services.ssm.SSM + val instance = new services.ssm.SSM(config) } test("SSO") { - val instance = new services.sso.SSO + val instance = new services.sso.SSO(config) } test("SSOOIDC") { - val instance = new services.ssooidc.SSOOIDC + val instance = new services.ssooidc.SSOOIDC(config) } test("STS") { - val instance = new services.sts.STS + val instance = new services.sts.STS(config) } test("SWF") { - val instance = new services.swf.SWF + val instance = new services.swf.SWF(config) } test("SageMaker") { - val instance = new services.sagemaker.SageMaker + val instance = new services.sagemaker.SageMaker(config) } test("SageMakerRuntime") { - val instance = new services.sagemakerruntime.SageMakerRuntime + val instance = new services.sagemakerruntime.SageMakerRuntime(config) } test("SavingsPlans") { - val instance = new services.savingsplans.SavingsPlans + val instance = new services.savingsplans.SavingsPlans(config) } test("Schemas") { - val instance = new services.schemas.Schemas + val instance = new services.schemas.Schemas(config) } test("SecretsManager") { - val instance = new services.secretsmanager.SecretsManager + val instance = new services.secretsmanager.SecretsManager(config) } test("SecurityHub") { - val instance = new services.securityhub.SecurityHub + val instance = new services.securityhub.SecurityHub(config) } test("ServerlessApplicationRepository") { - val instance = new services.serverlessapplicationrepository.ServerlessApplicationRepository + val instance = new services.serverlessapplicationrepository.ServerlessApplicationRepository(config) } test("ServiceCatalog") { - val instance = new services.servicecatalog.ServiceCatalog + val instance = new services.servicecatalog.ServiceCatalog(config) } test("ServiceDiscovery") { - val instance = new services.servicediscovery.ServiceDiscovery + val instance = new services.servicediscovery.ServiceDiscovery(config) } test("ServiceQuotas") { - val instance = new services.servicequotas.ServiceQuotas + val instance = new services.servicequotas.ServiceQuotas(config) } test("Shield") { - val instance = new services.shield.Shield + val instance = new services.shield.Shield(config) } test("Signer") { - val instance = new services.signer.Signer + val instance = new services.signer.Signer(config) } test("SimpleDB") { - val instance = new services.simpledb.SimpleDB + val instance = new services.simpledb.SimpleDB(config) } test("Snowball") { - val instance = new services.snowball.Snowball + val instance = new services.snowball.Snowball(config) } test("StepFunctions") { - val instance = new services.stepfunctions.StepFunctions + val instance = new services.stepfunctions.StepFunctions(config) } test("StorageGateway") { - val instance = new services.storagegateway.StorageGateway + val instance = new services.storagegateway.StorageGateway(config) } test("Support") { - val instance = new services.support.Support + val instance = new services.support.Support(config) + } + + test("Synthetics") { + val instance = new services.synthetics.Synthetics(config) } test("Textract") { - val instance = new services.textract.Textract + val instance = new services.textract.Textract(config) } test("TranscribeService") { - val instance = new services.transcribeservice.TranscribeService + val instance = new services.transcribeservice.TranscribeService(config) } test("Transfer") { - val instance = new services.transfer.Transfer + val instance = new services.transfer.Transfer(config) } test("Translate") { - val instance = new services.translate.Translate + val instance = new services.translate.Translate(config) } test("WAF") { - val instance = new services.waf.WAF + val instance = new services.waf.WAF(config) } test("WAFRegional") { - val instance = new services.wafregional.WAFRegional + val instance = new services.wafregional.WAFRegional(config) } test("WAFv2") { - val instance = new services.wafv2.WAFv2 + val instance = new services.wafv2.WAFv2(config) } test("WorkDocs") { - val instance = new services.workdocs.WorkDocs + val instance = new services.workdocs.WorkDocs(config) } test("WorkLink") { - val instance = new services.worklink.WorkLink + val instance = new services.worklink.WorkLink(config) } test("WorkMail") { - val instance = new services.workmail.WorkMail + val instance = new services.workmail.WorkMail(config) } test("WorkMailMessageFlow") { - val instance = new services.workmailmessageflow.WorkMailMessageFlow + val instance = new services.workmailmessageflow.WorkMailMessageFlow(config) } test("WorkSpaces") { - val instance = new services.workspaces.WorkSpaces + val instance = new services.workspaces.WorkSpaces(config) } test("XRay") { - val instance = new services.xray.XRay + val instance = new services.xray.XRay(config) } + } diff --git a/build.sbt b/build.sbt index 1c73219a2..96c1f1d8b 100644 --- a/build.sbt +++ b/build.sbt @@ -31,21 +31,21 @@ def defineAwsProject(service: String): Project = { ) .enablePlugins(ScalaJSPlugin) } +lazy val awsAccessAnalyzer = defineAwsProject("AccessAnalyzer") lazy val awsACM = defineAwsProject("ACM") lazy val awsACMPCA = defineAwsProject("ACMPCA") -lazy val awsAPIGateway = defineAwsProject("APIGateway") -lazy val awsAccessAnalyzer = defineAwsProject("AccessAnalyzer") lazy val awsAlexaForBusiness = defineAwsProject("AlexaForBusiness") lazy val awsAmplify = defineAwsProject("Amplify") +lazy val awsAPIGateway = defineAwsProject("APIGateway") lazy val awsApiGatewayManagementApi = defineAwsProject("ApiGatewayManagementApi") lazy val awsApiGatewayV2 = defineAwsProject("ApiGatewayV2") lazy val awsAppConfig = defineAwsProject("AppConfig") -lazy val awsAppMesh = defineAwsProject("AppMesh") -lazy val awsAppStream = defineAwsProject("AppStream") -lazy val awsAppSync = defineAwsProject("AppSync") lazy val awsApplicationAutoScaling = defineAwsProject("ApplicationAutoScaling") lazy val awsApplicationDiscovery = defineAwsProject("ApplicationDiscovery") lazy val awsApplicationInsights = defineAwsProject("ApplicationInsights") +lazy val awsAppMesh = defineAwsProject("AppMesh") +lazy val awsAppStream = defineAwsProject("AppStream") +lazy val awsAppSync = defineAwsProject("AppSync") lazy val awsAthena = defineAwsProject("Athena") lazy val awsAugmentedAIRuntime = defineAwsProject("AugmentedAIRuntime") lazy val awsAutoScaling = defineAwsProject("AutoScaling") @@ -53,7 +53,6 @@ lazy val awsAutoScalingPlans = defineAwsProject("AutoScalingPlans") lazy val awsBackup = defineAwsProject("Backup") lazy val awsBatch = defineAwsProject("Batch") lazy val awsBudgetsService = defineAwsProject("BudgetsService") -lazy val awsCUR = defineAwsProject("CUR") lazy val awsChime = defineAwsProject("Chime") lazy val awsCloud9 = defineAwsProject("Cloud9") lazy val awsCloudDirectory = defineAwsProject("CloudDirectory") @@ -68,6 +67,7 @@ lazy val awsCloudTrail = defineAwsProject("CloudTrail") lazy val awsCloudWatch = defineAwsProject("CloudWatch") lazy val awsCloudWatchEvents = defineAwsProject("CloudWatchEvents") lazy val awsCloudWatchLogs = defineAwsProject("CloudWatchLogs") +lazy val awsCodeArtifact = defineAwsProject("CodeArtifact") lazy val awsCodeBuild = defineAwsProject("CodeBuild") lazy val awsCodeCommit = defineAwsProject("CodeCommit") lazy val awsCodeDeploy = defineAwsProject("CodeDeploy") @@ -87,16 +87,17 @@ lazy val awsConfigService = defineAwsProject("ConfigService") lazy val awsConnect = defineAwsProject("Connect") lazy val awsConnectParticipant = defineAwsProject("ConnectParticipant") lazy val awsCostExplorer = defineAwsProject("CostExplorer") -lazy val awsDAX = defineAwsProject("DAX") -lazy val awsDLM = defineAwsProject("DLM") -lazy val awsDMS = defineAwsProject("DMS") +lazy val awsCUR = defineAwsProject("CUR") lazy val awsDataExchange = defineAwsProject("DataExchange") lazy val awsDataPipeline = defineAwsProject("DataPipeline") lazy val awsDataSync = defineAwsProject("DataSync") +lazy val awsDAX = defineAwsProject("DAX") lazy val awsDetective = defineAwsProject("Detective") lazy val awsDeviceFarm = defineAwsProject("DeviceFarm") lazy val awsDirectConnect = defineAwsProject("DirectConnect") lazy val awsDirectoryService = defineAwsProject("DirectoryService") +lazy val awsDLM = defineAwsProject("DLM") +lazy val awsDMS = defineAwsProject("DMS") lazy val awsDocDb = defineAwsProject("DocDB") lazy val awsDynamoDB = defineAwsProject("DynamoDB").settings(libraryDependencies += Dependencies.shared.compat.value) lazy val awsDynamoDBStreams = defineAwsProject("DynamoDBStreams") @@ -107,21 +108,21 @@ lazy val awsECR = defineAwsProject("ECR") lazy val awsECS = defineAwsProject("ECS") lazy val awsEFS = defineAwsProject("EFS") lazy val awsEKS = defineAwsProject("EKS") -lazy val awsELB = defineAwsProject("ELB") -lazy val awsELBv2 = defineAwsProject("ELBv2") -lazy val awsEMR = defineAwsProject("EMR") -lazy val awsES = defineAwsProject("ES") lazy val awsElastiCache = defineAwsProject("ElastiCache") lazy val awsElasticBeanstalk = defineAwsProject("ElasticBeanstalk") lazy val awsElasticInference = defineAwsProject("ElasticInference") lazy val awsElasticTranscoder = defineAwsProject("ElasticTranscoder") +lazy val awsELB = defineAwsProject("ELB") +lazy val awsELBv2 = defineAwsProject("ELBv2") +lazy val awsEMR = defineAwsProject("EMR") +lazy val awsES = defineAwsProject("ES") lazy val awsEventBridge = defineAwsProject("EventBridge") -lazy val awsFMS = defineAwsProject("FMS") -lazy val awsFSx = defineAwsProject("FSx") lazy val awsFirehose = defineAwsProject("Firehose") +lazy val awsFMS = defineAwsProject("FMS") lazy val awsForecast = defineAwsProject("Forecast") lazy val awsForecastQuery = defineAwsProject("ForecastQuery") lazy val awsFraudDetector = defineAwsProject("FraudDetector") +lazy val awsFSx = defineAwsProject("FSx") lazy val awsGameLift = defineAwsProject("GameLift") lazy val awsGlacier = defineAwsProject("Glacier") lazy val awsGlobalAccelerator = defineAwsProject("GlobalAccelerator") @@ -130,21 +131,23 @@ lazy val awsGreengrass = defineAwsProject("Greengrass") lazy val awsGroundStation = defineAwsProject("GroundStation") lazy val awsGuardDuty = defineAwsProject("GuardDuty") lazy val awsHealth = defineAwsProject("Health") +lazy val awsHoneycode = defineAwsProject("Honeycode") lazy val awsIAM = defineAwsProject("IAM") lazy val awsImagebuilder = defineAwsProject("Imagebuilder") lazy val awsImportExport = defineAwsProject("ImportExport") lazy val awsInspector = defineAwsProject("Inspector") +lazy val awsIot = defineAwsProject("Iot") lazy val awsIoT1ClickDevicesService = defineAwsProject("IoT1ClickDevicesService") lazy val awsIoT1ClickProjects = defineAwsProject("IoT1ClickProjects") lazy val awsIoTAnalytics = defineAwsProject("IoTAnalytics") -lazy val awsIoTJobsDataPlane = defineAwsProject("IoTJobsDataPlane") -lazy val awsIoTSecureTunneling = defineAwsProject("IoTSecureTunneling") -lazy val awsIot = defineAwsProject("Iot") lazy val awsIotData = defineAwsProject("IotData") lazy val awsIotEvents = defineAwsProject("IotEvents") lazy val awsIotEventsData = defineAwsProject("IotEventsData") +lazy val awsIoTJobsDataPlane = defineAwsProject("IoTJobsDataPlane") +lazy val awsIoTSecureTunneling = defineAwsProject("IoTSecureTunneling") +lazy val awsIoTSiteWise = defineAwsProject("IoTSiteWise") lazy val awsIotThingsGraph = defineAwsProject("IotThingsGraph") -lazy val awsKMS = defineAwsProject("KMS") +lazy val awsIVS = defineAwsProject("IVS") lazy val awsKafka = defineAwsProject("Kafka") lazy val awsKendra = defineAwsProject("Kendra") lazy val awsKinesis = defineAwsProject("Kinesis") @@ -154,16 +157,16 @@ lazy val awsKinesisVideo = defineAwsProject("KinesisVideo") lazy val awsKinesisVideoArchivedMedia = defineAwsProject("KinesisVideoArchivedMedia") lazy val awsKinesisVideoMedia = defineAwsProject("KinesisVideoMedia") lazy val awsKinesisVideoSignaling = defineAwsProject("KinesisVideoSignaling") +lazy val awsKMS = defineAwsProject("KMS") lazy val awsLakeFormation = defineAwsProject("LakeFormation") lazy val awsLambda = defineAwsProject("Lambda") lazy val awsLexModelBuildingService = defineAwsProject("LexModelBuildingService") lazy val awsLexRuntime = defineAwsProject("LexRuntime") lazy val awsLicenseManager = defineAwsProject("LicenseManager") lazy val awsLightsail = defineAwsProject("Lightsail") -lazy val awsMQ = defineAwsProject("MQ") -lazy val awsMTurk = defineAwsProject("MTurk") lazy val awsMachineLearning = defineAwsProject("MachineLearning") lazy val awsMacie = defineAwsProject("Macie") +lazy val awsMacie2 = defineAwsProject("Macie2") lazy val awsManagedBlockChain = defineAwsProject("ManagedBlockChain") lazy val awsMarketplaceCatalog = defineAwsProject("MarketplaceCatalog") lazy val awsMarketplaceCommerceAnalytics = defineAwsProject("MarketplaceCommerceAnalytics") @@ -181,16 +184,18 @@ lazy val awsMigrationHub = defineAwsProject("MigrationHub") lazy val awsMigrationHubConfig = defineAwsProject("MigrationHubConfig") lazy val awsMobile = defineAwsProject("Mobile") lazy val awsMobileAnalytics = defineAwsProject("MobileAnalytics") +lazy val awsMQ = defineAwsProject("MQ") +lazy val awsMTurk = defineAwsProject("MTurk") lazy val awsNeptune = defineAwsProject("Neptune") lazy val awsNetworkManager = defineAwsProject("NetworkManager") lazy val awsOpsWorks = defineAwsProject("OpsWorks") lazy val awsOpsWorksCM = defineAwsProject("OpsWorksCM") lazy val awsOrganizations = defineAwsProject("Organizations") lazy val awsOutposts = defineAwsProject("Outposts") -lazy val awsPI = defineAwsProject("PI") lazy val awsPersonalize = defineAwsProject("Personalize") lazy val awsPersonalizeEvents = defineAwsProject("PersonalizeEvents") lazy val awsPersonalizeRuntime = defineAwsProject("PersonalizeRuntime") +lazy val awsPI = defineAwsProject("PI") lazy val awsPinpoint = defineAwsProject("Pinpoint") lazy val awsPinpointEmail = defineAwsProject("PinpointEmail") lazy val awsPinpointSMSVoice = defineAwsProject("PinpointSMSVoice") @@ -212,16 +217,6 @@ lazy val awsRoute53Domains = defineAwsProject("Route53Domains") lazy val awsRoute53Resolver = defineAwsProject("Route53Resolver") lazy val awsS3 = defineAwsProject("S3") lazy val awsS3Control = defineAwsProject("S3Control") -lazy val awsSES = defineAwsProject("SES") -lazy val awsSESv2 = defineAwsProject("SESv2") -lazy val awsSMS = defineAwsProject("SMS") -lazy val awsSNS = defineAwsProject("SNS") -lazy val awsSQS = defineAwsProject("SQS") -lazy val awsSSM = defineAwsProject("SSM") -lazy val awsSSO = defineAwsProject("SSO") -lazy val awsSSOOIDC = defineAwsProject("SSOOIDC") -lazy val awsSTS = defineAwsProject("STS") -lazy val awsSWF = defineAwsProject("SWF") lazy val awsSageMaker = defineAwsProject("SageMaker") lazy val awsSageMakerRuntime = defineAwsProject("SageMakerRuntime") lazy val awsSavingsPlans = defineAwsProject("SavingsPlans") @@ -232,13 +227,24 @@ lazy val awsServerlessApplicationRepository = defineAwsProject("ServerlessApplic lazy val awsServiceCatalog = defineAwsProject("ServiceCatalog") lazy val awsServiceDiscovery = defineAwsProject("ServiceDiscovery") lazy val awsServiceQuotas = defineAwsProject("ServiceQuotas") +lazy val awsSES = defineAwsProject("SES") +lazy val awsSESv2 = defineAwsProject("SESv2") lazy val awsShield = defineAwsProject("Shield") lazy val awsSigner = defineAwsProject("Signer") lazy val awsSimpleDB = defineAwsProject("SimpleDB") +lazy val awsSMS = defineAwsProject("SMS") lazy val awsSnowball = defineAwsProject("Snowball") +lazy val awsSNS = defineAwsProject("SNS") +lazy val awsSQS = defineAwsProject("SQS") +lazy val awsSSM = defineAwsProject("SSM") +lazy val awsSSO = defineAwsProject("SSO") +lazy val awsSSOOIDC = defineAwsProject("SSOOIDC") lazy val awsStepFunctions = defineAwsProject("StepFunctions") lazy val awsStorageGateway = defineAwsProject("StorageGateway") +lazy val awsSTS = defineAwsProject("STS") lazy val awsSupport = defineAwsProject("Support") +lazy val awsSWF = defineAwsProject("SWF") +lazy val awsSynthetics = defineAwsProject("Synthetics") lazy val awsTextract = defineAwsProject("Textract") lazy val awsTranscribeService = defineAwsProject("TranscribeService") lazy val awsTransfer = defineAwsProject("Transfer") @@ -272,7 +278,7 @@ lazy val all = (project in file("all")) Dependencies.shared.scalatestHelper.value ), npmDependencies in Test ++= Seq( - "aws-sdk" -> "2.713.0" + "aws-sdk" -> "2.714.2" ) ) .enablePlugins(ScalaJSPlugin, ScalaJSBundlerPlugin) @@ -280,21 +286,21 @@ lazy val all = (project in file("all")) lazy val subProjects: Seq[Project] = Seq( core, + awsAccessAnalyzer, awsACM, awsACMPCA, - awsAPIGateway, - awsAccessAnalyzer, awsAlexaForBusiness, awsAmplify, + awsAPIGateway, awsApiGatewayManagementApi, awsApiGatewayV2, awsAppConfig, - awsAppMesh, - awsAppStream, - awsAppSync, awsApplicationAutoScaling, awsApplicationDiscovery, awsApplicationInsights, + awsAppMesh, + awsAppStream, + awsAppSync, awsAthena, awsAugmentedAIRuntime, awsAutoScaling, @@ -302,7 +308,6 @@ lazy val subProjects: Seq[Project] = Seq( awsBackup, awsBatch, awsBudgetsService, - awsCUR, awsChime, awsCloud9, awsCloudDirectory, @@ -317,6 +322,7 @@ lazy val subProjects: Seq[Project] = Seq( awsCloudWatch, awsCloudWatchEvents, awsCloudWatchLogs, + awsCodeArtifact, awsCodeBuild, awsCodeCommit, awsCodeDeploy, @@ -336,41 +342,42 @@ lazy val subProjects: Seq[Project] = Seq( awsConnect, awsConnectParticipant, awsCostExplorer, - awsDAX, - awsDLM, - awsDMS, + awsCUR, awsDataExchange, awsDataPipeline, awsDataSync, + awsDAX, awsDetective, awsDeviceFarm, awsDirectConnect, awsDirectoryService, + awsDLM, + awsDMS, awsDocDb, awsDynamoDB, awsDynamoDBStreams, awsEBS, - awsEC2, awsEC2InstanceConnect, + awsEC2, awsECR, awsECS, awsEFS, awsEKS, - awsELB, - awsELBv2, - awsEMR, - awsES, awsElastiCache, awsElasticBeanstalk, awsElasticInference, awsElasticTranscoder, + awsELB, + awsELBv2, + awsEMR, + awsES, awsEventBridge, - awsFMS, - awsFSx, awsFirehose, + awsFMS, awsForecast, awsForecastQuery, awsFraudDetector, + awsFSx, awsGameLift, awsGlacier, awsGlobalAccelerator, @@ -379,21 +386,23 @@ lazy val subProjects: Seq[Project] = Seq( awsGroundStation, awsGuardDuty, awsHealth, + awsHoneycode, awsIAM, awsImagebuilder, awsImportExport, awsInspector, + awsIot, awsIoT1ClickDevicesService, awsIoT1ClickProjects, awsIoTAnalytics, - awsIoTJobsDataPlane, - awsIoTSecureTunneling, - awsIot, awsIotData, awsIotEvents, awsIotEventsData, + awsIoTJobsDataPlane, + awsIoTSecureTunneling, + awsIoTSiteWise, awsIotThingsGraph, - awsKMS, + awsIVS, awsKafka, awsKendra, awsKinesis, @@ -403,16 +412,16 @@ lazy val subProjects: Seq[Project] = Seq( awsKinesisVideoArchivedMedia, awsKinesisVideoMedia, awsKinesisVideoSignaling, + awsKMS, awsLakeFormation, awsLambda, awsLexModelBuildingService, awsLexRuntime, awsLicenseManager, awsLightsail, - awsMQ, - awsMTurk, awsMachineLearning, awsMacie, + awsMacie2, awsManagedBlockChain, awsMarketplaceCatalog, awsMarketplaceCommerceAnalytics, @@ -430,16 +439,18 @@ lazy val subProjects: Seq[Project] = Seq( awsMigrationHubConfig, awsMobile, awsMobileAnalytics, + awsMQ, + awsMTurk, awsNeptune, awsNetworkManager, awsOpsWorks, awsOpsWorksCM, awsOrganizations, awsOutposts, - awsPI, awsPersonalize, awsPersonalizeEvents, awsPersonalizeRuntime, + awsPI, awsPinpoint, awsPinpointEmail, awsPinpointSMSVoice, @@ -456,21 +467,11 @@ lazy val subProjects: Seq[Project] = Seq( awsResourceGroups, awsResourceGroupsTaggingAPI, awsRoboMaker, - awsRoute53, awsRoute53Domains, awsRoute53Resolver, - awsS3, + awsRoute53, awsS3Control, - awsSES, - awsSESv2, - awsSMS, - awsSNS, - awsSQS, - awsSSM, - awsSSO, - awsSSOOIDC, - awsSTS, - awsSWF, + awsS3, awsSageMaker, awsSageMakerRuntime, awsSavingsPlans, @@ -481,13 +482,24 @@ lazy val subProjects: Seq[Project] = Seq( awsServiceCatalog, awsServiceDiscovery, awsServiceQuotas, + awsSES, + awsSESv2, awsShield, awsSigner, awsSimpleDB, + awsSMS, awsSnowball, + awsSNS, + awsSQS, + awsSSM, + awsSSO, + awsSSOOIDC, awsStepFunctions, awsStorageGateway, + awsSTS, awsSupport, + awsSWF, + awsSynthetics, awsTextract, awsTranscribeService, awsTransfer, diff --git a/core/src/main/scala/facade/amazonaws/AWSConfigWithServicesDefault.scala b/core/src/main/scala/facade/amazonaws/AWSConfigWithServicesDefault.scala index a4adca421..533a47202 100644 --- a/core/src/main/scala/facade/amazonaws/AWSConfigWithServicesDefault.scala +++ b/core/src/main/scala/facade/amazonaws/AWSConfigWithServicesDefault.scala @@ -37,6 +37,7 @@ class AWSConfigWithServicesDefault extends AWSConfig { var cloudwatch: js.UndefOr[ParamsWithEndpoint] = js.undefined var cloudwatchevents: js.UndefOr[ParamsWithEndpoint] = js.undefined var cloudwatchlogs: js.UndefOr[ParamsWithEndpoint] = js.undefined + var codeartifact: js.UndefOr[ParamsWithEndpoint] = js.undefined var codebuild: js.UndefOr[ParamsWithEndpoint] = js.undefined var codecommit: js.UndefOr[ParamsWithEndpoint] = js.undefined var codedeploy: js.UndefOr[ParamsWithEndpoint] = js.undefined @@ -101,6 +102,7 @@ class AWSConfigWithServicesDefault extends AWSConfig { var groundstation: js.UndefOr[ParamsWithEndpoint] = js.undefined var guardduty: js.UndefOr[ParamsWithEndpoint] = js.undefined var health: js.UndefOr[ParamsWithEndpoint] = js.undefined + var honeycode: js.UndefOr[ParamsWithEndpoint] = js.undefined var iam: js.UndefOr[ParamsWithEndpoint] = js.undefined var imagebuilder: js.UndefOr[ParamsWithEndpoint] = js.undefined var importexport: js.UndefOr[ParamsWithEndpoint] = js.undefined @@ -114,7 +116,9 @@ class AWSConfigWithServicesDefault extends AWSConfig { var ioteventsdata: js.UndefOr[ParamsWithEndpoint] = js.undefined var iotjobsdataplane: js.UndefOr[ParamsWithEndpoint] = js.undefined var iotsecuretunneling: js.UndefOr[ParamsWithEndpoint] = js.undefined + var iotsitewise: js.UndefOr[ParamsWithEndpoint] = js.undefined var iotthingsgraph: js.UndefOr[ParamsWithEndpoint] = js.undefined + var ivs: js.UndefOr[ParamsWithEndpoint] = js.undefined var kafka: js.UndefOr[ParamsWithEndpoint] = js.undefined var kendra: js.UndefOr[ParamsWithEndpoint] = js.undefined var kinesis: js.UndefOr[ParamsWithEndpoint] = js.undefined @@ -133,6 +137,7 @@ class AWSConfigWithServicesDefault extends AWSConfig { var lightsail: js.UndefOr[ParamsWithEndpoint] = js.undefined var machinelearning: js.UndefOr[ParamsWithEndpoint] = js.undefined var macie: js.UndefOr[ParamsWithEndpoint] = js.undefined + var macie2: js.UndefOr[ParamsWithEndpoint] = js.undefined var managedblockchain: js.UndefOr[ParamsWithEndpoint] = js.undefined var marketplacecatalog: js.UndefOr[ParamsWithEndpoint] = js.undefined var marketplacecommerceanalytics: js.UndefOr[ParamsWithEndpoint] = js.undefined @@ -210,6 +215,7 @@ class AWSConfigWithServicesDefault extends AWSConfig { var sts: js.UndefOr[ParamsWithEndpoint] = js.undefined var support: js.UndefOr[ParamsWithEndpoint] = js.undefined var swf: js.UndefOr[ParamsWithEndpoint] = js.undefined + var synthetics: js.UndefOr[ParamsWithEndpoint] = js.undefined var textract: js.UndefOr[ParamsWithEndpoint] = js.undefined var transcribeservice: js.UndefOr[ParamsWithEndpoint] = js.undefined var transfer: js.UndefOr[ParamsWithEndpoint] = js.undefined diff --git a/services/codeartifact/src/main/scala/facade/amazonaws/services/CodeArtifact.scala b/services/codeartifact/src/main/scala/facade/amazonaws/services/CodeArtifact.scala new file mode 100644 index 000000000..bccc45b3a --- /dev/null +++ b/services/codeartifact/src/main/scala/facade/amazonaws/services/CodeArtifact.scala @@ -0,0 +1,2292 @@ +package facade.amazonaws.services + +import scalajs._ +import scalajs.js.annotation.JSImport +import scala.scalajs.js.| +import scala.concurrent.Future +import facade.amazonaws._ + +package object codeartifact { + type AccountId = String + type Arn = String + type Asset = js.typedarray.TypedArray[_, _] | js.Array[Byte] | String + type AssetHashes = js.Dictionary[HashValue] + type AssetName = String + type AssetSummaryList = js.Array[AssetSummary] + type AuthorizationTokenDurationSeconds = Double + type BooleanOptional = Boolean + type Description = String + type DomainName = String + type DomainSummaryList = js.Array[DomainSummary] + type ErrorMessage = String + type ExternalConnectionName = String + type HashValue = String + type LicenseInfoList = js.Array[LicenseInfo] + type ListDomainsMaxResults = Int + type ListPackageVersionAssetsMaxResults = Int + type ListPackageVersionsMaxResults = Int + type ListPackagesMaxResults = Int + type ListRepositoriesInDomainMaxResults = Int + type ListRepositoriesMaxResults = Int + type LongOptional = Double + type PackageDependencyList = js.Array[PackageDependency] + type PackageName = String + type PackageNamespace = String + type PackageSummaryList = js.Array[PackageSummary] + type PackageVersion = String + type PackageVersionErrorMap = js.Dictionary[PackageVersionError] + type PackageVersionList = js.Array[PackageVersion] + type PackageVersionRevision = String + type PackageVersionRevisionMap = js.Dictionary[PackageVersionRevision] + type PackageVersionSummaryList = js.Array[PackageVersionSummary] + type PaginationToken = String + type PolicyDocument = String + type PolicyRevision = String + type RepositoryExternalConnectionInfoList = js.Array[RepositoryExternalConnectionInfo] + type RepositoryName = String + type RepositorySummaryList = js.Array[RepositorySummary] + type String255 = String + type SuccessfulPackageVersionInfoMap = js.Dictionary[SuccessfulPackageVersionInfo] + type Timestamp = js.Date + type UpstreamRepositoryInfoList = js.Array[UpstreamRepositoryInfo] + type UpstreamRepositoryList = js.Array[UpstreamRepository] + + implicit final class CodeArtifactOps(private val service: CodeArtifact) extends AnyVal { + + @inline def associateExternalConnectionFuture( + params: AssociateExternalConnectionRequest + ): Future[AssociateExternalConnectionResult] = service.associateExternalConnection(params).promise().toFuture + @inline def copyPackageVersionsFuture(params: CopyPackageVersionsRequest): Future[CopyPackageVersionsResult] = + service.copyPackageVersions(params).promise().toFuture + @inline def createDomainFuture(params: CreateDomainRequest): Future[CreateDomainResult] = + service.createDomain(params).promise().toFuture + @inline def createRepositoryFuture(params: CreateRepositoryRequest): Future[CreateRepositoryResult] = + service.createRepository(params).promise().toFuture + @inline def deleteDomainFuture(params: DeleteDomainRequest): Future[DeleteDomainResult] = + service.deleteDomain(params).promise().toFuture + @inline def deleteDomainPermissionsPolicyFuture( + params: DeleteDomainPermissionsPolicyRequest + ): Future[DeleteDomainPermissionsPolicyResult] = service.deleteDomainPermissionsPolicy(params).promise().toFuture + @inline def deletePackageVersionsFuture(params: DeletePackageVersionsRequest): Future[DeletePackageVersionsResult] = + service.deletePackageVersions(params).promise().toFuture + @inline def deleteRepositoryFuture(params: DeleteRepositoryRequest): Future[DeleteRepositoryResult] = + service.deleteRepository(params).promise().toFuture + @inline def deleteRepositoryPermissionsPolicyFuture( + params: DeleteRepositoryPermissionsPolicyRequest + ): Future[DeleteRepositoryPermissionsPolicyResult] = + service.deleteRepositoryPermissionsPolicy(params).promise().toFuture + @inline def describeDomainFuture(params: DescribeDomainRequest): Future[DescribeDomainResult] = + service.describeDomain(params).promise().toFuture + @inline def describePackageVersionFuture( + params: DescribePackageVersionRequest + ): Future[DescribePackageVersionResult] = service.describePackageVersion(params).promise().toFuture + @inline def describeRepositoryFuture(params: DescribeRepositoryRequest): Future[DescribeRepositoryResult] = + service.describeRepository(params).promise().toFuture + @inline def disassociateExternalConnectionFuture( + params: DisassociateExternalConnectionRequest + ): Future[DisassociateExternalConnectionResult] = service.disassociateExternalConnection(params).promise().toFuture + @inline def disposePackageVersionsFuture( + params: DisposePackageVersionsRequest + ): Future[DisposePackageVersionsResult] = service.disposePackageVersions(params).promise().toFuture + @inline def getAuthorizationTokenFuture(params: GetAuthorizationTokenRequest): Future[GetAuthorizationTokenResult] = + service.getAuthorizationToken(params).promise().toFuture + @inline def getDomainPermissionsPolicyFuture( + params: GetDomainPermissionsPolicyRequest + ): Future[GetDomainPermissionsPolicyResult] = service.getDomainPermissionsPolicy(params).promise().toFuture + @inline def getPackageVersionAssetFuture( + params: GetPackageVersionAssetRequest + ): Future[GetPackageVersionAssetResult] = service.getPackageVersionAsset(params).promise().toFuture + @inline def getPackageVersionReadmeFuture( + params: GetPackageVersionReadmeRequest + ): Future[GetPackageVersionReadmeResult] = service.getPackageVersionReadme(params).promise().toFuture + @inline def getRepositoryEndpointFuture(params: GetRepositoryEndpointRequest): Future[GetRepositoryEndpointResult] = + service.getRepositoryEndpoint(params).promise().toFuture + @inline def getRepositoryPermissionsPolicyFuture( + params: GetRepositoryPermissionsPolicyRequest + ): Future[GetRepositoryPermissionsPolicyResult] = service.getRepositoryPermissionsPolicy(params).promise().toFuture + @inline def listDomainsFuture(params: ListDomainsRequest): Future[ListDomainsResult] = + service.listDomains(params).promise().toFuture + @inline def listPackageVersionAssetsFuture( + params: ListPackageVersionAssetsRequest + ): Future[ListPackageVersionAssetsResult] = service.listPackageVersionAssets(params).promise().toFuture + @inline def listPackageVersionDependenciesFuture( + params: ListPackageVersionDependenciesRequest + ): Future[ListPackageVersionDependenciesResult] = service.listPackageVersionDependencies(params).promise().toFuture + @inline def listPackageVersionsFuture(params: ListPackageVersionsRequest): Future[ListPackageVersionsResult] = + service.listPackageVersions(params).promise().toFuture + @inline def listPackagesFuture(params: ListPackagesRequest): Future[ListPackagesResult] = + service.listPackages(params).promise().toFuture + @inline def listRepositoriesFuture(params: ListRepositoriesRequest): Future[ListRepositoriesResult] = + service.listRepositories(params).promise().toFuture + @inline def listRepositoriesInDomainFuture( + params: ListRepositoriesInDomainRequest + ): Future[ListRepositoriesInDomainResult] = service.listRepositoriesInDomain(params).promise().toFuture + @inline def putDomainPermissionsPolicyFuture( + params: PutDomainPermissionsPolicyRequest + ): Future[PutDomainPermissionsPolicyResult] = service.putDomainPermissionsPolicy(params).promise().toFuture + @inline def putRepositoryPermissionsPolicyFuture( + params: PutRepositoryPermissionsPolicyRequest + ): Future[PutRepositoryPermissionsPolicyResult] = service.putRepositoryPermissionsPolicy(params).promise().toFuture + @inline def updatePackageVersionsStatusFuture( + params: UpdatePackageVersionsStatusRequest + ): Future[UpdatePackageVersionsStatusResult] = service.updatePackageVersionsStatus(params).promise().toFuture + @inline def updateRepositoryFuture(params: UpdateRepositoryRequest): Future[UpdateRepositoryResult] = + service.updateRepository(params).promise().toFuture + } +} + +package codeartifact { + @js.native + @JSImport("aws-sdk", "CodeArtifact", "AWS.CodeArtifact") + class CodeArtifact() extends js.Object { + def this(config: AWSConfig) = this() + + def associateExternalConnection( + params: AssociateExternalConnectionRequest + ): Request[AssociateExternalConnectionResult] = js.native + def copyPackageVersions(params: CopyPackageVersionsRequest): Request[CopyPackageVersionsResult] = js.native + def createDomain(params: CreateDomainRequest): Request[CreateDomainResult] = js.native + def createRepository(params: CreateRepositoryRequest): Request[CreateRepositoryResult] = js.native + def deleteDomain(params: DeleteDomainRequest): Request[DeleteDomainResult] = js.native + def deleteDomainPermissionsPolicy( + params: DeleteDomainPermissionsPolicyRequest + ): Request[DeleteDomainPermissionsPolicyResult] = js.native + def deletePackageVersions(params: DeletePackageVersionsRequest): Request[DeletePackageVersionsResult] = js.native + def deleteRepository(params: DeleteRepositoryRequest): Request[DeleteRepositoryResult] = js.native + def deleteRepositoryPermissionsPolicy( + params: DeleteRepositoryPermissionsPolicyRequest + ): Request[DeleteRepositoryPermissionsPolicyResult] = js.native + def describeDomain(params: DescribeDomainRequest): Request[DescribeDomainResult] = js.native + def describePackageVersion(params: DescribePackageVersionRequest): Request[DescribePackageVersionResult] = js.native + def describeRepository(params: DescribeRepositoryRequest): Request[DescribeRepositoryResult] = js.native + def disassociateExternalConnection( + params: DisassociateExternalConnectionRequest + ): Request[DisassociateExternalConnectionResult] = js.native + def disposePackageVersions(params: DisposePackageVersionsRequest): Request[DisposePackageVersionsResult] = js.native + def getAuthorizationToken(params: GetAuthorizationTokenRequest): Request[GetAuthorizationTokenResult] = js.native + def getDomainPermissionsPolicy( + params: GetDomainPermissionsPolicyRequest + ): Request[GetDomainPermissionsPolicyResult] = js.native + def getPackageVersionAsset(params: GetPackageVersionAssetRequest): Request[GetPackageVersionAssetResult] = js.native + def getPackageVersionReadme(params: GetPackageVersionReadmeRequest): Request[GetPackageVersionReadmeResult] = + js.native + def getRepositoryEndpoint(params: GetRepositoryEndpointRequest): Request[GetRepositoryEndpointResult] = js.native + def getRepositoryPermissionsPolicy( + params: GetRepositoryPermissionsPolicyRequest + ): Request[GetRepositoryPermissionsPolicyResult] = js.native + def listDomains(params: ListDomainsRequest): Request[ListDomainsResult] = js.native + def listPackageVersionAssets(params: ListPackageVersionAssetsRequest): Request[ListPackageVersionAssetsResult] = + js.native + def listPackageVersionDependencies( + params: ListPackageVersionDependenciesRequest + ): Request[ListPackageVersionDependenciesResult] = js.native + def listPackageVersions(params: ListPackageVersionsRequest): Request[ListPackageVersionsResult] = js.native + def listPackages(params: ListPackagesRequest): Request[ListPackagesResult] = js.native + def listRepositories(params: ListRepositoriesRequest): Request[ListRepositoriesResult] = js.native + def listRepositoriesInDomain(params: ListRepositoriesInDomainRequest): Request[ListRepositoriesInDomainResult] = + js.native + def putDomainPermissionsPolicy( + params: PutDomainPermissionsPolicyRequest + ): Request[PutDomainPermissionsPolicyResult] = js.native + def putRepositoryPermissionsPolicy( + params: PutRepositoryPermissionsPolicyRequest + ): Request[PutRepositoryPermissionsPolicyResult] = js.native + def updatePackageVersionsStatus( + params: UpdatePackageVersionsStatusRequest + ): Request[UpdatePackageVersionsStatusResult] = js.native + def updateRepository(params: UpdateRepositoryRequest): Request[UpdateRepositoryResult] = js.native + } + + /** + * Contains details about a package version asset. + */ + @js.native + trait AssetSummary extends js.Object { + var name: AssetName + var hashes: js.UndefOr[AssetHashes] + var size: js.UndefOr[LongOptional] + } + + object AssetSummary { + @inline + def apply( + name: AssetName, + hashes: js.UndefOr[AssetHashes] = js.undefined, + size: js.UndefOr[LongOptional] = js.undefined + ): AssetSummary = { + val __obj = js.Dynamic.literal( + "name" -> name.asInstanceOf[js.Any] + ) + + hashes.foreach(__v => __obj.updateDynamic("hashes")(__v.asInstanceOf[js.Any])) + size.foreach(__v => __obj.updateDynamic("size")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[AssetSummary] + } + } + + @js.native + trait AssociateExternalConnectionRequest extends js.Object { + var domain: DomainName + var externalConnection: ExternalConnectionName + var repository: RepositoryName + var domainOwner: js.UndefOr[AccountId] + } + + object AssociateExternalConnectionRequest { + @inline + def apply( + domain: DomainName, + externalConnection: ExternalConnectionName, + repository: RepositoryName, + domainOwner: js.UndefOr[AccountId] = js.undefined + ): AssociateExternalConnectionRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any], + "externalConnection" -> externalConnection.asInstanceOf[js.Any], + "repository" -> repository.asInstanceOf[js.Any] + ) + + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[AssociateExternalConnectionRequest] + } + } + + @js.native + trait AssociateExternalConnectionResult extends js.Object { + var repository: js.UndefOr[RepositoryDescription] + } + + object AssociateExternalConnectionResult { + @inline + def apply( + repository: js.UndefOr[RepositoryDescription] = js.undefined + ): AssociateExternalConnectionResult = { + val __obj = js.Dynamic.literal() + repository.foreach(__v => __obj.updateDynamic("repository")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[AssociateExternalConnectionResult] + } + } + + @js.native + trait CopyPackageVersionsRequest extends js.Object { + var destinationRepository: RepositoryName + var domain: DomainName + var format: PackageFormat + var `package`: PackageName + var sourceRepository: RepositoryName + var allowOverwrite: js.UndefOr[BooleanOptional] + var domainOwner: js.UndefOr[AccountId] + var includeFromUpstream: js.UndefOr[BooleanOptional] + var namespace: js.UndefOr[PackageNamespace] + var versionRevisions: js.UndefOr[PackageVersionRevisionMap] + var versions: js.UndefOr[PackageVersionList] + } + + object CopyPackageVersionsRequest { + @inline + def apply( + destinationRepository: RepositoryName, + domain: DomainName, + format: PackageFormat, + `package`: PackageName, + sourceRepository: RepositoryName, + allowOverwrite: js.UndefOr[BooleanOptional] = js.undefined, + domainOwner: js.UndefOr[AccountId] = js.undefined, + includeFromUpstream: js.UndefOr[BooleanOptional] = js.undefined, + namespace: js.UndefOr[PackageNamespace] = js.undefined, + versionRevisions: js.UndefOr[PackageVersionRevisionMap] = js.undefined, + versions: js.UndefOr[PackageVersionList] = js.undefined + ): CopyPackageVersionsRequest = { + val __obj = js.Dynamic.literal( + "destinationRepository" -> destinationRepository.asInstanceOf[js.Any], + "domain" -> domain.asInstanceOf[js.Any], + "format" -> format.asInstanceOf[js.Any], + "package" -> `package`.asInstanceOf[js.Any], + "sourceRepository" -> sourceRepository.asInstanceOf[js.Any] + ) + + allowOverwrite.foreach(__v => __obj.updateDynamic("allowOverwrite")(__v.asInstanceOf[js.Any])) + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + includeFromUpstream.foreach(__v => __obj.updateDynamic("includeFromUpstream")(__v.asInstanceOf[js.Any])) + namespace.foreach(__v => __obj.updateDynamic("namespace")(__v.asInstanceOf[js.Any])) + versionRevisions.foreach(__v => __obj.updateDynamic("versionRevisions")(__v.asInstanceOf[js.Any])) + versions.foreach(__v => __obj.updateDynamic("versions")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CopyPackageVersionsRequest] + } + } + + @js.native + trait CopyPackageVersionsResult extends js.Object { + var failedVersions: js.UndefOr[PackageVersionErrorMap] + var successfulVersions: js.UndefOr[SuccessfulPackageVersionInfoMap] + } + + object CopyPackageVersionsResult { + @inline + def apply( + failedVersions: js.UndefOr[PackageVersionErrorMap] = js.undefined, + successfulVersions: js.UndefOr[SuccessfulPackageVersionInfoMap] = js.undefined + ): CopyPackageVersionsResult = { + val __obj = js.Dynamic.literal() + failedVersions.foreach(__v => __obj.updateDynamic("failedVersions")(__v.asInstanceOf[js.Any])) + successfulVersions.foreach(__v => __obj.updateDynamic("successfulVersions")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CopyPackageVersionsResult] + } + } + + @js.native + trait CreateDomainRequest extends js.Object { + var domain: DomainName + var encryptionKey: js.UndefOr[Arn] + } + + object CreateDomainRequest { + @inline + def apply( + domain: DomainName, + encryptionKey: js.UndefOr[Arn] = js.undefined + ): CreateDomainRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any] + ) + + encryptionKey.foreach(__v => __obj.updateDynamic("encryptionKey")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateDomainRequest] + } + } + + @js.native + trait CreateDomainResult extends js.Object { + var domain: js.UndefOr[DomainDescription] + } + + object CreateDomainResult { + @inline + def apply( + domain: js.UndefOr[DomainDescription] = js.undefined + ): CreateDomainResult = { + val __obj = js.Dynamic.literal() + domain.foreach(__v => __obj.updateDynamic("domain")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateDomainResult] + } + } + + @js.native + trait CreateRepositoryRequest extends js.Object { + var domain: DomainName + var repository: RepositoryName + var description: js.UndefOr[Description] + var domainOwner: js.UndefOr[AccountId] + var upstreams: js.UndefOr[UpstreamRepositoryList] + } + + object CreateRepositoryRequest { + @inline + def apply( + domain: DomainName, + repository: RepositoryName, + description: js.UndefOr[Description] = js.undefined, + domainOwner: js.UndefOr[AccountId] = js.undefined, + upstreams: js.UndefOr[UpstreamRepositoryList] = js.undefined + ): CreateRepositoryRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any], + "repository" -> repository.asInstanceOf[js.Any] + ) + + description.foreach(__v => __obj.updateDynamic("description")(__v.asInstanceOf[js.Any])) + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + upstreams.foreach(__v => __obj.updateDynamic("upstreams")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateRepositoryRequest] + } + } + + @js.native + trait CreateRepositoryResult extends js.Object { + var repository: js.UndefOr[RepositoryDescription] + } + + object CreateRepositoryResult { + @inline + def apply( + repository: js.UndefOr[RepositoryDescription] = js.undefined + ): CreateRepositoryResult = { + val __obj = js.Dynamic.literal() + repository.foreach(__v => __obj.updateDynamic("repository")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateRepositoryResult] + } + } + + @js.native + trait DeleteDomainPermissionsPolicyRequest extends js.Object { + var domain: DomainName + var domainOwner: js.UndefOr[AccountId] + var policyRevision: js.UndefOr[PolicyRevision] + } + + object DeleteDomainPermissionsPolicyRequest { + @inline + def apply( + domain: DomainName, + domainOwner: js.UndefOr[AccountId] = js.undefined, + policyRevision: js.UndefOr[PolicyRevision] = js.undefined + ): DeleteDomainPermissionsPolicyRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any] + ) + + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + policyRevision.foreach(__v => __obj.updateDynamic("policyRevision")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DeleteDomainPermissionsPolicyRequest] + } + } + + @js.native + trait DeleteDomainPermissionsPolicyResult extends js.Object { + var policy: js.UndefOr[ResourcePolicy] + } + + object DeleteDomainPermissionsPolicyResult { + @inline + def apply( + policy: js.UndefOr[ResourcePolicy] = js.undefined + ): DeleteDomainPermissionsPolicyResult = { + val __obj = js.Dynamic.literal() + policy.foreach(__v => __obj.updateDynamic("policy")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DeleteDomainPermissionsPolicyResult] + } + } + + @js.native + trait DeleteDomainRequest extends js.Object { + var domain: DomainName + var domainOwner: js.UndefOr[AccountId] + } + + object DeleteDomainRequest { + @inline + def apply( + domain: DomainName, + domainOwner: js.UndefOr[AccountId] = js.undefined + ): DeleteDomainRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any] + ) + + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DeleteDomainRequest] + } + } + + @js.native + trait DeleteDomainResult extends js.Object { + var domain: js.UndefOr[DomainDescription] + } + + object DeleteDomainResult { + @inline + def apply( + domain: js.UndefOr[DomainDescription] = js.undefined + ): DeleteDomainResult = { + val __obj = js.Dynamic.literal() + domain.foreach(__v => __obj.updateDynamic("domain")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DeleteDomainResult] + } + } + + @js.native + trait DeletePackageVersionsRequest extends js.Object { + var domain: DomainName + var format: PackageFormat + var `package`: PackageName + var repository: RepositoryName + var versions: PackageVersionList + var domainOwner: js.UndefOr[AccountId] + var expectedStatus: js.UndefOr[PackageVersionStatus] + var namespace: js.UndefOr[PackageNamespace] + } + + object DeletePackageVersionsRequest { + @inline + def apply( + domain: DomainName, + format: PackageFormat, + `package`: PackageName, + repository: RepositoryName, + versions: PackageVersionList, + domainOwner: js.UndefOr[AccountId] = js.undefined, + expectedStatus: js.UndefOr[PackageVersionStatus] = js.undefined, + namespace: js.UndefOr[PackageNamespace] = js.undefined + ): DeletePackageVersionsRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any], + "format" -> format.asInstanceOf[js.Any], + "package" -> `package`.asInstanceOf[js.Any], + "repository" -> repository.asInstanceOf[js.Any], + "versions" -> versions.asInstanceOf[js.Any] + ) + + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + expectedStatus.foreach(__v => __obj.updateDynamic("expectedStatus")(__v.asInstanceOf[js.Any])) + namespace.foreach(__v => __obj.updateDynamic("namespace")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DeletePackageVersionsRequest] + } + } + + @js.native + trait DeletePackageVersionsResult extends js.Object { + var failedVersions: js.UndefOr[PackageVersionErrorMap] + var successfulVersions: js.UndefOr[SuccessfulPackageVersionInfoMap] + } + + object DeletePackageVersionsResult { + @inline + def apply( + failedVersions: js.UndefOr[PackageVersionErrorMap] = js.undefined, + successfulVersions: js.UndefOr[SuccessfulPackageVersionInfoMap] = js.undefined + ): DeletePackageVersionsResult = { + val __obj = js.Dynamic.literal() + failedVersions.foreach(__v => __obj.updateDynamic("failedVersions")(__v.asInstanceOf[js.Any])) + successfulVersions.foreach(__v => __obj.updateDynamic("successfulVersions")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DeletePackageVersionsResult] + } + } + + @js.native + trait DeleteRepositoryPermissionsPolicyRequest extends js.Object { + var domain: DomainName + var repository: RepositoryName + var domainOwner: js.UndefOr[AccountId] + var policyRevision: js.UndefOr[PolicyRevision] + } + + object DeleteRepositoryPermissionsPolicyRequest { + @inline + def apply( + domain: DomainName, + repository: RepositoryName, + domainOwner: js.UndefOr[AccountId] = js.undefined, + policyRevision: js.UndefOr[PolicyRevision] = js.undefined + ): DeleteRepositoryPermissionsPolicyRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any], + "repository" -> repository.asInstanceOf[js.Any] + ) + + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + policyRevision.foreach(__v => __obj.updateDynamic("policyRevision")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DeleteRepositoryPermissionsPolicyRequest] + } + } + + @js.native + trait DeleteRepositoryPermissionsPolicyResult extends js.Object { + var policy: js.UndefOr[ResourcePolicy] + } + + object DeleteRepositoryPermissionsPolicyResult { + @inline + def apply( + policy: js.UndefOr[ResourcePolicy] = js.undefined + ): DeleteRepositoryPermissionsPolicyResult = { + val __obj = js.Dynamic.literal() + policy.foreach(__v => __obj.updateDynamic("policy")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DeleteRepositoryPermissionsPolicyResult] + } + } + + @js.native + trait DeleteRepositoryRequest extends js.Object { + var domain: DomainName + var repository: RepositoryName + var domainOwner: js.UndefOr[AccountId] + } + + object DeleteRepositoryRequest { + @inline + def apply( + domain: DomainName, + repository: RepositoryName, + domainOwner: js.UndefOr[AccountId] = js.undefined + ): DeleteRepositoryRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any], + "repository" -> repository.asInstanceOf[js.Any] + ) + + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DeleteRepositoryRequest] + } + } + + @js.native + trait DeleteRepositoryResult extends js.Object { + var repository: js.UndefOr[RepositoryDescription] + } + + object DeleteRepositoryResult { + @inline + def apply( + repository: js.UndefOr[RepositoryDescription] = js.undefined + ): DeleteRepositoryResult = { + val __obj = js.Dynamic.literal() + repository.foreach(__v => __obj.updateDynamic("repository")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DeleteRepositoryResult] + } + } + + @js.native + trait DescribeDomainRequest extends js.Object { + var domain: DomainName + var domainOwner: js.UndefOr[AccountId] + } + + object DescribeDomainRequest { + @inline + def apply( + domain: DomainName, + domainOwner: js.UndefOr[AccountId] = js.undefined + ): DescribeDomainRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any] + ) + + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DescribeDomainRequest] + } + } + + @js.native + trait DescribeDomainResult extends js.Object { + var domain: js.UndefOr[DomainDescription] + } + + object DescribeDomainResult { + @inline + def apply( + domain: js.UndefOr[DomainDescription] = js.undefined + ): DescribeDomainResult = { + val __obj = js.Dynamic.literal() + domain.foreach(__v => __obj.updateDynamic("domain")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DescribeDomainResult] + } + } + + @js.native + trait DescribePackageVersionRequest extends js.Object { + var domain: DomainName + var format: PackageFormat + var `package`: PackageName + var packageVersion: PackageVersion + var repository: RepositoryName + var domainOwner: js.UndefOr[AccountId] + var namespace: js.UndefOr[PackageNamespace] + } + + object DescribePackageVersionRequest { + @inline + def apply( + domain: DomainName, + format: PackageFormat, + `package`: PackageName, + packageVersion: PackageVersion, + repository: RepositoryName, + domainOwner: js.UndefOr[AccountId] = js.undefined, + namespace: js.UndefOr[PackageNamespace] = js.undefined + ): DescribePackageVersionRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any], + "format" -> format.asInstanceOf[js.Any], + "package" -> `package`.asInstanceOf[js.Any], + "packageVersion" -> packageVersion.asInstanceOf[js.Any], + "repository" -> repository.asInstanceOf[js.Any] + ) + + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + namespace.foreach(__v => __obj.updateDynamic("namespace")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DescribePackageVersionRequest] + } + } + + @js.native + trait DescribePackageVersionResult extends js.Object { + var packageVersion: PackageVersionDescription + } + + object DescribePackageVersionResult { + @inline + def apply( + packageVersion: PackageVersionDescription + ): DescribePackageVersionResult = { + val __obj = js.Dynamic.literal( + "packageVersion" -> packageVersion.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DescribePackageVersionResult] + } + } + + @js.native + trait DescribeRepositoryRequest extends js.Object { + var domain: DomainName + var repository: RepositoryName + var domainOwner: js.UndefOr[AccountId] + } + + object DescribeRepositoryRequest { + @inline + def apply( + domain: DomainName, + repository: RepositoryName, + domainOwner: js.UndefOr[AccountId] = js.undefined + ): DescribeRepositoryRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any], + "repository" -> repository.asInstanceOf[js.Any] + ) + + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DescribeRepositoryRequest] + } + } + + @js.native + trait DescribeRepositoryResult extends js.Object { + var repository: js.UndefOr[RepositoryDescription] + } + + object DescribeRepositoryResult { + @inline + def apply( + repository: js.UndefOr[RepositoryDescription] = js.undefined + ): DescribeRepositoryResult = { + val __obj = js.Dynamic.literal() + repository.foreach(__v => __obj.updateDynamic("repository")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DescribeRepositoryResult] + } + } + + @js.native + trait DisassociateExternalConnectionRequest extends js.Object { + var domain: DomainName + var externalConnection: ExternalConnectionName + var repository: RepositoryName + var domainOwner: js.UndefOr[AccountId] + } + + object DisassociateExternalConnectionRequest { + @inline + def apply( + domain: DomainName, + externalConnection: ExternalConnectionName, + repository: RepositoryName, + domainOwner: js.UndefOr[AccountId] = js.undefined + ): DisassociateExternalConnectionRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any], + "externalConnection" -> externalConnection.asInstanceOf[js.Any], + "repository" -> repository.asInstanceOf[js.Any] + ) + + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DisassociateExternalConnectionRequest] + } + } + + @js.native + trait DisassociateExternalConnectionResult extends js.Object { + var repository: js.UndefOr[RepositoryDescription] + } + + object DisassociateExternalConnectionResult { + @inline + def apply( + repository: js.UndefOr[RepositoryDescription] = js.undefined + ): DisassociateExternalConnectionResult = { + val __obj = js.Dynamic.literal() + repository.foreach(__v => __obj.updateDynamic("repository")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DisassociateExternalConnectionResult] + } + } + + @js.native + trait DisposePackageVersionsRequest extends js.Object { + var domain: DomainName + var format: PackageFormat + var `package`: PackageName + var repository: RepositoryName + var versions: PackageVersionList + var domainOwner: js.UndefOr[AccountId] + var expectedStatus: js.UndefOr[PackageVersionStatus] + var namespace: js.UndefOr[PackageNamespace] + var versionRevisions: js.UndefOr[PackageVersionRevisionMap] + } + + object DisposePackageVersionsRequest { + @inline + def apply( + domain: DomainName, + format: PackageFormat, + `package`: PackageName, + repository: RepositoryName, + versions: PackageVersionList, + domainOwner: js.UndefOr[AccountId] = js.undefined, + expectedStatus: js.UndefOr[PackageVersionStatus] = js.undefined, + namespace: js.UndefOr[PackageNamespace] = js.undefined, + versionRevisions: js.UndefOr[PackageVersionRevisionMap] = js.undefined + ): DisposePackageVersionsRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any], + "format" -> format.asInstanceOf[js.Any], + "package" -> `package`.asInstanceOf[js.Any], + "repository" -> repository.asInstanceOf[js.Any], + "versions" -> versions.asInstanceOf[js.Any] + ) + + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + expectedStatus.foreach(__v => __obj.updateDynamic("expectedStatus")(__v.asInstanceOf[js.Any])) + namespace.foreach(__v => __obj.updateDynamic("namespace")(__v.asInstanceOf[js.Any])) + versionRevisions.foreach(__v => __obj.updateDynamic("versionRevisions")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DisposePackageVersionsRequest] + } + } + + @js.native + trait DisposePackageVersionsResult extends js.Object { + var failedVersions: js.UndefOr[PackageVersionErrorMap] + var successfulVersions: js.UndefOr[SuccessfulPackageVersionInfoMap] + } + + object DisposePackageVersionsResult { + @inline + def apply( + failedVersions: js.UndefOr[PackageVersionErrorMap] = js.undefined, + successfulVersions: js.UndefOr[SuccessfulPackageVersionInfoMap] = js.undefined + ): DisposePackageVersionsResult = { + val __obj = js.Dynamic.literal() + failedVersions.foreach(__v => __obj.updateDynamic("failedVersions")(__v.asInstanceOf[js.Any])) + successfulVersions.foreach(__v => __obj.updateDynamic("successfulVersions")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DisposePackageVersionsResult] + } + } + + /** + * Information about a domain. A domain is a container for repositories. When you create a domain, it is empty until you add one or more repositories. + */ + @js.native + trait DomainDescription extends js.Object { + var arn: js.UndefOr[Arn] + var assetSizeBytes: js.UndefOr[Double] + var createdTime: js.UndefOr[Timestamp] + var encryptionKey: js.UndefOr[Arn] + var name: js.UndefOr[DomainName] + var owner: js.UndefOr[AccountId] + var repositoryCount: js.UndefOr[Int] + var status: js.UndefOr[DomainStatus] + } + + object DomainDescription { + @inline + def apply( + arn: js.UndefOr[Arn] = js.undefined, + assetSizeBytes: js.UndefOr[Double] = js.undefined, + createdTime: js.UndefOr[Timestamp] = js.undefined, + encryptionKey: js.UndefOr[Arn] = js.undefined, + name: js.UndefOr[DomainName] = js.undefined, + owner: js.UndefOr[AccountId] = js.undefined, + repositoryCount: js.UndefOr[Int] = js.undefined, + status: js.UndefOr[DomainStatus] = js.undefined + ): DomainDescription = { + val __obj = js.Dynamic.literal() + arn.foreach(__v => __obj.updateDynamic("arn")(__v.asInstanceOf[js.Any])) + assetSizeBytes.foreach(__v => __obj.updateDynamic("assetSizeBytes")(__v.asInstanceOf[js.Any])) + createdTime.foreach(__v => __obj.updateDynamic("createdTime")(__v.asInstanceOf[js.Any])) + encryptionKey.foreach(__v => __obj.updateDynamic("encryptionKey")(__v.asInstanceOf[js.Any])) + name.foreach(__v => __obj.updateDynamic("name")(__v.asInstanceOf[js.Any])) + owner.foreach(__v => __obj.updateDynamic("owner")(__v.asInstanceOf[js.Any])) + repositoryCount.foreach(__v => __obj.updateDynamic("repositoryCount")(__v.asInstanceOf[js.Any])) + status.foreach(__v => __obj.updateDynamic("status")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DomainDescription] + } + } + + @js.native + sealed trait DomainStatus extends js.Any + object DomainStatus extends js.Object { + val Active = "Active".asInstanceOf[DomainStatus] + val Deleted = "Deleted".asInstanceOf[DomainStatus] + + val values = js.Object.freeze(js.Array(Active, Deleted)) + } + + /** + * Information about a domain, including its name, Amazon Resource Name (ARN), and status. The ListDomains operation returns a list of DomainSummary objects. + */ + @js.native + trait DomainSummary extends js.Object { + var arn: js.UndefOr[Arn] + var createdTime: js.UndefOr[Timestamp] + var encryptionKey: js.UndefOr[Arn] + var name: js.UndefOr[DomainName] + var owner: js.UndefOr[AccountId] + var status: js.UndefOr[DomainStatus] + } + + object DomainSummary { + @inline + def apply( + arn: js.UndefOr[Arn] = js.undefined, + createdTime: js.UndefOr[Timestamp] = js.undefined, + encryptionKey: js.UndefOr[Arn] = js.undefined, + name: js.UndefOr[DomainName] = js.undefined, + owner: js.UndefOr[AccountId] = js.undefined, + status: js.UndefOr[DomainStatus] = js.undefined + ): DomainSummary = { + val __obj = js.Dynamic.literal() + arn.foreach(__v => __obj.updateDynamic("arn")(__v.asInstanceOf[js.Any])) + createdTime.foreach(__v => __obj.updateDynamic("createdTime")(__v.asInstanceOf[js.Any])) + encryptionKey.foreach(__v => __obj.updateDynamic("encryptionKey")(__v.asInstanceOf[js.Any])) + name.foreach(__v => __obj.updateDynamic("name")(__v.asInstanceOf[js.Any])) + owner.foreach(__v => __obj.updateDynamic("owner")(__v.asInstanceOf[js.Any])) + status.foreach(__v => __obj.updateDynamic("status")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DomainSummary] + } + } + + @js.native + sealed trait ExternalConnectionStatus extends js.Any + object ExternalConnectionStatus extends js.Object { + val Available = "Available".asInstanceOf[ExternalConnectionStatus] + + val values = js.Object.freeze(js.Array(Available)) + } + + @js.native + trait GetAuthorizationTokenRequest extends js.Object { + var domain: DomainName + var domainOwner: js.UndefOr[AccountId] + var durationSeconds: js.UndefOr[AuthorizationTokenDurationSeconds] + } + + object GetAuthorizationTokenRequest { + @inline + def apply( + domain: DomainName, + domainOwner: js.UndefOr[AccountId] = js.undefined, + durationSeconds: js.UndefOr[AuthorizationTokenDurationSeconds] = js.undefined + ): GetAuthorizationTokenRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any] + ) + + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + durationSeconds.foreach(__v => __obj.updateDynamic("durationSeconds")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetAuthorizationTokenRequest] + } + } + + @js.native + trait GetAuthorizationTokenResult extends js.Object { + var authorizationToken: js.UndefOr[String] + var expiration: js.UndefOr[Timestamp] + } + + object GetAuthorizationTokenResult { + @inline + def apply( + authorizationToken: js.UndefOr[String] = js.undefined, + expiration: js.UndefOr[Timestamp] = js.undefined + ): GetAuthorizationTokenResult = { + val __obj = js.Dynamic.literal() + authorizationToken.foreach(__v => __obj.updateDynamic("authorizationToken")(__v.asInstanceOf[js.Any])) + expiration.foreach(__v => __obj.updateDynamic("expiration")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetAuthorizationTokenResult] + } + } + + @js.native + trait GetDomainPermissionsPolicyRequest extends js.Object { + var domain: DomainName + var domainOwner: js.UndefOr[AccountId] + } + + object GetDomainPermissionsPolicyRequest { + @inline + def apply( + domain: DomainName, + domainOwner: js.UndefOr[AccountId] = js.undefined + ): GetDomainPermissionsPolicyRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any] + ) + + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetDomainPermissionsPolicyRequest] + } + } + + @js.native + trait GetDomainPermissionsPolicyResult extends js.Object { + var policy: js.UndefOr[ResourcePolicy] + } + + object GetDomainPermissionsPolicyResult { + @inline + def apply( + policy: js.UndefOr[ResourcePolicy] = js.undefined + ): GetDomainPermissionsPolicyResult = { + val __obj = js.Dynamic.literal() + policy.foreach(__v => __obj.updateDynamic("policy")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetDomainPermissionsPolicyResult] + } + } + + @js.native + trait GetPackageVersionAssetRequest extends js.Object { + var asset: AssetName + var domain: DomainName + var format: PackageFormat + var `package`: PackageName + var packageVersion: PackageVersion + var repository: RepositoryName + var domainOwner: js.UndefOr[AccountId] + var namespace: js.UndefOr[PackageNamespace] + var packageVersionRevision: js.UndefOr[PackageVersionRevision] + } + + object GetPackageVersionAssetRequest { + @inline + def apply( + asset: AssetName, + domain: DomainName, + format: PackageFormat, + `package`: PackageName, + packageVersion: PackageVersion, + repository: RepositoryName, + domainOwner: js.UndefOr[AccountId] = js.undefined, + namespace: js.UndefOr[PackageNamespace] = js.undefined, + packageVersionRevision: js.UndefOr[PackageVersionRevision] = js.undefined + ): GetPackageVersionAssetRequest = { + val __obj = js.Dynamic.literal( + "asset" -> asset.asInstanceOf[js.Any], + "domain" -> domain.asInstanceOf[js.Any], + "format" -> format.asInstanceOf[js.Any], + "package" -> `package`.asInstanceOf[js.Any], + "packageVersion" -> packageVersion.asInstanceOf[js.Any], + "repository" -> repository.asInstanceOf[js.Any] + ) + + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + namespace.foreach(__v => __obj.updateDynamic("namespace")(__v.asInstanceOf[js.Any])) + packageVersionRevision.foreach(__v => __obj.updateDynamic("packageVersionRevision")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetPackageVersionAssetRequest] + } + } + + @js.native + trait GetPackageVersionAssetResult extends js.Object { + var asset: js.UndefOr[Asset] + var assetName: js.UndefOr[AssetName] + var packageVersion: js.UndefOr[PackageVersion] + var packageVersionRevision: js.UndefOr[PackageVersionRevision] + } + + object GetPackageVersionAssetResult { + @inline + def apply( + asset: js.UndefOr[Asset] = js.undefined, + assetName: js.UndefOr[AssetName] = js.undefined, + packageVersion: js.UndefOr[PackageVersion] = js.undefined, + packageVersionRevision: js.UndefOr[PackageVersionRevision] = js.undefined + ): GetPackageVersionAssetResult = { + val __obj = js.Dynamic.literal() + asset.foreach(__v => __obj.updateDynamic("asset")(__v.asInstanceOf[js.Any])) + assetName.foreach(__v => __obj.updateDynamic("assetName")(__v.asInstanceOf[js.Any])) + packageVersion.foreach(__v => __obj.updateDynamic("packageVersion")(__v.asInstanceOf[js.Any])) + packageVersionRevision.foreach(__v => __obj.updateDynamic("packageVersionRevision")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetPackageVersionAssetResult] + } + } + + @js.native + trait GetPackageVersionReadmeRequest extends js.Object { + var domain: DomainName + var format: PackageFormat + var `package`: PackageName + var packageVersion: PackageVersion + var repository: RepositoryName + var domainOwner: js.UndefOr[AccountId] + var namespace: js.UndefOr[PackageNamespace] + } + + object GetPackageVersionReadmeRequest { + @inline + def apply( + domain: DomainName, + format: PackageFormat, + `package`: PackageName, + packageVersion: PackageVersion, + repository: RepositoryName, + domainOwner: js.UndefOr[AccountId] = js.undefined, + namespace: js.UndefOr[PackageNamespace] = js.undefined + ): GetPackageVersionReadmeRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any], + "format" -> format.asInstanceOf[js.Any], + "package" -> `package`.asInstanceOf[js.Any], + "packageVersion" -> packageVersion.asInstanceOf[js.Any], + "repository" -> repository.asInstanceOf[js.Any] + ) + + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + namespace.foreach(__v => __obj.updateDynamic("namespace")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetPackageVersionReadmeRequest] + } + } + + @js.native + trait GetPackageVersionReadmeResult extends js.Object { + var format: js.UndefOr[PackageFormat] + var namespace: js.UndefOr[PackageNamespace] + var `package`: js.UndefOr[PackageName] + var readme: js.UndefOr[String] + var version: js.UndefOr[PackageVersion] + var versionRevision: js.UndefOr[PackageVersionRevision] + } + + object GetPackageVersionReadmeResult { + @inline + def apply( + format: js.UndefOr[PackageFormat] = js.undefined, + namespace: js.UndefOr[PackageNamespace] = js.undefined, + `package`: js.UndefOr[PackageName] = js.undefined, + readme: js.UndefOr[String] = js.undefined, + version: js.UndefOr[PackageVersion] = js.undefined, + versionRevision: js.UndefOr[PackageVersionRevision] = js.undefined + ): GetPackageVersionReadmeResult = { + val __obj = js.Dynamic.literal() + format.foreach(__v => __obj.updateDynamic("format")(__v.asInstanceOf[js.Any])) + namespace.foreach(__v => __obj.updateDynamic("namespace")(__v.asInstanceOf[js.Any])) + `package`.foreach(__v => __obj.updateDynamic("package")(__v.asInstanceOf[js.Any])) + readme.foreach(__v => __obj.updateDynamic("readme")(__v.asInstanceOf[js.Any])) + version.foreach(__v => __obj.updateDynamic("version")(__v.asInstanceOf[js.Any])) + versionRevision.foreach(__v => __obj.updateDynamic("versionRevision")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetPackageVersionReadmeResult] + } + } + + @js.native + trait GetRepositoryEndpointRequest extends js.Object { + var domain: DomainName + var format: PackageFormat + var repository: RepositoryName + var domainOwner: js.UndefOr[AccountId] + } + + object GetRepositoryEndpointRequest { + @inline + def apply( + domain: DomainName, + format: PackageFormat, + repository: RepositoryName, + domainOwner: js.UndefOr[AccountId] = js.undefined + ): GetRepositoryEndpointRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any], + "format" -> format.asInstanceOf[js.Any], + "repository" -> repository.asInstanceOf[js.Any] + ) + + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetRepositoryEndpointRequest] + } + } + + @js.native + trait GetRepositoryEndpointResult extends js.Object { + var repositoryEndpoint: js.UndefOr[String] + } + + object GetRepositoryEndpointResult { + @inline + def apply( + repositoryEndpoint: js.UndefOr[String] = js.undefined + ): GetRepositoryEndpointResult = { + val __obj = js.Dynamic.literal() + repositoryEndpoint.foreach(__v => __obj.updateDynamic("repositoryEndpoint")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetRepositoryEndpointResult] + } + } + + @js.native + trait GetRepositoryPermissionsPolicyRequest extends js.Object { + var domain: DomainName + var repository: RepositoryName + var domainOwner: js.UndefOr[AccountId] + } + + object GetRepositoryPermissionsPolicyRequest { + @inline + def apply( + domain: DomainName, + repository: RepositoryName, + domainOwner: js.UndefOr[AccountId] = js.undefined + ): GetRepositoryPermissionsPolicyRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any], + "repository" -> repository.asInstanceOf[js.Any] + ) + + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetRepositoryPermissionsPolicyRequest] + } + } + + @js.native + trait GetRepositoryPermissionsPolicyResult extends js.Object { + var policy: js.UndefOr[ResourcePolicy] + } + + object GetRepositoryPermissionsPolicyResult { + @inline + def apply( + policy: js.UndefOr[ResourcePolicy] = js.undefined + ): GetRepositoryPermissionsPolicyResult = { + val __obj = js.Dynamic.literal() + policy.foreach(__v => __obj.updateDynamic("policy")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetRepositoryPermissionsPolicyResult] + } + } + + @js.native + sealed trait HashAlgorithm extends js.Any + object HashAlgorithm extends js.Object { + val MD5 = "MD5".asInstanceOf[HashAlgorithm] + val `SHA-1` = "SHA-1".asInstanceOf[HashAlgorithm] + val `SHA-256` = "SHA-256".asInstanceOf[HashAlgorithm] + val `SHA-512` = "SHA-512".asInstanceOf[HashAlgorithm] + + val values = js.Object.freeze(js.Array(MD5, `SHA-1`, `SHA-256`, `SHA-512`)) + } + + /** + * Details of the license data. + */ + @js.native + trait LicenseInfo extends js.Object { + var name: js.UndefOr[String] + var url: js.UndefOr[String] + } + + object LicenseInfo { + @inline + def apply( + name: js.UndefOr[String] = js.undefined, + url: js.UndefOr[String] = js.undefined + ): LicenseInfo = { + val __obj = js.Dynamic.literal() + name.foreach(__v => __obj.updateDynamic("name")(__v.asInstanceOf[js.Any])) + url.foreach(__v => __obj.updateDynamic("url")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[LicenseInfo] + } + } + + @js.native + trait ListDomainsRequest extends js.Object { + var maxResults: js.UndefOr[ListDomainsMaxResults] + var nextToken: js.UndefOr[PaginationToken] + } + + object ListDomainsRequest { + @inline + def apply( + maxResults: js.UndefOr[ListDomainsMaxResults] = js.undefined, + nextToken: js.UndefOr[PaginationToken] = js.undefined + ): ListDomainsRequest = { + val __obj = js.Dynamic.literal() + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListDomainsRequest] + } + } + + @js.native + trait ListDomainsResult extends js.Object { + var domains: js.UndefOr[DomainSummaryList] + var nextToken: js.UndefOr[PaginationToken] + } + + object ListDomainsResult { + @inline + def apply( + domains: js.UndefOr[DomainSummaryList] = js.undefined, + nextToken: js.UndefOr[PaginationToken] = js.undefined + ): ListDomainsResult = { + val __obj = js.Dynamic.literal() + domains.foreach(__v => __obj.updateDynamic("domains")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListDomainsResult] + } + } + + @js.native + trait ListPackageVersionAssetsRequest extends js.Object { + var domain: DomainName + var format: PackageFormat + var `package`: PackageName + var packageVersion: PackageVersion + var repository: RepositoryName + var domainOwner: js.UndefOr[AccountId] + var maxResults: js.UndefOr[ListPackageVersionAssetsMaxResults] + var namespace: js.UndefOr[PackageNamespace] + var nextToken: js.UndefOr[PaginationToken] + } + + object ListPackageVersionAssetsRequest { + @inline + def apply( + domain: DomainName, + format: PackageFormat, + `package`: PackageName, + packageVersion: PackageVersion, + repository: RepositoryName, + domainOwner: js.UndefOr[AccountId] = js.undefined, + maxResults: js.UndefOr[ListPackageVersionAssetsMaxResults] = js.undefined, + namespace: js.UndefOr[PackageNamespace] = js.undefined, + nextToken: js.UndefOr[PaginationToken] = js.undefined + ): ListPackageVersionAssetsRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any], + "format" -> format.asInstanceOf[js.Any], + "package" -> `package`.asInstanceOf[js.Any], + "packageVersion" -> packageVersion.asInstanceOf[js.Any], + "repository" -> repository.asInstanceOf[js.Any] + ) + + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + namespace.foreach(__v => __obj.updateDynamic("namespace")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListPackageVersionAssetsRequest] + } + } + + @js.native + trait ListPackageVersionAssetsResult extends js.Object { + var assets: js.UndefOr[AssetSummaryList] + var format: js.UndefOr[PackageFormat] + var namespace: js.UndefOr[PackageNamespace] + var nextToken: js.UndefOr[PaginationToken] + var `package`: js.UndefOr[PackageName] + var version: js.UndefOr[PackageVersion] + var versionRevision: js.UndefOr[PackageVersionRevision] + } + + object ListPackageVersionAssetsResult { + @inline + def apply( + assets: js.UndefOr[AssetSummaryList] = js.undefined, + format: js.UndefOr[PackageFormat] = js.undefined, + namespace: js.UndefOr[PackageNamespace] = js.undefined, + nextToken: js.UndefOr[PaginationToken] = js.undefined, + `package`: js.UndefOr[PackageName] = js.undefined, + version: js.UndefOr[PackageVersion] = js.undefined, + versionRevision: js.UndefOr[PackageVersionRevision] = js.undefined + ): ListPackageVersionAssetsResult = { + val __obj = js.Dynamic.literal() + assets.foreach(__v => __obj.updateDynamic("assets")(__v.asInstanceOf[js.Any])) + format.foreach(__v => __obj.updateDynamic("format")(__v.asInstanceOf[js.Any])) + namespace.foreach(__v => __obj.updateDynamic("namespace")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + `package`.foreach(__v => __obj.updateDynamic("package")(__v.asInstanceOf[js.Any])) + version.foreach(__v => __obj.updateDynamic("version")(__v.asInstanceOf[js.Any])) + versionRevision.foreach(__v => __obj.updateDynamic("versionRevision")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListPackageVersionAssetsResult] + } + } + + @js.native + trait ListPackageVersionDependenciesRequest extends js.Object { + var domain: DomainName + var format: PackageFormat + var `package`: PackageName + var packageVersion: PackageVersion + var repository: RepositoryName + var domainOwner: js.UndefOr[AccountId] + var namespace: js.UndefOr[PackageNamespace] + var nextToken: js.UndefOr[PaginationToken] + } + + object ListPackageVersionDependenciesRequest { + @inline + def apply( + domain: DomainName, + format: PackageFormat, + `package`: PackageName, + packageVersion: PackageVersion, + repository: RepositoryName, + domainOwner: js.UndefOr[AccountId] = js.undefined, + namespace: js.UndefOr[PackageNamespace] = js.undefined, + nextToken: js.UndefOr[PaginationToken] = js.undefined + ): ListPackageVersionDependenciesRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any], + "format" -> format.asInstanceOf[js.Any], + "package" -> `package`.asInstanceOf[js.Any], + "packageVersion" -> packageVersion.asInstanceOf[js.Any], + "repository" -> repository.asInstanceOf[js.Any] + ) + + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + namespace.foreach(__v => __obj.updateDynamic("namespace")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListPackageVersionDependenciesRequest] + } + } + + @js.native + trait ListPackageVersionDependenciesResult extends js.Object { + var dependencies: js.UndefOr[PackageDependencyList] + var format: js.UndefOr[PackageFormat] + var namespace: js.UndefOr[PackageNamespace] + var nextToken: js.UndefOr[PaginationToken] + var `package`: js.UndefOr[PackageName] + var version: js.UndefOr[PackageVersion] + var versionRevision: js.UndefOr[PackageVersionRevision] + } + + object ListPackageVersionDependenciesResult { + @inline + def apply( + dependencies: js.UndefOr[PackageDependencyList] = js.undefined, + format: js.UndefOr[PackageFormat] = js.undefined, + namespace: js.UndefOr[PackageNamespace] = js.undefined, + nextToken: js.UndefOr[PaginationToken] = js.undefined, + `package`: js.UndefOr[PackageName] = js.undefined, + version: js.UndefOr[PackageVersion] = js.undefined, + versionRevision: js.UndefOr[PackageVersionRevision] = js.undefined + ): ListPackageVersionDependenciesResult = { + val __obj = js.Dynamic.literal() + dependencies.foreach(__v => __obj.updateDynamic("dependencies")(__v.asInstanceOf[js.Any])) + format.foreach(__v => __obj.updateDynamic("format")(__v.asInstanceOf[js.Any])) + namespace.foreach(__v => __obj.updateDynamic("namespace")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + `package`.foreach(__v => __obj.updateDynamic("package")(__v.asInstanceOf[js.Any])) + version.foreach(__v => __obj.updateDynamic("version")(__v.asInstanceOf[js.Any])) + versionRevision.foreach(__v => __obj.updateDynamic("versionRevision")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListPackageVersionDependenciesResult] + } + } + + @js.native + trait ListPackageVersionsRequest extends js.Object { + var domain: DomainName + var format: PackageFormat + var `package`: PackageName + var repository: RepositoryName + var domainOwner: js.UndefOr[AccountId] + var maxResults: js.UndefOr[ListPackageVersionsMaxResults] + var namespace: js.UndefOr[PackageNamespace] + var nextToken: js.UndefOr[PaginationToken] + var sortBy: js.UndefOr[PackageVersionSortType] + var status: js.UndefOr[PackageVersionStatus] + } + + object ListPackageVersionsRequest { + @inline + def apply( + domain: DomainName, + format: PackageFormat, + `package`: PackageName, + repository: RepositoryName, + domainOwner: js.UndefOr[AccountId] = js.undefined, + maxResults: js.UndefOr[ListPackageVersionsMaxResults] = js.undefined, + namespace: js.UndefOr[PackageNamespace] = js.undefined, + nextToken: js.UndefOr[PaginationToken] = js.undefined, + sortBy: js.UndefOr[PackageVersionSortType] = js.undefined, + status: js.UndefOr[PackageVersionStatus] = js.undefined + ): ListPackageVersionsRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any], + "format" -> format.asInstanceOf[js.Any], + "package" -> `package`.asInstanceOf[js.Any], + "repository" -> repository.asInstanceOf[js.Any] + ) + + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + namespace.foreach(__v => __obj.updateDynamic("namespace")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + sortBy.foreach(__v => __obj.updateDynamic("sortBy")(__v.asInstanceOf[js.Any])) + status.foreach(__v => __obj.updateDynamic("status")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListPackageVersionsRequest] + } + } + + @js.native + trait ListPackageVersionsResult extends js.Object { + var defaultDisplayVersion: js.UndefOr[PackageVersion] + var format: js.UndefOr[PackageFormat] + var namespace: js.UndefOr[PackageNamespace] + var nextToken: js.UndefOr[PaginationToken] + var `package`: js.UndefOr[PackageName] + var versions: js.UndefOr[PackageVersionSummaryList] + } + + object ListPackageVersionsResult { + @inline + def apply( + defaultDisplayVersion: js.UndefOr[PackageVersion] = js.undefined, + format: js.UndefOr[PackageFormat] = js.undefined, + namespace: js.UndefOr[PackageNamespace] = js.undefined, + nextToken: js.UndefOr[PaginationToken] = js.undefined, + `package`: js.UndefOr[PackageName] = js.undefined, + versions: js.UndefOr[PackageVersionSummaryList] = js.undefined + ): ListPackageVersionsResult = { + val __obj = js.Dynamic.literal() + defaultDisplayVersion.foreach(__v => __obj.updateDynamic("defaultDisplayVersion")(__v.asInstanceOf[js.Any])) + format.foreach(__v => __obj.updateDynamic("format")(__v.asInstanceOf[js.Any])) + namespace.foreach(__v => __obj.updateDynamic("namespace")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + `package`.foreach(__v => __obj.updateDynamic("package")(__v.asInstanceOf[js.Any])) + versions.foreach(__v => __obj.updateDynamic("versions")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListPackageVersionsResult] + } + } + + @js.native + trait ListPackagesRequest extends js.Object { + var domain: DomainName + var repository: RepositoryName + var domainOwner: js.UndefOr[AccountId] + var format: js.UndefOr[PackageFormat] + var maxResults: js.UndefOr[ListPackagesMaxResults] + var namespace: js.UndefOr[PackageNamespace] + var nextToken: js.UndefOr[PaginationToken] + var packagePrefix: js.UndefOr[PackageName] + } + + object ListPackagesRequest { + @inline + def apply( + domain: DomainName, + repository: RepositoryName, + domainOwner: js.UndefOr[AccountId] = js.undefined, + format: js.UndefOr[PackageFormat] = js.undefined, + maxResults: js.UndefOr[ListPackagesMaxResults] = js.undefined, + namespace: js.UndefOr[PackageNamespace] = js.undefined, + nextToken: js.UndefOr[PaginationToken] = js.undefined, + packagePrefix: js.UndefOr[PackageName] = js.undefined + ): ListPackagesRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any], + "repository" -> repository.asInstanceOf[js.Any] + ) + + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + format.foreach(__v => __obj.updateDynamic("format")(__v.asInstanceOf[js.Any])) + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + namespace.foreach(__v => __obj.updateDynamic("namespace")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + packagePrefix.foreach(__v => __obj.updateDynamic("packagePrefix")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListPackagesRequest] + } + } + + @js.native + trait ListPackagesResult extends js.Object { + var nextToken: js.UndefOr[PaginationToken] + var packages: js.UndefOr[PackageSummaryList] + } + + object ListPackagesResult { + @inline + def apply( + nextToken: js.UndefOr[PaginationToken] = js.undefined, + packages: js.UndefOr[PackageSummaryList] = js.undefined + ): ListPackagesResult = { + val __obj = js.Dynamic.literal() + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + packages.foreach(__v => __obj.updateDynamic("packages")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListPackagesResult] + } + } + + @js.native + trait ListRepositoriesInDomainRequest extends js.Object { + var domain: DomainName + var administratorAccount: js.UndefOr[AccountId] + var domainOwner: js.UndefOr[AccountId] + var maxResults: js.UndefOr[ListRepositoriesInDomainMaxResults] + var nextToken: js.UndefOr[PaginationToken] + var repositoryPrefix: js.UndefOr[RepositoryName] + } + + object ListRepositoriesInDomainRequest { + @inline + def apply( + domain: DomainName, + administratorAccount: js.UndefOr[AccountId] = js.undefined, + domainOwner: js.UndefOr[AccountId] = js.undefined, + maxResults: js.UndefOr[ListRepositoriesInDomainMaxResults] = js.undefined, + nextToken: js.UndefOr[PaginationToken] = js.undefined, + repositoryPrefix: js.UndefOr[RepositoryName] = js.undefined + ): ListRepositoriesInDomainRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any] + ) + + administratorAccount.foreach(__v => __obj.updateDynamic("administratorAccount")(__v.asInstanceOf[js.Any])) + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + repositoryPrefix.foreach(__v => __obj.updateDynamic("repositoryPrefix")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListRepositoriesInDomainRequest] + } + } + + @js.native + trait ListRepositoriesInDomainResult extends js.Object { + var nextToken: js.UndefOr[PaginationToken] + var repositories: js.UndefOr[RepositorySummaryList] + } + + object ListRepositoriesInDomainResult { + @inline + def apply( + nextToken: js.UndefOr[PaginationToken] = js.undefined, + repositories: js.UndefOr[RepositorySummaryList] = js.undefined + ): ListRepositoriesInDomainResult = { + val __obj = js.Dynamic.literal() + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + repositories.foreach(__v => __obj.updateDynamic("repositories")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListRepositoriesInDomainResult] + } + } + + @js.native + trait ListRepositoriesRequest extends js.Object { + var maxResults: js.UndefOr[ListRepositoriesMaxResults] + var nextToken: js.UndefOr[PaginationToken] + var repositoryPrefix: js.UndefOr[RepositoryName] + } + + object ListRepositoriesRequest { + @inline + def apply( + maxResults: js.UndefOr[ListRepositoriesMaxResults] = js.undefined, + nextToken: js.UndefOr[PaginationToken] = js.undefined, + repositoryPrefix: js.UndefOr[RepositoryName] = js.undefined + ): ListRepositoriesRequest = { + val __obj = js.Dynamic.literal() + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + repositoryPrefix.foreach(__v => __obj.updateDynamic("repositoryPrefix")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListRepositoriesRequest] + } + } + + @js.native + trait ListRepositoriesResult extends js.Object { + var nextToken: js.UndefOr[PaginationToken] + var repositories: js.UndefOr[RepositorySummaryList] + } + + object ListRepositoriesResult { + @inline + def apply( + nextToken: js.UndefOr[PaginationToken] = js.undefined, + repositories: js.UndefOr[RepositorySummaryList] = js.undefined + ): ListRepositoriesResult = { + val __obj = js.Dynamic.literal() + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + repositories.foreach(__v => __obj.updateDynamic("repositories")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListRepositoriesResult] + } + } + + /** + * Details about a package dependency. + */ + @js.native + trait PackageDependency extends js.Object { + var dependencyType: js.UndefOr[String] + var namespace: js.UndefOr[PackageNamespace] + var `package`: js.UndefOr[PackageName] + var versionRequirement: js.UndefOr[String] + } + + object PackageDependency { + @inline + def apply( + dependencyType: js.UndefOr[String] = js.undefined, + namespace: js.UndefOr[PackageNamespace] = js.undefined, + `package`: js.UndefOr[PackageName] = js.undefined, + versionRequirement: js.UndefOr[String] = js.undefined + ): PackageDependency = { + val __obj = js.Dynamic.literal() + dependencyType.foreach(__v => __obj.updateDynamic("dependencyType")(__v.asInstanceOf[js.Any])) + namespace.foreach(__v => __obj.updateDynamic("namespace")(__v.asInstanceOf[js.Any])) + `package`.foreach(__v => __obj.updateDynamic("package")(__v.asInstanceOf[js.Any])) + versionRequirement.foreach(__v => __obj.updateDynamic("versionRequirement")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[PackageDependency] + } + } + + @js.native + sealed trait PackageFormat extends js.Any + object PackageFormat extends js.Object { + val npm = "npm".asInstanceOf[PackageFormat] + val pypi = "pypi".asInstanceOf[PackageFormat] + val maven = "maven".asInstanceOf[PackageFormat] + + val values = js.Object.freeze(js.Array(npm, pypi, maven)) + } + + /** + * Details about a package, including its format, namespace, and name. The ListPackages operation returns a list of PackageSummary objects. + */ + @js.native + trait PackageSummary extends js.Object { + var format: js.UndefOr[PackageFormat] + var namespace: js.UndefOr[PackageNamespace] + var `package`: js.UndefOr[PackageName] + } + + object PackageSummary { + @inline + def apply( + format: js.UndefOr[PackageFormat] = js.undefined, + namespace: js.UndefOr[PackageNamespace] = js.undefined, + `package`: js.UndefOr[PackageName] = js.undefined + ): PackageSummary = { + val __obj = js.Dynamic.literal() + format.foreach(__v => __obj.updateDynamic("format")(__v.asInstanceOf[js.Any])) + namespace.foreach(__v => __obj.updateDynamic("namespace")(__v.asInstanceOf[js.Any])) + `package`.foreach(__v => __obj.updateDynamic("package")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[PackageSummary] + } + } + + /** + * Details about a package version. + */ + @js.native + trait PackageVersionDescription extends js.Object { + var displayName: js.UndefOr[String255] + var format: js.UndefOr[PackageFormat] + var homePage: js.UndefOr[String] + var licenses: js.UndefOr[LicenseInfoList] + var namespace: js.UndefOr[PackageNamespace] + var packageName: js.UndefOr[PackageName] + var publishedTime: js.UndefOr[Timestamp] + var revision: js.UndefOr[PackageVersionRevision] + var sourceCodeRepository: js.UndefOr[String] + var status: js.UndefOr[PackageVersionStatus] + var summary: js.UndefOr[String] + var version: js.UndefOr[PackageVersion] + } + + object PackageVersionDescription { + @inline + def apply( + displayName: js.UndefOr[String255] = js.undefined, + format: js.UndefOr[PackageFormat] = js.undefined, + homePage: js.UndefOr[String] = js.undefined, + licenses: js.UndefOr[LicenseInfoList] = js.undefined, + namespace: js.UndefOr[PackageNamespace] = js.undefined, + packageName: js.UndefOr[PackageName] = js.undefined, + publishedTime: js.UndefOr[Timestamp] = js.undefined, + revision: js.UndefOr[PackageVersionRevision] = js.undefined, + sourceCodeRepository: js.UndefOr[String] = js.undefined, + status: js.UndefOr[PackageVersionStatus] = js.undefined, + summary: js.UndefOr[String] = js.undefined, + version: js.UndefOr[PackageVersion] = js.undefined + ): PackageVersionDescription = { + val __obj = js.Dynamic.literal() + displayName.foreach(__v => __obj.updateDynamic("displayName")(__v.asInstanceOf[js.Any])) + format.foreach(__v => __obj.updateDynamic("format")(__v.asInstanceOf[js.Any])) + homePage.foreach(__v => __obj.updateDynamic("homePage")(__v.asInstanceOf[js.Any])) + licenses.foreach(__v => __obj.updateDynamic("licenses")(__v.asInstanceOf[js.Any])) + namespace.foreach(__v => __obj.updateDynamic("namespace")(__v.asInstanceOf[js.Any])) + packageName.foreach(__v => __obj.updateDynamic("packageName")(__v.asInstanceOf[js.Any])) + publishedTime.foreach(__v => __obj.updateDynamic("publishedTime")(__v.asInstanceOf[js.Any])) + revision.foreach(__v => __obj.updateDynamic("revision")(__v.asInstanceOf[js.Any])) + sourceCodeRepository.foreach(__v => __obj.updateDynamic("sourceCodeRepository")(__v.asInstanceOf[js.Any])) + status.foreach(__v => __obj.updateDynamic("status")(__v.asInstanceOf[js.Any])) + summary.foreach(__v => __obj.updateDynamic("summary")(__v.asInstanceOf[js.Any])) + version.foreach(__v => __obj.updateDynamic("version")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[PackageVersionDescription] + } + } + + /** + * An error associated with package. + */ + @js.native + trait PackageVersionError extends js.Object { + var errorCode: js.UndefOr[PackageVersionErrorCode] + var errorMessage: js.UndefOr[ErrorMessage] + } + + object PackageVersionError { + @inline + def apply( + errorCode: js.UndefOr[PackageVersionErrorCode] = js.undefined, + errorMessage: js.UndefOr[ErrorMessage] = js.undefined + ): PackageVersionError = { + val __obj = js.Dynamic.literal() + errorCode.foreach(__v => __obj.updateDynamic("errorCode")(__v.asInstanceOf[js.Any])) + errorMessage.foreach(__v => __obj.updateDynamic("errorMessage")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[PackageVersionError] + } + } + + @js.native + sealed trait PackageVersionErrorCode extends js.Any + object PackageVersionErrorCode extends js.Object { + val ALREADY_EXISTS = "ALREADY_EXISTS".asInstanceOf[PackageVersionErrorCode] + val MISMATCHED_REVISION = "MISMATCHED_REVISION".asInstanceOf[PackageVersionErrorCode] + val MISMATCHED_STATUS = "MISMATCHED_STATUS".asInstanceOf[PackageVersionErrorCode] + val NOT_ALLOWED = "NOT_ALLOWED".asInstanceOf[PackageVersionErrorCode] + val NOT_FOUND = "NOT_FOUND".asInstanceOf[PackageVersionErrorCode] + val SKIPPED = "SKIPPED".asInstanceOf[PackageVersionErrorCode] + + val values = js.Object.freeze( + js.Array(ALREADY_EXISTS, MISMATCHED_REVISION, MISMATCHED_STATUS, NOT_ALLOWED, NOT_FOUND, SKIPPED) + ) + } + + @js.native + sealed trait PackageVersionSortType extends js.Any + object PackageVersionSortType extends js.Object { + val PUBLISHED_TIME = "PUBLISHED_TIME".asInstanceOf[PackageVersionSortType] + + val values = js.Object.freeze(js.Array(PUBLISHED_TIME)) + } + + @js.native + sealed trait PackageVersionStatus extends js.Any + object PackageVersionStatus extends js.Object { + val Published = "Published".asInstanceOf[PackageVersionStatus] + val Unfinished = "Unfinished".asInstanceOf[PackageVersionStatus] + val Unlisted = "Unlisted".asInstanceOf[PackageVersionStatus] + val Archived = "Archived".asInstanceOf[PackageVersionStatus] + val Disposed = "Disposed".asInstanceOf[PackageVersionStatus] + val Deleted = "Deleted".asInstanceOf[PackageVersionStatus] + + val values = js.Object.freeze(js.Array(Published, Unfinished, Unlisted, Archived, Disposed, Deleted)) + } + + /** + * Details about a package version, including its status, version, and revision. The ListPackageVersions operation returns a list of PackageVersionSummary objects. + */ + @js.native + trait PackageVersionSummary extends js.Object { + var status: PackageVersionStatus + var version: PackageVersion + var revision: js.UndefOr[PackageVersionRevision] + } + + object PackageVersionSummary { + @inline + def apply( + status: PackageVersionStatus, + version: PackageVersion, + revision: js.UndefOr[PackageVersionRevision] = js.undefined + ): PackageVersionSummary = { + val __obj = js.Dynamic.literal( + "status" -> status.asInstanceOf[js.Any], + "version" -> version.asInstanceOf[js.Any] + ) + + revision.foreach(__v => __obj.updateDynamic("revision")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[PackageVersionSummary] + } + } + + @js.native + trait PutDomainPermissionsPolicyRequest extends js.Object { + var domain: DomainName + var policyDocument: PolicyDocument + var domainOwner: js.UndefOr[AccountId] + var policyRevision: js.UndefOr[PolicyRevision] + } + + object PutDomainPermissionsPolicyRequest { + @inline + def apply( + domain: DomainName, + policyDocument: PolicyDocument, + domainOwner: js.UndefOr[AccountId] = js.undefined, + policyRevision: js.UndefOr[PolicyRevision] = js.undefined + ): PutDomainPermissionsPolicyRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any], + "policyDocument" -> policyDocument.asInstanceOf[js.Any] + ) + + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + policyRevision.foreach(__v => __obj.updateDynamic("policyRevision")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[PutDomainPermissionsPolicyRequest] + } + } + + @js.native + trait PutDomainPermissionsPolicyResult extends js.Object { + var policy: js.UndefOr[ResourcePolicy] + } + + object PutDomainPermissionsPolicyResult { + @inline + def apply( + policy: js.UndefOr[ResourcePolicy] = js.undefined + ): PutDomainPermissionsPolicyResult = { + val __obj = js.Dynamic.literal() + policy.foreach(__v => __obj.updateDynamic("policy")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[PutDomainPermissionsPolicyResult] + } + } + + @js.native + trait PutRepositoryPermissionsPolicyRequest extends js.Object { + var domain: DomainName + var policyDocument: PolicyDocument + var repository: RepositoryName + var domainOwner: js.UndefOr[AccountId] + var policyRevision: js.UndefOr[PolicyRevision] + } + + object PutRepositoryPermissionsPolicyRequest { + @inline + def apply( + domain: DomainName, + policyDocument: PolicyDocument, + repository: RepositoryName, + domainOwner: js.UndefOr[AccountId] = js.undefined, + policyRevision: js.UndefOr[PolicyRevision] = js.undefined + ): PutRepositoryPermissionsPolicyRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any], + "policyDocument" -> policyDocument.asInstanceOf[js.Any], + "repository" -> repository.asInstanceOf[js.Any] + ) + + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + policyRevision.foreach(__v => __obj.updateDynamic("policyRevision")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[PutRepositoryPermissionsPolicyRequest] + } + } + + @js.native + trait PutRepositoryPermissionsPolicyResult extends js.Object { + var policy: js.UndefOr[ResourcePolicy] + } + + object PutRepositoryPermissionsPolicyResult { + @inline + def apply( + policy: js.UndefOr[ResourcePolicy] = js.undefined + ): PutRepositoryPermissionsPolicyResult = { + val __obj = js.Dynamic.literal() + policy.foreach(__v => __obj.updateDynamic("policy")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[PutRepositoryPermissionsPolicyResult] + } + } + + /** + * The details of a repository stored in AWS CodeArtifact. A CodeArtifact repository contains a set of package versions, each of which maps to a set of assets. Repositories are polyglot—a single repository can contain packages of any supported type. Each repository exposes endpoints for fetching and publishing packages using tools like the npm CLI, the Maven CLI (mvn), and pip. You can create up to 100 repositories per AWS account. + */ + @js.native + trait RepositoryDescription extends js.Object { + var administratorAccount: js.UndefOr[AccountId] + var arn: js.UndefOr[Arn] + var description: js.UndefOr[Description] + var domainName: js.UndefOr[DomainName] + var domainOwner: js.UndefOr[AccountId] + var externalConnections: js.UndefOr[RepositoryExternalConnectionInfoList] + var name: js.UndefOr[RepositoryName] + var upstreams: js.UndefOr[UpstreamRepositoryInfoList] + } + + object RepositoryDescription { + @inline + def apply( + administratorAccount: js.UndefOr[AccountId] = js.undefined, + arn: js.UndefOr[Arn] = js.undefined, + description: js.UndefOr[Description] = js.undefined, + domainName: js.UndefOr[DomainName] = js.undefined, + domainOwner: js.UndefOr[AccountId] = js.undefined, + externalConnections: js.UndefOr[RepositoryExternalConnectionInfoList] = js.undefined, + name: js.UndefOr[RepositoryName] = js.undefined, + upstreams: js.UndefOr[UpstreamRepositoryInfoList] = js.undefined + ): RepositoryDescription = { + val __obj = js.Dynamic.literal() + administratorAccount.foreach(__v => __obj.updateDynamic("administratorAccount")(__v.asInstanceOf[js.Any])) + arn.foreach(__v => __obj.updateDynamic("arn")(__v.asInstanceOf[js.Any])) + description.foreach(__v => __obj.updateDynamic("description")(__v.asInstanceOf[js.Any])) + domainName.foreach(__v => __obj.updateDynamic("domainName")(__v.asInstanceOf[js.Any])) + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + externalConnections.foreach(__v => __obj.updateDynamic("externalConnections")(__v.asInstanceOf[js.Any])) + name.foreach(__v => __obj.updateDynamic("name")(__v.asInstanceOf[js.Any])) + upstreams.foreach(__v => __obj.updateDynamic("upstreams")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[RepositoryDescription] + } + } + + /** + * Contains information about the external connection of a repository. + */ + @js.native + trait RepositoryExternalConnectionInfo extends js.Object { + var externalConnectionName: js.UndefOr[ExternalConnectionName] + var packageFormat: js.UndefOr[PackageFormat] + var status: js.UndefOr[ExternalConnectionStatus] + } + + object RepositoryExternalConnectionInfo { + @inline + def apply( + externalConnectionName: js.UndefOr[ExternalConnectionName] = js.undefined, + packageFormat: js.UndefOr[PackageFormat] = js.undefined, + status: js.UndefOr[ExternalConnectionStatus] = js.undefined + ): RepositoryExternalConnectionInfo = { + val __obj = js.Dynamic.literal() + externalConnectionName.foreach(__v => __obj.updateDynamic("externalConnectionName")(__v.asInstanceOf[js.Any])) + packageFormat.foreach(__v => __obj.updateDynamic("packageFormat")(__v.asInstanceOf[js.Any])) + status.foreach(__v => __obj.updateDynamic("status")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[RepositoryExternalConnectionInfo] + } + } + + /** + * Details about a repository, including its Amazon Resource Name (ARN), description, and domain information. The ListRepositories operation returns a list of RepositorySummary objects. + */ + @js.native + trait RepositorySummary extends js.Object { + var administratorAccount: js.UndefOr[AccountId] + var arn: js.UndefOr[Arn] + var description: js.UndefOr[Description] + var domainName: js.UndefOr[DomainName] + var domainOwner: js.UndefOr[AccountId] + var name: js.UndefOr[RepositoryName] + } + + object RepositorySummary { + @inline + def apply( + administratorAccount: js.UndefOr[AccountId] = js.undefined, + arn: js.UndefOr[Arn] = js.undefined, + description: js.UndefOr[Description] = js.undefined, + domainName: js.UndefOr[DomainName] = js.undefined, + domainOwner: js.UndefOr[AccountId] = js.undefined, + name: js.UndefOr[RepositoryName] = js.undefined + ): RepositorySummary = { + val __obj = js.Dynamic.literal() + administratorAccount.foreach(__v => __obj.updateDynamic("administratorAccount")(__v.asInstanceOf[js.Any])) + arn.foreach(__v => __obj.updateDynamic("arn")(__v.asInstanceOf[js.Any])) + description.foreach(__v => __obj.updateDynamic("description")(__v.asInstanceOf[js.Any])) + domainName.foreach(__v => __obj.updateDynamic("domainName")(__v.asInstanceOf[js.Any])) + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + name.foreach(__v => __obj.updateDynamic("name")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[RepositorySummary] + } + } + + /** + * An AWS CodeArtifact resource policy that contains a resource ARN, document details, and a revision. + */ + @js.native + trait ResourcePolicy extends js.Object { + var document: js.UndefOr[PolicyDocument] + var resourceArn: js.UndefOr[Arn] + var revision: js.UndefOr[PolicyRevision] + } + + object ResourcePolicy { + @inline + def apply( + document: js.UndefOr[PolicyDocument] = js.undefined, + resourceArn: js.UndefOr[Arn] = js.undefined, + revision: js.UndefOr[PolicyRevision] = js.undefined + ): ResourcePolicy = { + val __obj = js.Dynamic.literal() + document.foreach(__v => __obj.updateDynamic("document")(__v.asInstanceOf[js.Any])) + resourceArn.foreach(__v => __obj.updateDynamic("resourceArn")(__v.asInstanceOf[js.Any])) + revision.foreach(__v => __obj.updateDynamic("revision")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ResourcePolicy] + } + } + + /** + * Contains the revision and status of a package version. + */ + @js.native + trait SuccessfulPackageVersionInfo extends js.Object { + var revision: js.UndefOr[String] + var status: js.UndefOr[PackageVersionStatus] + } + + object SuccessfulPackageVersionInfo { + @inline + def apply( + revision: js.UndefOr[String] = js.undefined, + status: js.UndefOr[PackageVersionStatus] = js.undefined + ): SuccessfulPackageVersionInfo = { + val __obj = js.Dynamic.literal() + revision.foreach(__v => __obj.updateDynamic("revision")(__v.asInstanceOf[js.Any])) + status.foreach(__v => __obj.updateDynamic("status")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[SuccessfulPackageVersionInfo] + } + } + + @js.native + trait UpdatePackageVersionsStatusRequest extends js.Object { + var domain: DomainName + var format: PackageFormat + var `package`: PackageName + var repository: RepositoryName + var targetStatus: PackageVersionStatus + var versions: PackageVersionList + var domainOwner: js.UndefOr[AccountId] + var expectedStatus: js.UndefOr[PackageVersionStatus] + var namespace: js.UndefOr[PackageNamespace] + var versionRevisions: js.UndefOr[PackageVersionRevisionMap] + } + + object UpdatePackageVersionsStatusRequest { + @inline + def apply( + domain: DomainName, + format: PackageFormat, + `package`: PackageName, + repository: RepositoryName, + targetStatus: PackageVersionStatus, + versions: PackageVersionList, + domainOwner: js.UndefOr[AccountId] = js.undefined, + expectedStatus: js.UndefOr[PackageVersionStatus] = js.undefined, + namespace: js.UndefOr[PackageNamespace] = js.undefined, + versionRevisions: js.UndefOr[PackageVersionRevisionMap] = js.undefined + ): UpdatePackageVersionsStatusRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any], + "format" -> format.asInstanceOf[js.Any], + "package" -> `package`.asInstanceOf[js.Any], + "repository" -> repository.asInstanceOf[js.Any], + "targetStatus" -> targetStatus.asInstanceOf[js.Any], + "versions" -> versions.asInstanceOf[js.Any] + ) + + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + expectedStatus.foreach(__v => __obj.updateDynamic("expectedStatus")(__v.asInstanceOf[js.Any])) + namespace.foreach(__v => __obj.updateDynamic("namespace")(__v.asInstanceOf[js.Any])) + versionRevisions.foreach(__v => __obj.updateDynamic("versionRevisions")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[UpdatePackageVersionsStatusRequest] + } + } + + @js.native + trait UpdatePackageVersionsStatusResult extends js.Object { + var failedVersions: js.UndefOr[PackageVersionErrorMap] + var successfulVersions: js.UndefOr[SuccessfulPackageVersionInfoMap] + } + + object UpdatePackageVersionsStatusResult { + @inline + def apply( + failedVersions: js.UndefOr[PackageVersionErrorMap] = js.undefined, + successfulVersions: js.UndefOr[SuccessfulPackageVersionInfoMap] = js.undefined + ): UpdatePackageVersionsStatusResult = { + val __obj = js.Dynamic.literal() + failedVersions.foreach(__v => __obj.updateDynamic("failedVersions")(__v.asInstanceOf[js.Any])) + successfulVersions.foreach(__v => __obj.updateDynamic("successfulVersions")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[UpdatePackageVersionsStatusResult] + } + } + + @js.native + trait UpdateRepositoryRequest extends js.Object { + var domain: DomainName + var repository: RepositoryName + var description: js.UndefOr[Description] + var domainOwner: js.UndefOr[AccountId] + var upstreams: js.UndefOr[UpstreamRepositoryList] + } + + object UpdateRepositoryRequest { + @inline + def apply( + domain: DomainName, + repository: RepositoryName, + description: js.UndefOr[Description] = js.undefined, + domainOwner: js.UndefOr[AccountId] = js.undefined, + upstreams: js.UndefOr[UpstreamRepositoryList] = js.undefined + ): UpdateRepositoryRequest = { + val __obj = js.Dynamic.literal( + "domain" -> domain.asInstanceOf[js.Any], + "repository" -> repository.asInstanceOf[js.Any] + ) + + description.foreach(__v => __obj.updateDynamic("description")(__v.asInstanceOf[js.Any])) + domainOwner.foreach(__v => __obj.updateDynamic("domainOwner")(__v.asInstanceOf[js.Any])) + upstreams.foreach(__v => __obj.updateDynamic("upstreams")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[UpdateRepositoryRequest] + } + } + + @js.native + trait UpdateRepositoryResult extends js.Object { + var repository: js.UndefOr[RepositoryDescription] + } + + object UpdateRepositoryResult { + @inline + def apply( + repository: js.UndefOr[RepositoryDescription] = js.undefined + ): UpdateRepositoryResult = { + val __obj = js.Dynamic.literal() + repository.foreach(__v => __obj.updateDynamic("repository")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[UpdateRepositoryResult] + } + } + + /** + * Information about an upstream repository. A list of UpstreamRepository objects is an input parameter to CreateRepository and UpdateRepository . + */ + @js.native + trait UpstreamRepository extends js.Object { + var repositoryName: RepositoryName + } + + object UpstreamRepository { + @inline + def apply( + repositoryName: RepositoryName + ): UpstreamRepository = { + val __obj = js.Dynamic.literal( + "repositoryName" -> repositoryName.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[UpstreamRepository] + } + } + + /** + * Information about an upstream repository. + */ + @js.native + trait UpstreamRepositoryInfo extends js.Object { + var repositoryName: js.UndefOr[RepositoryName] + } + + object UpstreamRepositoryInfo { + @inline + def apply( + repositoryName: js.UndefOr[RepositoryName] = js.undefined + ): UpstreamRepositoryInfo = { + val __obj = js.Dynamic.literal() + repositoryName.foreach(__v => __obj.updateDynamic("repositoryName")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[UpstreamRepositoryInfo] + } + } +} diff --git a/services/honeycode/src/main/scala/facade/amazonaws/services/Honeycode.scala b/services/honeycode/src/main/scala/facade/amazonaws/services/Honeycode.scala new file mode 100644 index 000000000..d7627345e --- /dev/null +++ b/services/honeycode/src/main/scala/facade/amazonaws/services/Honeycode.scala @@ -0,0 +1,294 @@ +package facade.amazonaws.services + +import scalajs._ +import scalajs.js.annotation.JSImport +import scala.scalajs.js.| +import scala.concurrent.Future +import facade.amazonaws._ + +package object honeycode { + type ClientRequestToken = String + type DataItems = js.Array[DataItem] + type FormattedValue = String + type MaxResults = Int + type Name = String + type PaginationToken = String + type RawValue = String + type ResourceId = String + type ResultHeader = js.Array[ColumnMetadata] + type ResultRows = js.Array[ResultRow] + type ResultSetMap = js.Dictionary[ResultSet] + type RowId = String + type VariableName = String + type VariableValueMap = js.Dictionary[VariableValue] + type WorkbookCursor = Double + + implicit final class HoneycodeOps(private val service: Honeycode) extends AnyVal { + + @inline def getScreenDataFuture(params: GetScreenDataRequest): Future[GetScreenDataResult] = + service.getScreenData(params).promise().toFuture + @inline def invokeScreenAutomationFuture( + params: InvokeScreenAutomationRequest + ): Future[InvokeScreenAutomationResult] = service.invokeScreenAutomation(params).promise().toFuture + } +} + +package honeycode { + @js.native + @JSImport("aws-sdk", "Honeycode", "AWS.Honeycode") + class Honeycode() extends js.Object { + def this(config: AWSConfig) = this() + + def getScreenData(params: GetScreenDataRequest): Request[GetScreenDataResult] = js.native + def invokeScreenAutomation(params: InvokeScreenAutomationRequest): Request[InvokeScreenAutomationResult] = js.native + } + + /** + * Metadata for column in the table. + */ + @js.native + trait ColumnMetadata extends js.Object { + var format: Format + var name: Name + } + + object ColumnMetadata { + @inline + def apply( + format: Format, + name: Name + ): ColumnMetadata = { + val __obj = js.Dynamic.literal( + "format" -> format.asInstanceOf[js.Any], + "name" -> name.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[ColumnMetadata] + } + } + + /** + * The data in a particular data cell defined on the screen. + */ + @js.native + trait DataItem extends js.Object { + var formattedValue: js.UndefOr[FormattedValue] + var overrideFormat: js.UndefOr[Format] + var rawValue: js.UndefOr[RawValue] + } + + object DataItem { + @inline + def apply( + formattedValue: js.UndefOr[FormattedValue] = js.undefined, + overrideFormat: js.UndefOr[Format] = js.undefined, + rawValue: js.UndefOr[RawValue] = js.undefined + ): DataItem = { + val __obj = js.Dynamic.literal() + formattedValue.foreach(__v => __obj.updateDynamic("formattedValue")(__v.asInstanceOf[js.Any])) + overrideFormat.foreach(__v => __obj.updateDynamic("overrideFormat")(__v.asInstanceOf[js.Any])) + rawValue.foreach(__v => __obj.updateDynamic("rawValue")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DataItem] + } + } + + @js.native + sealed trait Format extends js.Any + object Format extends js.Object { + val AUTO = "AUTO".asInstanceOf[Format] + val NUMBER = "NUMBER".asInstanceOf[Format] + val CURRENCY = "CURRENCY".asInstanceOf[Format] + val DATE = "DATE".asInstanceOf[Format] + val TIME = "TIME".asInstanceOf[Format] + val DATE_TIME = "DATE_TIME".asInstanceOf[Format] + val PERCENTAGE = "PERCENTAGE".asInstanceOf[Format] + val TEXT = "TEXT".asInstanceOf[Format] + val ACCOUNTING = "ACCOUNTING".asInstanceOf[Format] + val CONTACT = "CONTACT".asInstanceOf[Format] + val ROWLINK = "ROWLINK".asInstanceOf[Format] + + val values = js.Object.freeze( + js.Array(AUTO, NUMBER, CURRENCY, DATE, TIME, DATE_TIME, PERCENTAGE, TEXT, ACCOUNTING, CONTACT, ROWLINK) + ) + } + + @js.native + trait GetScreenDataRequest extends js.Object { + var appId: ResourceId + var screenId: ResourceId + var workbookId: ResourceId + var maxResults: js.UndefOr[MaxResults] + var nextToken: js.UndefOr[PaginationToken] + var variables: js.UndefOr[VariableValueMap] + } + + object GetScreenDataRequest { + @inline + def apply( + appId: ResourceId, + screenId: ResourceId, + workbookId: ResourceId, + maxResults: js.UndefOr[MaxResults] = js.undefined, + nextToken: js.UndefOr[PaginationToken] = js.undefined, + variables: js.UndefOr[VariableValueMap] = js.undefined + ): GetScreenDataRequest = { + val __obj = js.Dynamic.literal( + "appId" -> appId.asInstanceOf[js.Any], + "screenId" -> screenId.asInstanceOf[js.Any], + "workbookId" -> workbookId.asInstanceOf[js.Any] + ) + + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + variables.foreach(__v => __obj.updateDynamic("variables")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetScreenDataRequest] + } + } + + @js.native + trait GetScreenDataResult extends js.Object { + var results: ResultSetMap + var workbookCursor: WorkbookCursor + var nextToken: js.UndefOr[PaginationToken] + } + + object GetScreenDataResult { + @inline + def apply( + results: ResultSetMap, + workbookCursor: WorkbookCursor, + nextToken: js.UndefOr[PaginationToken] = js.undefined + ): GetScreenDataResult = { + val __obj = js.Dynamic.literal( + "results" -> results.asInstanceOf[js.Any], + "workbookCursor" -> workbookCursor.asInstanceOf[js.Any] + ) + + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetScreenDataResult] + } + } + + @js.native + trait InvokeScreenAutomationRequest extends js.Object { + var appId: ResourceId + var screenAutomationId: ResourceId + var screenId: ResourceId + var workbookId: ResourceId + var clientRequestToken: js.UndefOr[ClientRequestToken] + var rowId: js.UndefOr[RowId] + var variables: js.UndefOr[VariableValueMap] + } + + object InvokeScreenAutomationRequest { + @inline + def apply( + appId: ResourceId, + screenAutomationId: ResourceId, + screenId: ResourceId, + workbookId: ResourceId, + clientRequestToken: js.UndefOr[ClientRequestToken] = js.undefined, + rowId: js.UndefOr[RowId] = js.undefined, + variables: js.UndefOr[VariableValueMap] = js.undefined + ): InvokeScreenAutomationRequest = { + val __obj = js.Dynamic.literal( + "appId" -> appId.asInstanceOf[js.Any], + "screenAutomationId" -> screenAutomationId.asInstanceOf[js.Any], + "screenId" -> screenId.asInstanceOf[js.Any], + "workbookId" -> workbookId.asInstanceOf[js.Any] + ) + + clientRequestToken.foreach(__v => __obj.updateDynamic("clientRequestToken")(__v.asInstanceOf[js.Any])) + rowId.foreach(__v => __obj.updateDynamic("rowId")(__v.asInstanceOf[js.Any])) + variables.foreach(__v => __obj.updateDynamic("variables")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[InvokeScreenAutomationRequest] + } + } + + @js.native + trait InvokeScreenAutomationResult extends js.Object { + var workbookCursor: WorkbookCursor + } + + object InvokeScreenAutomationResult { + @inline + def apply( + workbookCursor: WorkbookCursor + ): InvokeScreenAutomationResult = { + val __obj = js.Dynamic.literal( + "workbookCursor" -> workbookCursor.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[InvokeScreenAutomationResult] + } + } + + /** + * A single row in the ResultSet. + */ + @js.native + trait ResultRow extends js.Object { + var dataItems: DataItems + var rowId: js.UndefOr[RowId] + } + + object ResultRow { + @inline + def apply( + dataItems: DataItems, + rowId: js.UndefOr[RowId] = js.undefined + ): ResultRow = { + val __obj = js.Dynamic.literal( + "dataItems" -> dataItems.asInstanceOf[js.Any] + ) + + rowId.foreach(__v => __obj.updateDynamic("rowId")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ResultRow] + } + } + + /** + * ResultSet contains the results of the request for a single block or list defined on the screen. + */ + @js.native + trait ResultSet extends js.Object { + var headers: ResultHeader + var rows: ResultRows + } + + object ResultSet { + @inline + def apply( + headers: ResultHeader, + rows: ResultRows + ): ResultSet = { + val __obj = js.Dynamic.literal( + "headers" -> headers.asInstanceOf[js.Any], + "rows" -> rows.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[ResultSet] + } + } + + /** + * The input variables to the app to be used by the InvokeScreenAutomation action request. + */ + @js.native + trait VariableValue extends js.Object { + var rawValue: RawValue + } + + object VariableValue { + @inline + def apply( + rawValue: RawValue + ): VariableValue = { + val __obj = js.Dynamic.literal( + "rawValue" -> rawValue.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[VariableValue] + } + } +} diff --git a/services/iotsitewise/src/main/scala/facade/amazonaws/services/IoTSiteWise.scala b/services/iotsitewise/src/main/scala/facade/amazonaws/services/IoTSiteWise.scala new file mode 100644 index 000000000..e402fa2b1 --- /dev/null +++ b/services/iotsitewise/src/main/scala/facade/amazonaws/services/IoTSiteWise.scala @@ -0,0 +1,4279 @@ +package facade.amazonaws.services + +import scalajs._ +import scalajs.js.annotation.JSImport +import scala.scalajs.js.| +import scala.concurrent.Future +import facade.amazonaws._ + +package object iotsitewise { + type ARN = String + type AccessPolicySummaries = js.Array[AccessPolicySummary] + type AggregateTypes = js.Array[AggregateType] + type AggregatedDoubleValue = Double + type AggregatedValues = js.Array[AggregatedValue] + type AmazonResourceName = String + type AssetErrorMessage = String + type AssetHierarchies = js.Array[AssetHierarchy] + type AssetIDs = js.Array[ID] + type AssetModelHierarchies = js.Array[AssetModelHierarchy] + type AssetModelHierarchyDefinitions = js.Array[AssetModelHierarchyDefinition] + type AssetModelProperties = js.Array[AssetModelProperty] + type AssetModelPropertyDefinitions = js.Array[AssetModelPropertyDefinition] + type AssetModelSummaries = js.Array[AssetModelSummary] + type AssetProperties = js.Array[AssetProperty] + type AssetPropertyAlias = String + type AssetPropertyValueHistory = js.Array[AssetPropertyValue] + type AssetPropertyValues = js.Array[AssetPropertyValue] + type AssetSummaries = js.Array[AssetSummary] + type AssociatedAssetsSummaries = js.Array[AssociatedAssetsSummary] + type BatchAssociateProjectAssetsErrors = js.Array[AssetErrorDetails] + type BatchDisassociateProjectAssetsErrors = js.Array[AssetErrorDetails] + type BatchPutAssetPropertyErrorEntries = js.Array[BatchPutAssetPropertyErrorEntry] + type BatchPutAssetPropertyErrors = js.Array[BatchPutAssetPropertyError] + type CapabilityConfiguration = String + type CapabilityNamespace = String + type ClientToken = String + type DashboardDefinition = String + type DashboardSummaries = js.Array[DashboardSummary] + type DefaultValue = String + type Description = String + type Email = String + type EntryId = String + type ErrorMessage = String + type Expression = String + type ExpressionVariables = js.Array[ExpressionVariable] + type GatewayCapabilitySummaries = js.Array[GatewayCapabilitySummary] + type GatewaySummaries = js.Array[GatewaySummary] + type ID = String + type IDs = js.Array[ID] + type IdentityId = String + type ImageFileData = js.typedarray.TypedArray[_, _] | js.Array[Byte] | String + type Interval = String + type Macro = String + type MaxResults = Int + type MonitorErrorMessage = String + type Name = String + type NextToken = String + type OffsetInNanos = Int + type PortalClientId = String + type PortalSummaries = js.Array[PortalSummary] + type ProjectSummaries = js.Array[ProjectSummary] + type PropertyAlias = String + type PropertyNotificationTopic = String + type PropertyUnit = String + type PropertyValueBooleanValue = Boolean + type PropertyValueDoubleValue = Double + type PropertyValueIntegerValue = Int + type PropertyValueStringValue = String + type PutAssetPropertyValueEntries = js.Array[PutAssetPropertyValueEntry] + type Qualities = js.Array[Quality] + type Resolution = String + type SSOApplicationId = String + type TagKey = String + type TagKeyList = js.Array[TagKey] + type TagMap = js.Dictionary[TagValue] + type TagValue = String + type TimeInSeconds = Double + type Timestamp = js.Date + type Timestamps = js.Array[TimeInNanos] + type Url = String + type VariableName = String + + implicit final class IoTSiteWiseOps(private val service: IoTSiteWise) extends AnyVal { + + @inline def associateAssetsFuture(params: AssociateAssetsRequest): Future[js.Object] = + service.associateAssets(params).promise().toFuture + @inline def batchAssociateProjectAssetsFuture( + params: BatchAssociateProjectAssetsRequest + ): Future[BatchAssociateProjectAssetsResponse] = service.batchAssociateProjectAssets(params).promise().toFuture + @inline def batchDisassociateProjectAssetsFuture( + params: BatchDisassociateProjectAssetsRequest + ): Future[BatchDisassociateProjectAssetsResponse] = + service.batchDisassociateProjectAssets(params).promise().toFuture + @inline def batchPutAssetPropertyValueFuture( + params: BatchPutAssetPropertyValueRequest + ): Future[BatchPutAssetPropertyValueResponse] = service.batchPutAssetPropertyValue(params).promise().toFuture + @inline def createAccessPolicyFuture(params: CreateAccessPolicyRequest): Future[CreateAccessPolicyResponse] = + service.createAccessPolicy(params).promise().toFuture + @inline def createAssetFuture(params: CreateAssetRequest): Future[CreateAssetResponse] = + service.createAsset(params).promise().toFuture + @inline def createAssetModelFuture(params: CreateAssetModelRequest): Future[CreateAssetModelResponse] = + service.createAssetModel(params).promise().toFuture + @inline def createDashboardFuture(params: CreateDashboardRequest): Future[CreateDashboardResponse] = + service.createDashboard(params).promise().toFuture + @inline def createGatewayFuture(params: CreateGatewayRequest): Future[CreateGatewayResponse] = + service.createGateway(params).promise().toFuture + @inline def createPortalFuture(params: CreatePortalRequest): Future[CreatePortalResponse] = + service.createPortal(params).promise().toFuture + @inline def createProjectFuture(params: CreateProjectRequest): Future[CreateProjectResponse] = + service.createProject(params).promise().toFuture + @inline def deleteAccessPolicyFuture(params: DeleteAccessPolicyRequest): Future[DeleteAccessPolicyResponse] = + service.deleteAccessPolicy(params).promise().toFuture + @inline def deleteAssetFuture(params: DeleteAssetRequest): Future[DeleteAssetResponse] = + service.deleteAsset(params).promise().toFuture + @inline def deleteAssetModelFuture(params: DeleteAssetModelRequest): Future[DeleteAssetModelResponse] = + service.deleteAssetModel(params).promise().toFuture + @inline def deleteDashboardFuture(params: DeleteDashboardRequest): Future[DeleteDashboardResponse] = + service.deleteDashboard(params).promise().toFuture + @inline def deleteGatewayFuture(params: DeleteGatewayRequest): Future[js.Object] = + service.deleteGateway(params).promise().toFuture + @inline def deletePortalFuture(params: DeletePortalRequest): Future[DeletePortalResponse] = + service.deletePortal(params).promise().toFuture + @inline def deleteProjectFuture(params: DeleteProjectRequest): Future[DeleteProjectResponse] = + service.deleteProject(params).promise().toFuture + @inline def describeAccessPolicyFuture(params: DescribeAccessPolicyRequest): Future[DescribeAccessPolicyResponse] = + service.describeAccessPolicy(params).promise().toFuture + @inline def describeAssetFuture(params: DescribeAssetRequest): Future[DescribeAssetResponse] = + service.describeAsset(params).promise().toFuture + @inline def describeAssetModelFuture(params: DescribeAssetModelRequest): Future[DescribeAssetModelResponse] = + service.describeAssetModel(params).promise().toFuture + @inline def describeAssetPropertyFuture( + params: DescribeAssetPropertyRequest + ): Future[DescribeAssetPropertyResponse] = service.describeAssetProperty(params).promise().toFuture + @inline def describeDashboardFuture(params: DescribeDashboardRequest): Future[DescribeDashboardResponse] = + service.describeDashboard(params).promise().toFuture + @inline def describeGatewayCapabilityConfigurationFuture( + params: DescribeGatewayCapabilityConfigurationRequest + ): Future[DescribeGatewayCapabilityConfigurationResponse] = + service.describeGatewayCapabilityConfiguration(params).promise().toFuture + @inline def describeGatewayFuture(params: DescribeGatewayRequest): Future[DescribeGatewayResponse] = + service.describeGateway(params).promise().toFuture + @inline def describeLoggingOptionsFuture( + params: DescribeLoggingOptionsRequest + ): Future[DescribeLoggingOptionsResponse] = service.describeLoggingOptions(params).promise().toFuture + @inline def describePortalFuture(params: DescribePortalRequest): Future[DescribePortalResponse] = + service.describePortal(params).promise().toFuture + @inline def describeProjectFuture(params: DescribeProjectRequest): Future[DescribeProjectResponse] = + service.describeProject(params).promise().toFuture + @inline def disassociateAssetsFuture(params: DisassociateAssetsRequest): Future[js.Object] = + service.disassociateAssets(params).promise().toFuture + @inline def getAssetPropertyAggregatesFuture( + params: GetAssetPropertyAggregatesRequest + ): Future[GetAssetPropertyAggregatesResponse] = service.getAssetPropertyAggregates(params).promise().toFuture + @inline def getAssetPropertyValueFuture( + params: GetAssetPropertyValueRequest + ): Future[GetAssetPropertyValueResponse] = service.getAssetPropertyValue(params).promise().toFuture + @inline def getAssetPropertyValueHistoryFuture( + params: GetAssetPropertyValueHistoryRequest + ): Future[GetAssetPropertyValueHistoryResponse] = service.getAssetPropertyValueHistory(params).promise().toFuture + @inline def listAccessPoliciesFuture(params: ListAccessPoliciesRequest): Future[ListAccessPoliciesResponse] = + service.listAccessPolicies(params).promise().toFuture + @inline def listAssetModelsFuture(params: ListAssetModelsRequest): Future[ListAssetModelsResponse] = + service.listAssetModels(params).promise().toFuture + @inline def listAssetsFuture(params: ListAssetsRequest): Future[ListAssetsResponse] = + service.listAssets(params).promise().toFuture + @inline def listAssociatedAssetsFuture(params: ListAssociatedAssetsRequest): Future[ListAssociatedAssetsResponse] = + service.listAssociatedAssets(params).promise().toFuture + @inline def listDashboardsFuture(params: ListDashboardsRequest): Future[ListDashboardsResponse] = + service.listDashboards(params).promise().toFuture + @inline def listGatewaysFuture(params: ListGatewaysRequest): Future[ListGatewaysResponse] = + service.listGateways(params).promise().toFuture + @inline def listPortalsFuture(params: ListPortalsRequest): Future[ListPortalsResponse] = + service.listPortals(params).promise().toFuture + @inline def listProjectAssetsFuture(params: ListProjectAssetsRequest): Future[ListProjectAssetsResponse] = + service.listProjectAssets(params).promise().toFuture + @inline def listProjectsFuture(params: ListProjectsRequest): Future[ListProjectsResponse] = + service.listProjects(params).promise().toFuture + @inline def listTagsForResourceFuture(params: ListTagsForResourceRequest): Future[ListTagsForResourceResponse] = + service.listTagsForResource(params).promise().toFuture + @inline def putLoggingOptionsFuture(params: PutLoggingOptionsRequest): Future[PutLoggingOptionsResponse] = + service.putLoggingOptions(params).promise().toFuture + @inline def tagResourceFuture(params: TagResourceRequest): Future[TagResourceResponse] = + service.tagResource(params).promise().toFuture + @inline def untagResourceFuture(params: UntagResourceRequest): Future[UntagResourceResponse] = + service.untagResource(params).promise().toFuture + @inline def updateAccessPolicyFuture(params: UpdateAccessPolicyRequest): Future[UpdateAccessPolicyResponse] = + service.updateAccessPolicy(params).promise().toFuture + @inline def updateAssetFuture(params: UpdateAssetRequest): Future[UpdateAssetResponse] = + service.updateAsset(params).promise().toFuture + @inline def updateAssetModelFuture(params: UpdateAssetModelRequest): Future[UpdateAssetModelResponse] = + service.updateAssetModel(params).promise().toFuture + @inline def updateAssetPropertyFuture(params: UpdateAssetPropertyRequest): Future[js.Object] = + service.updateAssetProperty(params).promise().toFuture + @inline def updateDashboardFuture(params: UpdateDashboardRequest): Future[UpdateDashboardResponse] = + service.updateDashboard(params).promise().toFuture + @inline def updateGatewayCapabilityConfigurationFuture( + params: UpdateGatewayCapabilityConfigurationRequest + ): Future[UpdateGatewayCapabilityConfigurationResponse] = + service.updateGatewayCapabilityConfiguration(params).promise().toFuture + @inline def updateGatewayFuture(params: UpdateGatewayRequest): Future[js.Object] = + service.updateGateway(params).promise().toFuture + @inline def updatePortalFuture(params: UpdatePortalRequest): Future[UpdatePortalResponse] = + service.updatePortal(params).promise().toFuture + @inline def updateProjectFuture(params: UpdateProjectRequest): Future[UpdateProjectResponse] = + service.updateProject(params).promise().toFuture + } +} + +package iotsitewise { + @js.native + @JSImport("aws-sdk", "IoTSiteWise", "AWS.IoTSiteWise") + class IoTSiteWise() extends js.Object { + def this(config: AWSConfig) = this() + + def associateAssets(params: AssociateAssetsRequest): Request[js.Object] = js.native + def batchAssociateProjectAssets( + params: BatchAssociateProjectAssetsRequest + ): Request[BatchAssociateProjectAssetsResponse] = js.native + def batchDisassociateProjectAssets( + params: BatchDisassociateProjectAssetsRequest + ): Request[BatchDisassociateProjectAssetsResponse] = js.native + def batchPutAssetPropertyValue( + params: BatchPutAssetPropertyValueRequest + ): Request[BatchPutAssetPropertyValueResponse] = js.native + def createAccessPolicy(params: CreateAccessPolicyRequest): Request[CreateAccessPolicyResponse] = js.native + def createAsset(params: CreateAssetRequest): Request[CreateAssetResponse] = js.native + def createAssetModel(params: CreateAssetModelRequest): Request[CreateAssetModelResponse] = js.native + def createDashboard(params: CreateDashboardRequest): Request[CreateDashboardResponse] = js.native + def createGateway(params: CreateGatewayRequest): Request[CreateGatewayResponse] = js.native + def createPortal(params: CreatePortalRequest): Request[CreatePortalResponse] = js.native + def createProject(params: CreateProjectRequest): Request[CreateProjectResponse] = js.native + def deleteAccessPolicy(params: DeleteAccessPolicyRequest): Request[DeleteAccessPolicyResponse] = js.native + def deleteAsset(params: DeleteAssetRequest): Request[DeleteAssetResponse] = js.native + def deleteAssetModel(params: DeleteAssetModelRequest): Request[DeleteAssetModelResponse] = js.native + def deleteDashboard(params: DeleteDashboardRequest): Request[DeleteDashboardResponse] = js.native + def deleteGateway(params: DeleteGatewayRequest): Request[js.Object] = js.native + def deletePortal(params: DeletePortalRequest): Request[DeletePortalResponse] = js.native + def deleteProject(params: DeleteProjectRequest): Request[DeleteProjectResponse] = js.native + def describeAccessPolicy(params: DescribeAccessPolicyRequest): Request[DescribeAccessPolicyResponse] = js.native + def describeAsset(params: DescribeAssetRequest): Request[DescribeAssetResponse] = js.native + def describeAssetModel(params: DescribeAssetModelRequest): Request[DescribeAssetModelResponse] = js.native + def describeAssetProperty(params: DescribeAssetPropertyRequest): Request[DescribeAssetPropertyResponse] = js.native + def describeDashboard(params: DescribeDashboardRequest): Request[DescribeDashboardResponse] = js.native + def describeGateway(params: DescribeGatewayRequest): Request[DescribeGatewayResponse] = js.native + def describeGatewayCapabilityConfiguration( + params: DescribeGatewayCapabilityConfigurationRequest + ): Request[DescribeGatewayCapabilityConfigurationResponse] = js.native + def describeLoggingOptions(params: DescribeLoggingOptionsRequest): Request[DescribeLoggingOptionsResponse] = + js.native + def describePortal(params: DescribePortalRequest): Request[DescribePortalResponse] = js.native + def describeProject(params: DescribeProjectRequest): Request[DescribeProjectResponse] = js.native + def disassociateAssets(params: DisassociateAssetsRequest): Request[js.Object] = js.native + def getAssetPropertyAggregates( + params: GetAssetPropertyAggregatesRequest + ): Request[GetAssetPropertyAggregatesResponse] = js.native + def getAssetPropertyValue(params: GetAssetPropertyValueRequest): Request[GetAssetPropertyValueResponse] = js.native + def getAssetPropertyValueHistory( + params: GetAssetPropertyValueHistoryRequest + ): Request[GetAssetPropertyValueHistoryResponse] = js.native + def listAccessPolicies(params: ListAccessPoliciesRequest): Request[ListAccessPoliciesResponse] = js.native + def listAssetModels(params: ListAssetModelsRequest): Request[ListAssetModelsResponse] = js.native + def listAssets(params: ListAssetsRequest): Request[ListAssetsResponse] = js.native + def listAssociatedAssets(params: ListAssociatedAssetsRequest): Request[ListAssociatedAssetsResponse] = js.native + def listDashboards(params: ListDashboardsRequest): Request[ListDashboardsResponse] = js.native + def listGateways(params: ListGatewaysRequest): Request[ListGatewaysResponse] = js.native + def listPortals(params: ListPortalsRequest): Request[ListPortalsResponse] = js.native + def listProjectAssets(params: ListProjectAssetsRequest): Request[ListProjectAssetsResponse] = js.native + def listProjects(params: ListProjectsRequest): Request[ListProjectsResponse] = js.native + def listTagsForResource(params: ListTagsForResourceRequest): Request[ListTagsForResourceResponse] = js.native + def putLoggingOptions(params: PutLoggingOptionsRequest): Request[PutLoggingOptionsResponse] = js.native + def tagResource(params: TagResourceRequest): Request[TagResourceResponse] = js.native + def untagResource(params: UntagResourceRequest): Request[UntagResourceResponse] = js.native + def updateAccessPolicy(params: UpdateAccessPolicyRequest): Request[UpdateAccessPolicyResponse] = js.native + def updateAsset(params: UpdateAssetRequest): Request[UpdateAssetResponse] = js.native + def updateAssetModel(params: UpdateAssetModelRequest): Request[UpdateAssetModelResponse] = js.native + def updateAssetProperty(params: UpdateAssetPropertyRequest): Request[js.Object] = js.native + def updateDashboard(params: UpdateDashboardRequest): Request[UpdateDashboardResponse] = js.native + def updateGateway(params: UpdateGatewayRequest): Request[js.Object] = js.native + def updateGatewayCapabilityConfiguration( + params: UpdateGatewayCapabilityConfigurationRequest + ): Request[UpdateGatewayCapabilityConfigurationResponse] = js.native + def updatePortal(params: UpdatePortalRequest): Request[UpdatePortalResponse] = js.native + def updateProject(params: UpdateProjectRequest): Request[UpdateProjectResponse] = js.native + } + + /** + * Contains an access policy that defines an AWS SSO identity's access to an AWS IoT SiteWise Monitor resource. + */ + @js.native + trait AccessPolicySummary extends js.Object { + var id: ID + var identity: Identity + var permission: Permission + var resource: Resource + var creationDate: js.UndefOr[Timestamp] + var lastUpdateDate: js.UndefOr[Timestamp] + } + + object AccessPolicySummary { + @inline + def apply( + id: ID, + identity: Identity, + permission: Permission, + resource: Resource, + creationDate: js.UndefOr[Timestamp] = js.undefined, + lastUpdateDate: js.UndefOr[Timestamp] = js.undefined + ): AccessPolicySummary = { + val __obj = js.Dynamic.literal( + "id" -> id.asInstanceOf[js.Any], + "identity" -> identity.asInstanceOf[js.Any], + "permission" -> permission.asInstanceOf[js.Any], + "resource" -> resource.asInstanceOf[js.Any] + ) + + creationDate.foreach(__v => __obj.updateDynamic("creationDate")(__v.asInstanceOf[js.Any])) + lastUpdateDate.foreach(__v => __obj.updateDynamic("lastUpdateDate")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[AccessPolicySummary] + } + } + + @js.native + sealed trait AggregateType extends js.Any + object AggregateType extends js.Object { + val AVERAGE = "AVERAGE".asInstanceOf[AggregateType] + val COUNT = "COUNT".asInstanceOf[AggregateType] + val MAXIMUM = "MAXIMUM".asInstanceOf[AggregateType] + val MINIMUM = "MINIMUM".asInstanceOf[AggregateType] + val SUM = "SUM".asInstanceOf[AggregateType] + val STANDARD_DEVIATION = "STANDARD_DEVIATION".asInstanceOf[AggregateType] + + val values = js.Object.freeze(js.Array(AVERAGE, COUNT, MAXIMUM, MINIMUM, SUM, STANDARD_DEVIATION)) + } + + /** + * Contains aggregated asset property values (for example, average, minimum, and maximum). + */ + @js.native + trait AggregatedValue extends js.Object { + var timestamp: Timestamp + var value: Aggregates + var quality: js.UndefOr[Quality] + } + + object AggregatedValue { + @inline + def apply( + timestamp: Timestamp, + value: Aggregates, + quality: js.UndefOr[Quality] = js.undefined + ): AggregatedValue = { + val __obj = js.Dynamic.literal( + "timestamp" -> timestamp.asInstanceOf[js.Any], + "value" -> value.asInstanceOf[js.Any] + ) + + quality.foreach(__v => __obj.updateDynamic("quality")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[AggregatedValue] + } + } + + /** + * Contains the (pre-calculated) aggregate values for an asset property. + */ + @js.native + trait Aggregates extends js.Object { + var average: js.UndefOr[AggregatedDoubleValue] + var count: js.UndefOr[AggregatedDoubleValue] + var maximum: js.UndefOr[AggregatedDoubleValue] + var minimum: js.UndefOr[AggregatedDoubleValue] + var standardDeviation: js.UndefOr[AggregatedDoubleValue] + var sum: js.UndefOr[AggregatedDoubleValue] + } + + object Aggregates { + @inline + def apply( + average: js.UndefOr[AggregatedDoubleValue] = js.undefined, + count: js.UndefOr[AggregatedDoubleValue] = js.undefined, + maximum: js.UndefOr[AggregatedDoubleValue] = js.undefined, + minimum: js.UndefOr[AggregatedDoubleValue] = js.undefined, + standardDeviation: js.UndefOr[AggregatedDoubleValue] = js.undefined, + sum: js.UndefOr[AggregatedDoubleValue] = js.undefined + ): Aggregates = { + val __obj = js.Dynamic.literal() + average.foreach(__v => __obj.updateDynamic("average")(__v.asInstanceOf[js.Any])) + count.foreach(__v => __obj.updateDynamic("count")(__v.asInstanceOf[js.Any])) + maximum.foreach(__v => __obj.updateDynamic("maximum")(__v.asInstanceOf[js.Any])) + minimum.foreach(__v => __obj.updateDynamic("minimum")(__v.asInstanceOf[js.Any])) + standardDeviation.foreach(__v => __obj.updateDynamic("standardDeviation")(__v.asInstanceOf[js.Any])) + sum.foreach(__v => __obj.updateDynamic("sum")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[Aggregates] + } + } + + @js.native + sealed trait AssetErrorCode extends js.Any + object AssetErrorCode extends js.Object { + val INTERNAL_FAILURE = "INTERNAL_FAILURE".asInstanceOf[AssetErrorCode] + + val values = js.Object.freeze(js.Array(INTERNAL_FAILURE)) + } + + /** + * Contains error details for the requested associate project asset action. + */ + @js.native + trait AssetErrorDetails extends js.Object { + var assetId: ID + var code: AssetErrorCode + var message: AssetErrorMessage + } + + object AssetErrorDetails { + @inline + def apply( + assetId: ID, + code: AssetErrorCode, + message: AssetErrorMessage + ): AssetErrorDetails = { + val __obj = js.Dynamic.literal( + "assetId" -> assetId.asInstanceOf[js.Any], + "code" -> code.asInstanceOf[js.Any], + "message" -> message.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[AssetErrorDetails] + } + } + + /** + * Describes an asset hierarchy that contains a hierarchy's name and ID. + */ + @js.native + trait AssetHierarchy extends js.Object { + var name: Name + var id: js.UndefOr[ID] + } + + object AssetHierarchy { + @inline + def apply( + name: Name, + id: js.UndefOr[ID] = js.undefined + ): AssetHierarchy = { + val __obj = js.Dynamic.literal( + "name" -> name.asInstanceOf[js.Any] + ) + + id.foreach(__v => __obj.updateDynamic("id")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[AssetHierarchy] + } + } + + /** + * Describes an asset hierarchy that contains a hierarchy's name, ID, and child asset model ID that specifies the type of asset that can be in this hierarchy. + */ + @js.native + trait AssetModelHierarchy extends js.Object { + var childAssetModelId: ID + var name: Name + var id: js.UndefOr[ID] + } + + object AssetModelHierarchy { + @inline + def apply( + childAssetModelId: ID, + name: Name, + id: js.UndefOr[ID] = js.undefined + ): AssetModelHierarchy = { + val __obj = js.Dynamic.literal( + "childAssetModelId" -> childAssetModelId.asInstanceOf[js.Any], + "name" -> name.asInstanceOf[js.Any] + ) + + id.foreach(__v => __obj.updateDynamic("id")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[AssetModelHierarchy] + } + } + + /** + * Contains an asset model hierarchy used in asset model creation. An asset model hierarchy determines the kind (or type) of asset that can belong to a hierarchy. + */ + @js.native + trait AssetModelHierarchyDefinition extends js.Object { + var childAssetModelId: ID + var name: Name + } + + object AssetModelHierarchyDefinition { + @inline + def apply( + childAssetModelId: ID, + name: Name + ): AssetModelHierarchyDefinition = { + val __obj = js.Dynamic.literal( + "childAssetModelId" -> childAssetModelId.asInstanceOf[js.Any], + "name" -> name.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[AssetModelHierarchyDefinition] + } + } + + /** + * Contains information about an asset model property. + */ + @js.native + trait AssetModelProperty extends js.Object { + var dataType: PropertyDataType + var name: Name + var `type`: PropertyType + var id: js.UndefOr[ID] + var unit: js.UndefOr[PropertyUnit] + } + + object AssetModelProperty { + @inline + def apply( + dataType: PropertyDataType, + name: Name, + `type`: PropertyType, + id: js.UndefOr[ID] = js.undefined, + unit: js.UndefOr[PropertyUnit] = js.undefined + ): AssetModelProperty = { + val __obj = js.Dynamic.literal( + "dataType" -> dataType.asInstanceOf[js.Any], + "name" -> name.asInstanceOf[js.Any], + "type" -> `type`.asInstanceOf[js.Any] + ) + + id.foreach(__v => __obj.updateDynamic("id")(__v.asInstanceOf[js.Any])) + unit.foreach(__v => __obj.updateDynamic("unit")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[AssetModelProperty] + } + } + + /** + * Contains an asset model property definition. This property definition is applied to all assets created from the asset model. + */ + @js.native + trait AssetModelPropertyDefinition extends js.Object { + var dataType: PropertyDataType + var name: Name + var `type`: PropertyType + var unit: js.UndefOr[PropertyUnit] + } + + object AssetModelPropertyDefinition { + @inline + def apply( + dataType: PropertyDataType, + name: Name, + `type`: PropertyType, + unit: js.UndefOr[PropertyUnit] = js.undefined + ): AssetModelPropertyDefinition = { + val __obj = js.Dynamic.literal( + "dataType" -> dataType.asInstanceOf[js.Any], + "name" -> name.asInstanceOf[js.Any], + "type" -> `type`.asInstanceOf[js.Any] + ) + + unit.foreach(__v => __obj.updateDynamic("unit")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[AssetModelPropertyDefinition] + } + } + + @js.native + sealed trait AssetModelState extends js.Any + object AssetModelState extends js.Object { + val CREATING = "CREATING".asInstanceOf[AssetModelState] + val ACTIVE = "ACTIVE".asInstanceOf[AssetModelState] + val UPDATING = "UPDATING".asInstanceOf[AssetModelState] + val PROPAGATING = "PROPAGATING".asInstanceOf[AssetModelState] + val DELETING = "DELETING".asInstanceOf[AssetModelState] + val FAILED = "FAILED".asInstanceOf[AssetModelState] + + val values = js.Object.freeze(js.Array(CREATING, ACTIVE, UPDATING, PROPAGATING, DELETING, FAILED)) + } + + /** + * Contains current status information for an asset model. For more information, see [[https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-and-model-states.html|Asset and Model States]] in the AWS IoT SiteWise User Guide. + */ + @js.native + trait AssetModelStatus extends js.Object { + var state: AssetModelState + var error: js.UndefOr[ErrorDetails] + } + + object AssetModelStatus { + @inline + def apply( + state: AssetModelState, + error: js.UndefOr[ErrorDetails] = js.undefined + ): AssetModelStatus = { + val __obj = js.Dynamic.literal( + "state" -> state.asInstanceOf[js.Any] + ) + + error.foreach(__v => __obj.updateDynamic("error")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[AssetModelStatus] + } + } + + /** + * Contains a summary of an asset model. + */ + @js.native + trait AssetModelSummary extends js.Object { + var arn: ARN + var creationDate: Timestamp + var description: Description + var id: ID + var lastUpdateDate: Timestamp + var name: Name + var status: AssetModelStatus + } + + object AssetModelSummary { + @inline + def apply( + arn: ARN, + creationDate: Timestamp, + description: Description, + id: ID, + lastUpdateDate: Timestamp, + name: Name, + status: AssetModelStatus + ): AssetModelSummary = { + val __obj = js.Dynamic.literal( + "arn" -> arn.asInstanceOf[js.Any], + "creationDate" -> creationDate.asInstanceOf[js.Any], + "description" -> description.asInstanceOf[js.Any], + "id" -> id.asInstanceOf[js.Any], + "lastUpdateDate" -> lastUpdateDate.asInstanceOf[js.Any], + "name" -> name.asInstanceOf[js.Any], + "status" -> status.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[AssetModelSummary] + } + } + + /** + * Contains asset property information. + */ + @js.native + trait AssetProperty extends js.Object { + var dataType: PropertyDataType + var id: ID + var name: Name + var alias: js.UndefOr[PropertyAlias] + var notification: js.UndefOr[PropertyNotification] + var unit: js.UndefOr[PropertyUnit] + } + + object AssetProperty { + @inline + def apply( + dataType: PropertyDataType, + id: ID, + name: Name, + alias: js.UndefOr[PropertyAlias] = js.undefined, + notification: js.UndefOr[PropertyNotification] = js.undefined, + unit: js.UndefOr[PropertyUnit] = js.undefined + ): AssetProperty = { + val __obj = js.Dynamic.literal( + "dataType" -> dataType.asInstanceOf[js.Any], + "id" -> id.asInstanceOf[js.Any], + "name" -> name.asInstanceOf[js.Any] + ) + + alias.foreach(__v => __obj.updateDynamic("alias")(__v.asInstanceOf[js.Any])) + notification.foreach(__v => __obj.updateDynamic("notification")(__v.asInstanceOf[js.Any])) + unit.foreach(__v => __obj.updateDynamic("unit")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[AssetProperty] + } + } + + /** + * Contains asset property value information. + */ + @js.native + trait AssetPropertyValue extends js.Object { + var timestamp: TimeInNanos + var value: Variant + var quality: js.UndefOr[Quality] + } + + object AssetPropertyValue { + @inline + def apply( + timestamp: TimeInNanos, + value: Variant, + quality: js.UndefOr[Quality] = js.undefined + ): AssetPropertyValue = { + val __obj = js.Dynamic.literal( + "timestamp" -> timestamp.asInstanceOf[js.Any], + "value" -> value.asInstanceOf[js.Any] + ) + + quality.foreach(__v => __obj.updateDynamic("quality")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[AssetPropertyValue] + } + } + + @js.native + sealed trait AssetState extends js.Any + object AssetState extends js.Object { + val CREATING = "CREATING".asInstanceOf[AssetState] + val ACTIVE = "ACTIVE".asInstanceOf[AssetState] + val UPDATING = "UPDATING".asInstanceOf[AssetState] + val DELETING = "DELETING".asInstanceOf[AssetState] + val FAILED = "FAILED".asInstanceOf[AssetState] + + val values = js.Object.freeze(js.Array(CREATING, ACTIVE, UPDATING, DELETING, FAILED)) + } + + /** + * Contains information about the current status of an asset. For more information, see [[https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-and-model-states.html|Asset and Model States]] in the AWS IoT SiteWise User Guide. + */ + @js.native + trait AssetStatus extends js.Object { + var state: AssetState + var error: js.UndefOr[ErrorDetails] + } + + object AssetStatus { + @inline + def apply( + state: AssetState, + error: js.UndefOr[ErrorDetails] = js.undefined + ): AssetStatus = { + val __obj = js.Dynamic.literal( + "state" -> state.asInstanceOf[js.Any] + ) + + error.foreach(__v => __obj.updateDynamic("error")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[AssetStatus] + } + } + + /** + * Contains a summary of an asset. + */ + @js.native + trait AssetSummary extends js.Object { + var arn: ARN + var assetModelId: ID + var creationDate: Timestamp + var hierarchies: AssetHierarchies + var id: ID + var lastUpdateDate: Timestamp + var name: Name + var status: AssetStatus + } + + object AssetSummary { + @inline + def apply( + arn: ARN, + assetModelId: ID, + creationDate: Timestamp, + hierarchies: AssetHierarchies, + id: ID, + lastUpdateDate: Timestamp, + name: Name, + status: AssetStatus + ): AssetSummary = { + val __obj = js.Dynamic.literal( + "arn" -> arn.asInstanceOf[js.Any], + "assetModelId" -> assetModelId.asInstanceOf[js.Any], + "creationDate" -> creationDate.asInstanceOf[js.Any], + "hierarchies" -> hierarchies.asInstanceOf[js.Any], + "id" -> id.asInstanceOf[js.Any], + "lastUpdateDate" -> lastUpdateDate.asInstanceOf[js.Any], + "name" -> name.asInstanceOf[js.Any], + "status" -> status.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[AssetSummary] + } + } + + @js.native + trait AssociateAssetsRequest extends js.Object { + var assetId: ID + var childAssetId: ID + var hierarchyId: ID + var clientToken: js.UndefOr[ClientToken] + } + + object AssociateAssetsRequest { + @inline + def apply( + assetId: ID, + childAssetId: ID, + hierarchyId: ID, + clientToken: js.UndefOr[ClientToken] = js.undefined + ): AssociateAssetsRequest = { + val __obj = js.Dynamic.literal( + "assetId" -> assetId.asInstanceOf[js.Any], + "childAssetId" -> childAssetId.asInstanceOf[js.Any], + "hierarchyId" -> hierarchyId.asInstanceOf[js.Any] + ) + + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[AssociateAssetsRequest] + } + } + + /** + * Contains a summary of an associated asset. + */ + @js.native + trait AssociatedAssetsSummary extends js.Object { + var arn: ARN + var assetModelId: ID + var creationDate: Timestamp + var hierarchies: AssetHierarchies + var id: ID + var lastUpdateDate: Timestamp + var name: Name + var status: AssetStatus + } + + object AssociatedAssetsSummary { + @inline + def apply( + arn: ARN, + assetModelId: ID, + creationDate: Timestamp, + hierarchies: AssetHierarchies, + id: ID, + lastUpdateDate: Timestamp, + name: Name, + status: AssetStatus + ): AssociatedAssetsSummary = { + val __obj = js.Dynamic.literal( + "arn" -> arn.asInstanceOf[js.Any], + "assetModelId" -> assetModelId.asInstanceOf[js.Any], + "creationDate" -> creationDate.asInstanceOf[js.Any], + "hierarchies" -> hierarchies.asInstanceOf[js.Any], + "id" -> id.asInstanceOf[js.Any], + "lastUpdateDate" -> lastUpdateDate.asInstanceOf[js.Any], + "name" -> name.asInstanceOf[js.Any], + "status" -> status.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[AssociatedAssetsSummary] + } + } + + /** + * Contains an asset attribute property. For more information, see [[https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-properties.html#attributes|Attributes]] in the AWS IoT SiteWise User Guide. + */ + @js.native + trait Attribute extends js.Object { + var defaultValue: js.UndefOr[DefaultValue] + } + + object Attribute { + @inline + def apply( + defaultValue: js.UndefOr[DefaultValue] = js.undefined + ): Attribute = { + val __obj = js.Dynamic.literal() + defaultValue.foreach(__v => __obj.updateDynamic("defaultValue")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[Attribute] + } + } + + @js.native + trait BatchAssociateProjectAssetsRequest extends js.Object { + var assetIds: IDs + var projectId: ID + var clientToken: js.UndefOr[ClientToken] + } + + object BatchAssociateProjectAssetsRequest { + @inline + def apply( + assetIds: IDs, + projectId: ID, + clientToken: js.UndefOr[ClientToken] = js.undefined + ): BatchAssociateProjectAssetsRequest = { + val __obj = js.Dynamic.literal( + "assetIds" -> assetIds.asInstanceOf[js.Any], + "projectId" -> projectId.asInstanceOf[js.Any] + ) + + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[BatchAssociateProjectAssetsRequest] + } + } + + @js.native + trait BatchAssociateProjectAssetsResponse extends js.Object { + var errors: js.UndefOr[BatchAssociateProjectAssetsErrors] + } + + object BatchAssociateProjectAssetsResponse { + @inline + def apply( + errors: js.UndefOr[BatchAssociateProjectAssetsErrors] = js.undefined + ): BatchAssociateProjectAssetsResponse = { + val __obj = js.Dynamic.literal() + errors.foreach(__v => __obj.updateDynamic("errors")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[BatchAssociateProjectAssetsResponse] + } + } + + @js.native + trait BatchDisassociateProjectAssetsRequest extends js.Object { + var assetIds: IDs + var projectId: ID + var clientToken: js.UndefOr[ClientToken] + } + + object BatchDisassociateProjectAssetsRequest { + @inline + def apply( + assetIds: IDs, + projectId: ID, + clientToken: js.UndefOr[ClientToken] = js.undefined + ): BatchDisassociateProjectAssetsRequest = { + val __obj = js.Dynamic.literal( + "assetIds" -> assetIds.asInstanceOf[js.Any], + "projectId" -> projectId.asInstanceOf[js.Any] + ) + + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[BatchDisassociateProjectAssetsRequest] + } + } + + @js.native + trait BatchDisassociateProjectAssetsResponse extends js.Object { + var errors: js.UndefOr[BatchDisassociateProjectAssetsErrors] + } + + object BatchDisassociateProjectAssetsResponse { + @inline + def apply( + errors: js.UndefOr[BatchDisassociateProjectAssetsErrors] = js.undefined + ): BatchDisassociateProjectAssetsResponse = { + val __obj = js.Dynamic.literal() + errors.foreach(__v => __obj.updateDynamic("errors")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[BatchDisassociateProjectAssetsResponse] + } + } + + /** + * Contains error information from updating a batch of asset property values. + */ + @js.native + trait BatchPutAssetPropertyError extends js.Object { + var errorCode: BatchPutAssetPropertyValueErrorCode + var errorMessage: ErrorMessage + var timestamps: Timestamps + } + + object BatchPutAssetPropertyError { + @inline + def apply( + errorCode: BatchPutAssetPropertyValueErrorCode, + errorMessage: ErrorMessage, + timestamps: Timestamps + ): BatchPutAssetPropertyError = { + val __obj = js.Dynamic.literal( + "errorCode" -> errorCode.asInstanceOf[js.Any], + "errorMessage" -> errorMessage.asInstanceOf[js.Any], + "timestamps" -> timestamps.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[BatchPutAssetPropertyError] + } + } + + /** + * Contains error information for asset property value entries that are associated with the [[https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchPutAssetPropertyValue.html|BatchPutAssetPropertyValue]] API. + */ + @js.native + trait BatchPutAssetPropertyErrorEntry extends js.Object { + var entryId: EntryId + var errors: BatchPutAssetPropertyErrors + } + + object BatchPutAssetPropertyErrorEntry { + @inline + def apply( + entryId: EntryId, + errors: BatchPutAssetPropertyErrors + ): BatchPutAssetPropertyErrorEntry = { + val __obj = js.Dynamic.literal( + "entryId" -> entryId.asInstanceOf[js.Any], + "errors" -> errors.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[BatchPutAssetPropertyErrorEntry] + } + } + + @js.native + sealed trait BatchPutAssetPropertyValueErrorCode extends js.Any + object BatchPutAssetPropertyValueErrorCode extends js.Object { + val ResourceNotFoundException = "ResourceNotFoundException".asInstanceOf[BatchPutAssetPropertyValueErrorCode] + val InvalidRequestException = "InvalidRequestException".asInstanceOf[BatchPutAssetPropertyValueErrorCode] + val InternalFailureException = "InternalFailureException".asInstanceOf[BatchPutAssetPropertyValueErrorCode] + val ServiceUnavailableException = "ServiceUnavailableException".asInstanceOf[BatchPutAssetPropertyValueErrorCode] + val ThrottlingException = "ThrottlingException".asInstanceOf[BatchPutAssetPropertyValueErrorCode] + val LimitExceededException = "LimitExceededException".asInstanceOf[BatchPutAssetPropertyValueErrorCode] + val ConflictingOperationException = + "ConflictingOperationException".asInstanceOf[BatchPutAssetPropertyValueErrorCode] + val TimestampOutOfRangeException = "TimestampOutOfRangeException".asInstanceOf[BatchPutAssetPropertyValueErrorCode] + val AccessDeniedException = "AccessDeniedException".asInstanceOf[BatchPutAssetPropertyValueErrorCode] + + val values = js.Object.freeze( + js.Array( + ResourceNotFoundException, + InvalidRequestException, + InternalFailureException, + ServiceUnavailableException, + ThrottlingException, + LimitExceededException, + ConflictingOperationException, + TimestampOutOfRangeException, + AccessDeniedException + ) + ) + } + + @js.native + trait BatchPutAssetPropertyValueRequest extends js.Object { + var entries: PutAssetPropertyValueEntries + } + + object BatchPutAssetPropertyValueRequest { + @inline + def apply( + entries: PutAssetPropertyValueEntries + ): BatchPutAssetPropertyValueRequest = { + val __obj = js.Dynamic.literal( + "entries" -> entries.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[BatchPutAssetPropertyValueRequest] + } + } + + @js.native + trait BatchPutAssetPropertyValueResponse extends js.Object { + var errorEntries: BatchPutAssetPropertyErrorEntries + } + + object BatchPutAssetPropertyValueResponse { + @inline + def apply( + errorEntries: BatchPutAssetPropertyErrorEntries + ): BatchPutAssetPropertyValueResponse = { + val __obj = js.Dynamic.literal( + "errorEntries" -> errorEntries.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[BatchPutAssetPropertyValueResponse] + } + } + + @js.native + sealed trait CapabilitySyncStatus extends js.Any + object CapabilitySyncStatus extends js.Object { + val IN_SYNC = "IN_SYNC".asInstanceOf[CapabilitySyncStatus] + val OUT_OF_SYNC = "OUT_OF_SYNC".asInstanceOf[CapabilitySyncStatus] + val SYNC_FAILED = "SYNC_FAILED".asInstanceOf[CapabilitySyncStatus] + + val values = js.Object.freeze(js.Array(IN_SYNC, OUT_OF_SYNC, SYNC_FAILED)) + } + + @js.native + trait CreateAccessPolicyRequest extends js.Object { + var accessPolicyIdentity: Identity + var accessPolicyPermission: Permission + var accessPolicyResource: Resource + var clientToken: js.UndefOr[ClientToken] + var tags: js.UndefOr[TagMap] + } + + object CreateAccessPolicyRequest { + @inline + def apply( + accessPolicyIdentity: Identity, + accessPolicyPermission: Permission, + accessPolicyResource: Resource, + clientToken: js.UndefOr[ClientToken] = js.undefined, + tags: js.UndefOr[TagMap] = js.undefined + ): CreateAccessPolicyRequest = { + val __obj = js.Dynamic.literal( + "accessPolicyIdentity" -> accessPolicyIdentity.asInstanceOf[js.Any], + "accessPolicyPermission" -> accessPolicyPermission.asInstanceOf[js.Any], + "accessPolicyResource" -> accessPolicyResource.asInstanceOf[js.Any] + ) + + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateAccessPolicyRequest] + } + } + + @js.native + trait CreateAccessPolicyResponse extends js.Object { + var accessPolicyArn: ARN + var accessPolicyId: ID + } + + object CreateAccessPolicyResponse { + @inline + def apply( + accessPolicyArn: ARN, + accessPolicyId: ID + ): CreateAccessPolicyResponse = { + val __obj = js.Dynamic.literal( + "accessPolicyArn" -> accessPolicyArn.asInstanceOf[js.Any], + "accessPolicyId" -> accessPolicyId.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[CreateAccessPolicyResponse] + } + } + + @js.native + trait CreateAssetModelRequest extends js.Object { + var assetModelName: Name + var assetModelDescription: js.UndefOr[Description] + var assetModelHierarchies: js.UndefOr[AssetModelHierarchyDefinitions] + var assetModelProperties: js.UndefOr[AssetModelPropertyDefinitions] + var clientToken: js.UndefOr[ClientToken] + var tags: js.UndefOr[TagMap] + } + + object CreateAssetModelRequest { + @inline + def apply( + assetModelName: Name, + assetModelDescription: js.UndefOr[Description] = js.undefined, + assetModelHierarchies: js.UndefOr[AssetModelHierarchyDefinitions] = js.undefined, + assetModelProperties: js.UndefOr[AssetModelPropertyDefinitions] = js.undefined, + clientToken: js.UndefOr[ClientToken] = js.undefined, + tags: js.UndefOr[TagMap] = js.undefined + ): CreateAssetModelRequest = { + val __obj = js.Dynamic.literal( + "assetModelName" -> assetModelName.asInstanceOf[js.Any] + ) + + assetModelDescription.foreach(__v => __obj.updateDynamic("assetModelDescription")(__v.asInstanceOf[js.Any])) + assetModelHierarchies.foreach(__v => __obj.updateDynamic("assetModelHierarchies")(__v.asInstanceOf[js.Any])) + assetModelProperties.foreach(__v => __obj.updateDynamic("assetModelProperties")(__v.asInstanceOf[js.Any])) + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateAssetModelRequest] + } + } + + @js.native + trait CreateAssetModelResponse extends js.Object { + var assetModelArn: ARN + var assetModelId: ID + var assetModelStatus: AssetModelStatus + } + + object CreateAssetModelResponse { + @inline + def apply( + assetModelArn: ARN, + assetModelId: ID, + assetModelStatus: AssetModelStatus + ): CreateAssetModelResponse = { + val __obj = js.Dynamic.literal( + "assetModelArn" -> assetModelArn.asInstanceOf[js.Any], + "assetModelId" -> assetModelId.asInstanceOf[js.Any], + "assetModelStatus" -> assetModelStatus.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[CreateAssetModelResponse] + } + } + + @js.native + trait CreateAssetRequest extends js.Object { + var assetModelId: ID + var assetName: Name + var clientToken: js.UndefOr[ClientToken] + var tags: js.UndefOr[TagMap] + } + + object CreateAssetRequest { + @inline + def apply( + assetModelId: ID, + assetName: Name, + clientToken: js.UndefOr[ClientToken] = js.undefined, + tags: js.UndefOr[TagMap] = js.undefined + ): CreateAssetRequest = { + val __obj = js.Dynamic.literal( + "assetModelId" -> assetModelId.asInstanceOf[js.Any], + "assetName" -> assetName.asInstanceOf[js.Any] + ) + + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateAssetRequest] + } + } + + @js.native + trait CreateAssetResponse extends js.Object { + var assetArn: ARN + var assetId: ID + var assetStatus: AssetStatus + } + + object CreateAssetResponse { + @inline + def apply( + assetArn: ARN, + assetId: ID, + assetStatus: AssetStatus + ): CreateAssetResponse = { + val __obj = js.Dynamic.literal( + "assetArn" -> assetArn.asInstanceOf[js.Any], + "assetId" -> assetId.asInstanceOf[js.Any], + "assetStatus" -> assetStatus.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[CreateAssetResponse] + } + } + + @js.native + trait CreateDashboardRequest extends js.Object { + var dashboardDefinition: DashboardDefinition + var dashboardName: Name + var projectId: ID + var clientToken: js.UndefOr[ClientToken] + var dashboardDescription: js.UndefOr[Description] + var tags: js.UndefOr[TagMap] + } + + object CreateDashboardRequest { + @inline + def apply( + dashboardDefinition: DashboardDefinition, + dashboardName: Name, + projectId: ID, + clientToken: js.UndefOr[ClientToken] = js.undefined, + dashboardDescription: js.UndefOr[Description] = js.undefined, + tags: js.UndefOr[TagMap] = js.undefined + ): CreateDashboardRequest = { + val __obj = js.Dynamic.literal( + "dashboardDefinition" -> dashboardDefinition.asInstanceOf[js.Any], + "dashboardName" -> dashboardName.asInstanceOf[js.Any], + "projectId" -> projectId.asInstanceOf[js.Any] + ) + + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + dashboardDescription.foreach(__v => __obj.updateDynamic("dashboardDescription")(__v.asInstanceOf[js.Any])) + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateDashboardRequest] + } + } + + @js.native + trait CreateDashboardResponse extends js.Object { + var dashboardArn: ARN + var dashboardId: ID + } + + object CreateDashboardResponse { + @inline + def apply( + dashboardArn: ARN, + dashboardId: ID + ): CreateDashboardResponse = { + val __obj = js.Dynamic.literal( + "dashboardArn" -> dashboardArn.asInstanceOf[js.Any], + "dashboardId" -> dashboardId.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[CreateDashboardResponse] + } + } + + @js.native + trait CreateGatewayRequest extends js.Object { + var gatewayName: Name + var gatewayPlatform: GatewayPlatform + var tags: js.UndefOr[TagMap] + } + + object CreateGatewayRequest { + @inline + def apply( + gatewayName: Name, + gatewayPlatform: GatewayPlatform, + tags: js.UndefOr[TagMap] = js.undefined + ): CreateGatewayRequest = { + val __obj = js.Dynamic.literal( + "gatewayName" -> gatewayName.asInstanceOf[js.Any], + "gatewayPlatform" -> gatewayPlatform.asInstanceOf[js.Any] + ) + + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateGatewayRequest] + } + } + + @js.native + trait CreateGatewayResponse extends js.Object { + var gatewayArn: ARN + var gatewayId: ID + } + + object CreateGatewayResponse { + @inline + def apply( + gatewayArn: ARN, + gatewayId: ID + ): CreateGatewayResponse = { + val __obj = js.Dynamic.literal( + "gatewayArn" -> gatewayArn.asInstanceOf[js.Any], + "gatewayId" -> gatewayId.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[CreateGatewayResponse] + } + } + + @js.native + trait CreatePortalRequest extends js.Object { + var portalContactEmail: Email + var portalName: Name + var roleArn: ARN + var clientToken: js.UndefOr[ClientToken] + var portalDescription: js.UndefOr[Description] + var portalLogoImageFile: js.UndefOr[ImageFile] + var tags: js.UndefOr[TagMap] + } + + object CreatePortalRequest { + @inline + def apply( + portalContactEmail: Email, + portalName: Name, + roleArn: ARN, + clientToken: js.UndefOr[ClientToken] = js.undefined, + portalDescription: js.UndefOr[Description] = js.undefined, + portalLogoImageFile: js.UndefOr[ImageFile] = js.undefined, + tags: js.UndefOr[TagMap] = js.undefined + ): CreatePortalRequest = { + val __obj = js.Dynamic.literal( + "portalContactEmail" -> portalContactEmail.asInstanceOf[js.Any], + "portalName" -> portalName.asInstanceOf[js.Any], + "roleArn" -> roleArn.asInstanceOf[js.Any] + ) + + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + portalDescription.foreach(__v => __obj.updateDynamic("portalDescription")(__v.asInstanceOf[js.Any])) + portalLogoImageFile.foreach(__v => __obj.updateDynamic("portalLogoImageFile")(__v.asInstanceOf[js.Any])) + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreatePortalRequest] + } + } + + @js.native + trait CreatePortalResponse extends js.Object { + var portalArn: ARN + var portalId: ID + var portalStartUrl: Url + var portalStatus: PortalStatus + var ssoApplicationId: SSOApplicationId + } + + object CreatePortalResponse { + @inline + def apply( + portalArn: ARN, + portalId: ID, + portalStartUrl: Url, + portalStatus: PortalStatus, + ssoApplicationId: SSOApplicationId + ): CreatePortalResponse = { + val __obj = js.Dynamic.literal( + "portalArn" -> portalArn.asInstanceOf[js.Any], + "portalId" -> portalId.asInstanceOf[js.Any], + "portalStartUrl" -> portalStartUrl.asInstanceOf[js.Any], + "portalStatus" -> portalStatus.asInstanceOf[js.Any], + "ssoApplicationId" -> ssoApplicationId.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[CreatePortalResponse] + } + } + + @js.native + trait CreateProjectRequest extends js.Object { + var portalId: ID + var projectName: Name + var clientToken: js.UndefOr[ClientToken] + var projectDescription: js.UndefOr[Description] + var tags: js.UndefOr[TagMap] + } + + object CreateProjectRequest { + @inline + def apply( + portalId: ID, + projectName: Name, + clientToken: js.UndefOr[ClientToken] = js.undefined, + projectDescription: js.UndefOr[Description] = js.undefined, + tags: js.UndefOr[TagMap] = js.undefined + ): CreateProjectRequest = { + val __obj = js.Dynamic.literal( + "portalId" -> portalId.asInstanceOf[js.Any], + "projectName" -> projectName.asInstanceOf[js.Any] + ) + + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + projectDescription.foreach(__v => __obj.updateDynamic("projectDescription")(__v.asInstanceOf[js.Any])) + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateProjectRequest] + } + } + + @js.native + trait CreateProjectResponse extends js.Object { + var projectArn: ARN + var projectId: ID + } + + object CreateProjectResponse { + @inline + def apply( + projectArn: ARN, + projectId: ID + ): CreateProjectResponse = { + val __obj = js.Dynamic.literal( + "projectArn" -> projectArn.asInstanceOf[js.Any], + "projectId" -> projectId.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[CreateProjectResponse] + } + } + + /** + * Contains a dashboard summary. + */ + @js.native + trait DashboardSummary extends js.Object { + var id: ID + var name: Name + var creationDate: js.UndefOr[Timestamp] + var description: js.UndefOr[Description] + var lastUpdateDate: js.UndefOr[Timestamp] + } + + object DashboardSummary { + @inline + def apply( + id: ID, + name: Name, + creationDate: js.UndefOr[Timestamp] = js.undefined, + description: js.UndefOr[Description] = js.undefined, + lastUpdateDate: js.UndefOr[Timestamp] = js.undefined + ): DashboardSummary = { + val __obj = js.Dynamic.literal( + "id" -> id.asInstanceOf[js.Any], + "name" -> name.asInstanceOf[js.Any] + ) + + creationDate.foreach(__v => __obj.updateDynamic("creationDate")(__v.asInstanceOf[js.Any])) + description.foreach(__v => __obj.updateDynamic("description")(__v.asInstanceOf[js.Any])) + lastUpdateDate.foreach(__v => __obj.updateDynamic("lastUpdateDate")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DashboardSummary] + } + } + + @js.native + trait DeleteAccessPolicyRequest extends js.Object { + var accessPolicyId: ID + var clientToken: js.UndefOr[ClientToken] + } + + object DeleteAccessPolicyRequest { + @inline + def apply( + accessPolicyId: ID, + clientToken: js.UndefOr[ClientToken] = js.undefined + ): DeleteAccessPolicyRequest = { + val __obj = js.Dynamic.literal( + "accessPolicyId" -> accessPolicyId.asInstanceOf[js.Any] + ) + + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DeleteAccessPolicyRequest] + } + } + + @js.native + trait DeleteAccessPolicyResponse extends js.Object {} + + object DeleteAccessPolicyResponse { + @inline + def apply( + ): DeleteAccessPolicyResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[DeleteAccessPolicyResponse] + } + } + + @js.native + trait DeleteAssetModelRequest extends js.Object { + var assetModelId: ID + var clientToken: js.UndefOr[ClientToken] + } + + object DeleteAssetModelRequest { + @inline + def apply( + assetModelId: ID, + clientToken: js.UndefOr[ClientToken] = js.undefined + ): DeleteAssetModelRequest = { + val __obj = js.Dynamic.literal( + "assetModelId" -> assetModelId.asInstanceOf[js.Any] + ) + + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DeleteAssetModelRequest] + } + } + + @js.native + trait DeleteAssetModelResponse extends js.Object { + var assetModelStatus: AssetModelStatus + } + + object DeleteAssetModelResponse { + @inline + def apply( + assetModelStatus: AssetModelStatus + ): DeleteAssetModelResponse = { + val __obj = js.Dynamic.literal( + "assetModelStatus" -> assetModelStatus.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DeleteAssetModelResponse] + } + } + + @js.native + trait DeleteAssetRequest extends js.Object { + var assetId: ID + var clientToken: js.UndefOr[ClientToken] + } + + object DeleteAssetRequest { + @inline + def apply( + assetId: ID, + clientToken: js.UndefOr[ClientToken] = js.undefined + ): DeleteAssetRequest = { + val __obj = js.Dynamic.literal( + "assetId" -> assetId.asInstanceOf[js.Any] + ) + + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DeleteAssetRequest] + } + } + + @js.native + trait DeleteAssetResponse extends js.Object { + var assetStatus: AssetStatus + } + + object DeleteAssetResponse { + @inline + def apply( + assetStatus: AssetStatus + ): DeleteAssetResponse = { + val __obj = js.Dynamic.literal( + "assetStatus" -> assetStatus.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DeleteAssetResponse] + } + } + + @js.native + trait DeleteDashboardRequest extends js.Object { + var dashboardId: ID + var clientToken: js.UndefOr[ClientToken] + } + + object DeleteDashboardRequest { + @inline + def apply( + dashboardId: ID, + clientToken: js.UndefOr[ClientToken] = js.undefined + ): DeleteDashboardRequest = { + val __obj = js.Dynamic.literal( + "dashboardId" -> dashboardId.asInstanceOf[js.Any] + ) + + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DeleteDashboardRequest] + } + } + + @js.native + trait DeleteDashboardResponse extends js.Object {} + + object DeleteDashboardResponse { + @inline + def apply( + ): DeleteDashboardResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[DeleteDashboardResponse] + } + } + + @js.native + trait DeleteGatewayRequest extends js.Object { + var gatewayId: ID + } + + object DeleteGatewayRequest { + @inline + def apply( + gatewayId: ID + ): DeleteGatewayRequest = { + val __obj = js.Dynamic.literal( + "gatewayId" -> gatewayId.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DeleteGatewayRequest] + } + } + + @js.native + trait DeletePortalRequest extends js.Object { + var portalId: ID + var clientToken: js.UndefOr[ClientToken] + } + + object DeletePortalRequest { + @inline + def apply( + portalId: ID, + clientToken: js.UndefOr[ClientToken] = js.undefined + ): DeletePortalRequest = { + val __obj = js.Dynamic.literal( + "portalId" -> portalId.asInstanceOf[js.Any] + ) + + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DeletePortalRequest] + } + } + + @js.native + trait DeletePortalResponse extends js.Object { + var portalStatus: PortalStatus + } + + object DeletePortalResponse { + @inline + def apply( + portalStatus: PortalStatus + ): DeletePortalResponse = { + val __obj = js.Dynamic.literal( + "portalStatus" -> portalStatus.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DeletePortalResponse] + } + } + + @js.native + trait DeleteProjectRequest extends js.Object { + var projectId: ID + var clientToken: js.UndefOr[ClientToken] + } + + object DeleteProjectRequest { + @inline + def apply( + projectId: ID, + clientToken: js.UndefOr[ClientToken] = js.undefined + ): DeleteProjectRequest = { + val __obj = js.Dynamic.literal( + "projectId" -> projectId.asInstanceOf[js.Any] + ) + + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DeleteProjectRequest] + } + } + + @js.native + trait DeleteProjectResponse extends js.Object {} + + object DeleteProjectResponse { + @inline + def apply( + ): DeleteProjectResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[DeleteProjectResponse] + } + } + + @js.native + trait DescribeAccessPolicyRequest extends js.Object { + var accessPolicyId: ID + } + + object DescribeAccessPolicyRequest { + @inline + def apply( + accessPolicyId: ID + ): DescribeAccessPolicyRequest = { + val __obj = js.Dynamic.literal( + "accessPolicyId" -> accessPolicyId.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DescribeAccessPolicyRequest] + } + } + + @js.native + trait DescribeAccessPolicyResponse extends js.Object { + var accessPolicyArn: ARN + var accessPolicyCreationDate: Timestamp + var accessPolicyId: ID + var accessPolicyIdentity: Identity + var accessPolicyLastUpdateDate: Timestamp + var accessPolicyPermission: Permission + var accessPolicyResource: Resource + } + + object DescribeAccessPolicyResponse { + @inline + def apply( + accessPolicyArn: ARN, + accessPolicyCreationDate: Timestamp, + accessPolicyId: ID, + accessPolicyIdentity: Identity, + accessPolicyLastUpdateDate: Timestamp, + accessPolicyPermission: Permission, + accessPolicyResource: Resource + ): DescribeAccessPolicyResponse = { + val __obj = js.Dynamic.literal( + "accessPolicyArn" -> accessPolicyArn.asInstanceOf[js.Any], + "accessPolicyCreationDate" -> accessPolicyCreationDate.asInstanceOf[js.Any], + "accessPolicyId" -> accessPolicyId.asInstanceOf[js.Any], + "accessPolicyIdentity" -> accessPolicyIdentity.asInstanceOf[js.Any], + "accessPolicyLastUpdateDate" -> accessPolicyLastUpdateDate.asInstanceOf[js.Any], + "accessPolicyPermission" -> accessPolicyPermission.asInstanceOf[js.Any], + "accessPolicyResource" -> accessPolicyResource.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DescribeAccessPolicyResponse] + } + } + + @js.native + trait DescribeAssetModelRequest extends js.Object { + var assetModelId: ID + } + + object DescribeAssetModelRequest { + @inline + def apply( + assetModelId: ID + ): DescribeAssetModelRequest = { + val __obj = js.Dynamic.literal( + "assetModelId" -> assetModelId.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DescribeAssetModelRequest] + } + } + + @js.native + trait DescribeAssetModelResponse extends js.Object { + var assetModelArn: ARN + var assetModelCreationDate: Timestamp + var assetModelDescription: Description + var assetModelHierarchies: AssetModelHierarchies + var assetModelId: ID + var assetModelLastUpdateDate: Timestamp + var assetModelName: Name + var assetModelProperties: AssetModelProperties + var assetModelStatus: AssetModelStatus + } + + object DescribeAssetModelResponse { + @inline + def apply( + assetModelArn: ARN, + assetModelCreationDate: Timestamp, + assetModelDescription: Description, + assetModelHierarchies: AssetModelHierarchies, + assetModelId: ID, + assetModelLastUpdateDate: Timestamp, + assetModelName: Name, + assetModelProperties: AssetModelProperties, + assetModelStatus: AssetModelStatus + ): DescribeAssetModelResponse = { + val __obj = js.Dynamic.literal( + "assetModelArn" -> assetModelArn.asInstanceOf[js.Any], + "assetModelCreationDate" -> assetModelCreationDate.asInstanceOf[js.Any], + "assetModelDescription" -> assetModelDescription.asInstanceOf[js.Any], + "assetModelHierarchies" -> assetModelHierarchies.asInstanceOf[js.Any], + "assetModelId" -> assetModelId.asInstanceOf[js.Any], + "assetModelLastUpdateDate" -> assetModelLastUpdateDate.asInstanceOf[js.Any], + "assetModelName" -> assetModelName.asInstanceOf[js.Any], + "assetModelProperties" -> assetModelProperties.asInstanceOf[js.Any], + "assetModelStatus" -> assetModelStatus.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DescribeAssetModelResponse] + } + } + + @js.native + trait DescribeAssetPropertyRequest extends js.Object { + var assetId: ID + var propertyId: ID + } + + object DescribeAssetPropertyRequest { + @inline + def apply( + assetId: ID, + propertyId: ID + ): DescribeAssetPropertyRequest = { + val __obj = js.Dynamic.literal( + "assetId" -> assetId.asInstanceOf[js.Any], + "propertyId" -> propertyId.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DescribeAssetPropertyRequest] + } + } + + @js.native + trait DescribeAssetPropertyResponse extends js.Object { + var assetId: ID + var assetModelId: ID + var assetName: Name + var assetProperty: Property + } + + object DescribeAssetPropertyResponse { + @inline + def apply( + assetId: ID, + assetModelId: ID, + assetName: Name, + assetProperty: Property + ): DescribeAssetPropertyResponse = { + val __obj = js.Dynamic.literal( + "assetId" -> assetId.asInstanceOf[js.Any], + "assetModelId" -> assetModelId.asInstanceOf[js.Any], + "assetName" -> assetName.asInstanceOf[js.Any], + "assetProperty" -> assetProperty.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DescribeAssetPropertyResponse] + } + } + + @js.native + trait DescribeAssetRequest extends js.Object { + var assetId: ID + } + + object DescribeAssetRequest { + @inline + def apply( + assetId: ID + ): DescribeAssetRequest = { + val __obj = js.Dynamic.literal( + "assetId" -> assetId.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DescribeAssetRequest] + } + } + + @js.native + trait DescribeAssetResponse extends js.Object { + var assetArn: ARN + var assetCreationDate: Timestamp + var assetHierarchies: AssetHierarchies + var assetId: ID + var assetLastUpdateDate: Timestamp + var assetModelId: ID + var assetName: Name + var assetProperties: AssetProperties + var assetStatus: AssetStatus + } + + object DescribeAssetResponse { + @inline + def apply( + assetArn: ARN, + assetCreationDate: Timestamp, + assetHierarchies: AssetHierarchies, + assetId: ID, + assetLastUpdateDate: Timestamp, + assetModelId: ID, + assetName: Name, + assetProperties: AssetProperties, + assetStatus: AssetStatus + ): DescribeAssetResponse = { + val __obj = js.Dynamic.literal( + "assetArn" -> assetArn.asInstanceOf[js.Any], + "assetCreationDate" -> assetCreationDate.asInstanceOf[js.Any], + "assetHierarchies" -> assetHierarchies.asInstanceOf[js.Any], + "assetId" -> assetId.asInstanceOf[js.Any], + "assetLastUpdateDate" -> assetLastUpdateDate.asInstanceOf[js.Any], + "assetModelId" -> assetModelId.asInstanceOf[js.Any], + "assetName" -> assetName.asInstanceOf[js.Any], + "assetProperties" -> assetProperties.asInstanceOf[js.Any], + "assetStatus" -> assetStatus.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DescribeAssetResponse] + } + } + + @js.native + trait DescribeDashboardRequest extends js.Object { + var dashboardId: ID + } + + object DescribeDashboardRequest { + @inline + def apply( + dashboardId: ID + ): DescribeDashboardRequest = { + val __obj = js.Dynamic.literal( + "dashboardId" -> dashboardId.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DescribeDashboardRequest] + } + } + + @js.native + trait DescribeDashboardResponse extends js.Object { + var dashboardArn: ARN + var dashboardCreationDate: Timestamp + var dashboardDefinition: DashboardDefinition + var dashboardId: ID + var dashboardLastUpdateDate: Timestamp + var dashboardName: Name + var projectId: ID + var dashboardDescription: js.UndefOr[Description] + } + + object DescribeDashboardResponse { + @inline + def apply( + dashboardArn: ARN, + dashboardCreationDate: Timestamp, + dashboardDefinition: DashboardDefinition, + dashboardId: ID, + dashboardLastUpdateDate: Timestamp, + dashboardName: Name, + projectId: ID, + dashboardDescription: js.UndefOr[Description] = js.undefined + ): DescribeDashboardResponse = { + val __obj = js.Dynamic.literal( + "dashboardArn" -> dashboardArn.asInstanceOf[js.Any], + "dashboardCreationDate" -> dashboardCreationDate.asInstanceOf[js.Any], + "dashboardDefinition" -> dashboardDefinition.asInstanceOf[js.Any], + "dashboardId" -> dashboardId.asInstanceOf[js.Any], + "dashboardLastUpdateDate" -> dashboardLastUpdateDate.asInstanceOf[js.Any], + "dashboardName" -> dashboardName.asInstanceOf[js.Any], + "projectId" -> projectId.asInstanceOf[js.Any] + ) + + dashboardDescription.foreach(__v => __obj.updateDynamic("dashboardDescription")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DescribeDashboardResponse] + } + } + + @js.native + trait DescribeGatewayCapabilityConfigurationRequest extends js.Object { + var capabilityNamespace: CapabilityNamespace + var gatewayId: ID + } + + object DescribeGatewayCapabilityConfigurationRequest { + @inline + def apply( + capabilityNamespace: CapabilityNamespace, + gatewayId: ID + ): DescribeGatewayCapabilityConfigurationRequest = { + val __obj = js.Dynamic.literal( + "capabilityNamespace" -> capabilityNamespace.asInstanceOf[js.Any], + "gatewayId" -> gatewayId.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DescribeGatewayCapabilityConfigurationRequest] + } + } + + @js.native + trait DescribeGatewayCapabilityConfigurationResponse extends js.Object { + var capabilityConfiguration: CapabilityConfiguration + var capabilityNamespace: CapabilityNamespace + var capabilitySyncStatus: CapabilitySyncStatus + var gatewayId: ID + } + + object DescribeGatewayCapabilityConfigurationResponse { + @inline + def apply( + capabilityConfiguration: CapabilityConfiguration, + capabilityNamespace: CapabilityNamespace, + capabilitySyncStatus: CapabilitySyncStatus, + gatewayId: ID + ): DescribeGatewayCapabilityConfigurationResponse = { + val __obj = js.Dynamic.literal( + "capabilityConfiguration" -> capabilityConfiguration.asInstanceOf[js.Any], + "capabilityNamespace" -> capabilityNamespace.asInstanceOf[js.Any], + "capabilitySyncStatus" -> capabilitySyncStatus.asInstanceOf[js.Any], + "gatewayId" -> gatewayId.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DescribeGatewayCapabilityConfigurationResponse] + } + } + + @js.native + trait DescribeGatewayRequest extends js.Object { + var gatewayId: ID + } + + object DescribeGatewayRequest { + @inline + def apply( + gatewayId: ID + ): DescribeGatewayRequest = { + val __obj = js.Dynamic.literal( + "gatewayId" -> gatewayId.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DescribeGatewayRequest] + } + } + + @js.native + trait DescribeGatewayResponse extends js.Object { + var creationDate: Timestamp + var gatewayArn: ARN + var gatewayCapabilitySummaries: GatewayCapabilitySummaries + var gatewayId: ID + var gatewayName: Name + var lastUpdateDate: Timestamp + var gatewayPlatform: js.UndefOr[GatewayPlatform] + } + + object DescribeGatewayResponse { + @inline + def apply( + creationDate: Timestamp, + gatewayArn: ARN, + gatewayCapabilitySummaries: GatewayCapabilitySummaries, + gatewayId: ID, + gatewayName: Name, + lastUpdateDate: Timestamp, + gatewayPlatform: js.UndefOr[GatewayPlatform] = js.undefined + ): DescribeGatewayResponse = { + val __obj = js.Dynamic.literal( + "creationDate" -> creationDate.asInstanceOf[js.Any], + "gatewayArn" -> gatewayArn.asInstanceOf[js.Any], + "gatewayCapabilitySummaries" -> gatewayCapabilitySummaries.asInstanceOf[js.Any], + "gatewayId" -> gatewayId.asInstanceOf[js.Any], + "gatewayName" -> gatewayName.asInstanceOf[js.Any], + "lastUpdateDate" -> lastUpdateDate.asInstanceOf[js.Any] + ) + + gatewayPlatform.foreach(__v => __obj.updateDynamic("gatewayPlatform")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DescribeGatewayResponse] + } + } + + @js.native + trait DescribeLoggingOptionsRequest extends js.Object {} + + object DescribeLoggingOptionsRequest { + @inline + def apply( + ): DescribeLoggingOptionsRequest = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[DescribeLoggingOptionsRequest] + } + } + + @js.native + trait DescribeLoggingOptionsResponse extends js.Object { + var loggingOptions: LoggingOptions + } + + object DescribeLoggingOptionsResponse { + @inline + def apply( + loggingOptions: LoggingOptions + ): DescribeLoggingOptionsResponse = { + val __obj = js.Dynamic.literal( + "loggingOptions" -> loggingOptions.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DescribeLoggingOptionsResponse] + } + } + + @js.native + trait DescribePortalRequest extends js.Object { + var portalId: ID + } + + object DescribePortalRequest { + @inline + def apply( + portalId: ID + ): DescribePortalRequest = { + val __obj = js.Dynamic.literal( + "portalId" -> portalId.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DescribePortalRequest] + } + } + + @js.native + trait DescribePortalResponse extends js.Object { + var portalArn: ARN + var portalClientId: PortalClientId + var portalContactEmail: Email + var portalCreationDate: Timestamp + var portalId: ID + var portalLastUpdateDate: Timestamp + var portalName: Name + var portalStartUrl: Url + var portalStatus: PortalStatus + var portalDescription: js.UndefOr[Description] + var portalLogoImageLocation: js.UndefOr[ImageLocation] + var roleArn: js.UndefOr[ARN] + } + + object DescribePortalResponse { + @inline + def apply( + portalArn: ARN, + portalClientId: PortalClientId, + portalContactEmail: Email, + portalCreationDate: Timestamp, + portalId: ID, + portalLastUpdateDate: Timestamp, + portalName: Name, + portalStartUrl: Url, + portalStatus: PortalStatus, + portalDescription: js.UndefOr[Description] = js.undefined, + portalLogoImageLocation: js.UndefOr[ImageLocation] = js.undefined, + roleArn: js.UndefOr[ARN] = js.undefined + ): DescribePortalResponse = { + val __obj = js.Dynamic.literal( + "portalArn" -> portalArn.asInstanceOf[js.Any], + "portalClientId" -> portalClientId.asInstanceOf[js.Any], + "portalContactEmail" -> portalContactEmail.asInstanceOf[js.Any], + "portalCreationDate" -> portalCreationDate.asInstanceOf[js.Any], + "portalId" -> portalId.asInstanceOf[js.Any], + "portalLastUpdateDate" -> portalLastUpdateDate.asInstanceOf[js.Any], + "portalName" -> portalName.asInstanceOf[js.Any], + "portalStartUrl" -> portalStartUrl.asInstanceOf[js.Any], + "portalStatus" -> portalStatus.asInstanceOf[js.Any] + ) + + portalDescription.foreach(__v => __obj.updateDynamic("portalDescription")(__v.asInstanceOf[js.Any])) + portalLogoImageLocation.foreach(__v => __obj.updateDynamic("portalLogoImageLocation")(__v.asInstanceOf[js.Any])) + roleArn.foreach(__v => __obj.updateDynamic("roleArn")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DescribePortalResponse] + } + } + + @js.native + trait DescribeProjectRequest extends js.Object { + var projectId: ID + } + + object DescribeProjectRequest { + @inline + def apply( + projectId: ID + ): DescribeProjectRequest = { + val __obj = js.Dynamic.literal( + "projectId" -> projectId.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DescribeProjectRequest] + } + } + + @js.native + trait DescribeProjectResponse extends js.Object { + var portalId: ID + var projectArn: ARN + var projectCreationDate: Timestamp + var projectId: ID + var projectLastUpdateDate: Timestamp + var projectName: Name + var projectDescription: js.UndefOr[Description] + } + + object DescribeProjectResponse { + @inline + def apply( + portalId: ID, + projectArn: ARN, + projectCreationDate: Timestamp, + projectId: ID, + projectLastUpdateDate: Timestamp, + projectName: Name, + projectDescription: js.UndefOr[Description] = js.undefined + ): DescribeProjectResponse = { + val __obj = js.Dynamic.literal( + "portalId" -> portalId.asInstanceOf[js.Any], + "projectArn" -> projectArn.asInstanceOf[js.Any], + "projectCreationDate" -> projectCreationDate.asInstanceOf[js.Any], + "projectId" -> projectId.asInstanceOf[js.Any], + "projectLastUpdateDate" -> projectLastUpdateDate.asInstanceOf[js.Any], + "projectName" -> projectName.asInstanceOf[js.Any] + ) + + projectDescription.foreach(__v => __obj.updateDynamic("projectDescription")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DescribeProjectResponse] + } + } + + @js.native + trait DisassociateAssetsRequest extends js.Object { + var assetId: ID + var childAssetId: ID + var hierarchyId: ID + var clientToken: js.UndefOr[ClientToken] + } + + object DisassociateAssetsRequest { + @inline + def apply( + assetId: ID, + childAssetId: ID, + hierarchyId: ID, + clientToken: js.UndefOr[ClientToken] = js.undefined + ): DisassociateAssetsRequest = { + val __obj = js.Dynamic.literal( + "assetId" -> assetId.asInstanceOf[js.Any], + "childAssetId" -> childAssetId.asInstanceOf[js.Any], + "hierarchyId" -> hierarchyId.asInstanceOf[js.Any] + ) + + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DisassociateAssetsRequest] + } + } + + @js.native + sealed trait ErrorCode extends js.Any + object ErrorCode extends js.Object { + val VALIDATION_ERROR = "VALIDATION_ERROR".asInstanceOf[ErrorCode] + val INTERNAL_FAILURE = "INTERNAL_FAILURE".asInstanceOf[ErrorCode] + + val values = js.Object.freeze(js.Array(VALIDATION_ERROR, INTERNAL_FAILURE)) + } + + /** + * Contains the details of an AWS IoT SiteWise error. + */ + @js.native + trait ErrorDetails extends js.Object { + var code: ErrorCode + var message: ErrorMessage + } + + object ErrorDetails { + @inline + def apply( + code: ErrorCode, + message: ErrorMessage + ): ErrorDetails = { + val __obj = js.Dynamic.literal( + "code" -> code.asInstanceOf[js.Any], + "message" -> message.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[ErrorDetails] + } + } + + /** + * Contains expression variable information. + */ + @js.native + trait ExpressionVariable extends js.Object { + var name: VariableName + var value: VariableValue + } + + object ExpressionVariable { + @inline + def apply( + name: VariableName, + value: VariableValue + ): ExpressionVariable = { + val __obj = js.Dynamic.literal( + "name" -> name.asInstanceOf[js.Any], + "value" -> value.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[ExpressionVariable] + } + } + + /** + * Contains a summary of a gateway capability configuration. + */ + @js.native + trait GatewayCapabilitySummary extends js.Object { + var capabilityNamespace: CapabilityNamespace + var capabilitySyncStatus: CapabilitySyncStatus + } + + object GatewayCapabilitySummary { + @inline + def apply( + capabilityNamespace: CapabilityNamespace, + capabilitySyncStatus: CapabilitySyncStatus + ): GatewayCapabilitySummary = { + val __obj = js.Dynamic.literal( + "capabilityNamespace" -> capabilityNamespace.asInstanceOf[js.Any], + "capabilitySyncStatus" -> capabilitySyncStatus.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[GatewayCapabilitySummary] + } + } + + /** + * Contains a gateway's platform information. + */ + @js.native + trait GatewayPlatform extends js.Object { + var greengrass: Greengrass + } + + object GatewayPlatform { + @inline + def apply( + greengrass: Greengrass + ): GatewayPlatform = { + val __obj = js.Dynamic.literal( + "greengrass" -> greengrass.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[GatewayPlatform] + } + } + + /** + * Contains a summary of a gateway. + */ + @js.native + trait GatewaySummary extends js.Object { + var creationDate: Timestamp + var gatewayId: ID + var gatewayName: Name + var lastUpdateDate: Timestamp + var gatewayCapabilitySummaries: js.UndefOr[GatewayCapabilitySummaries] + } + + object GatewaySummary { + @inline + def apply( + creationDate: Timestamp, + gatewayId: ID, + gatewayName: Name, + lastUpdateDate: Timestamp, + gatewayCapabilitySummaries: js.UndefOr[GatewayCapabilitySummaries] = js.undefined + ): GatewaySummary = { + val __obj = js.Dynamic.literal( + "creationDate" -> creationDate.asInstanceOf[js.Any], + "gatewayId" -> gatewayId.asInstanceOf[js.Any], + "gatewayName" -> gatewayName.asInstanceOf[js.Any], + "lastUpdateDate" -> lastUpdateDate.asInstanceOf[js.Any] + ) + + gatewayCapabilitySummaries.foreach(__v => + __obj.updateDynamic("gatewayCapabilitySummaries")(__v.asInstanceOf[js.Any]) + ) + __obj.asInstanceOf[GatewaySummary] + } + } + + @js.native + trait GetAssetPropertyAggregatesRequest extends js.Object { + var aggregateTypes: AggregateTypes + var endDate: Timestamp + var resolution: Resolution + var startDate: Timestamp + var assetId: js.UndefOr[ID] + var maxResults: js.UndefOr[MaxResults] + var nextToken: js.UndefOr[NextToken] + var propertyAlias: js.UndefOr[AssetPropertyAlias] + var propertyId: js.UndefOr[ID] + var qualities: js.UndefOr[Qualities] + var timeOrdering: js.UndefOr[TimeOrdering] + } + + object GetAssetPropertyAggregatesRequest { + @inline + def apply( + aggregateTypes: AggregateTypes, + endDate: Timestamp, + resolution: Resolution, + startDate: Timestamp, + assetId: js.UndefOr[ID] = js.undefined, + maxResults: js.UndefOr[MaxResults] = js.undefined, + nextToken: js.UndefOr[NextToken] = js.undefined, + propertyAlias: js.UndefOr[AssetPropertyAlias] = js.undefined, + propertyId: js.UndefOr[ID] = js.undefined, + qualities: js.UndefOr[Qualities] = js.undefined, + timeOrdering: js.UndefOr[TimeOrdering] = js.undefined + ): GetAssetPropertyAggregatesRequest = { + val __obj = js.Dynamic.literal( + "aggregateTypes" -> aggregateTypes.asInstanceOf[js.Any], + "endDate" -> endDate.asInstanceOf[js.Any], + "resolution" -> resolution.asInstanceOf[js.Any], + "startDate" -> startDate.asInstanceOf[js.Any] + ) + + assetId.foreach(__v => __obj.updateDynamic("assetId")(__v.asInstanceOf[js.Any])) + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + propertyAlias.foreach(__v => __obj.updateDynamic("propertyAlias")(__v.asInstanceOf[js.Any])) + propertyId.foreach(__v => __obj.updateDynamic("propertyId")(__v.asInstanceOf[js.Any])) + qualities.foreach(__v => __obj.updateDynamic("qualities")(__v.asInstanceOf[js.Any])) + timeOrdering.foreach(__v => __obj.updateDynamic("timeOrdering")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetAssetPropertyAggregatesRequest] + } + } + + @js.native + trait GetAssetPropertyAggregatesResponse extends js.Object { + var aggregatedValues: AggregatedValues + var nextToken: js.UndefOr[NextToken] + } + + object GetAssetPropertyAggregatesResponse { + @inline + def apply( + aggregatedValues: AggregatedValues, + nextToken: js.UndefOr[NextToken] = js.undefined + ): GetAssetPropertyAggregatesResponse = { + val __obj = js.Dynamic.literal( + "aggregatedValues" -> aggregatedValues.asInstanceOf[js.Any] + ) + + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetAssetPropertyAggregatesResponse] + } + } + + @js.native + trait GetAssetPropertyValueHistoryRequest extends js.Object { + var assetId: js.UndefOr[ID] + var endDate: js.UndefOr[Timestamp] + var maxResults: js.UndefOr[MaxResults] + var nextToken: js.UndefOr[NextToken] + var propertyAlias: js.UndefOr[AssetPropertyAlias] + var propertyId: js.UndefOr[ID] + var qualities: js.UndefOr[Qualities] + var startDate: js.UndefOr[Timestamp] + var timeOrdering: js.UndefOr[TimeOrdering] + } + + object GetAssetPropertyValueHistoryRequest { + @inline + def apply( + assetId: js.UndefOr[ID] = js.undefined, + endDate: js.UndefOr[Timestamp] = js.undefined, + maxResults: js.UndefOr[MaxResults] = js.undefined, + nextToken: js.UndefOr[NextToken] = js.undefined, + propertyAlias: js.UndefOr[AssetPropertyAlias] = js.undefined, + propertyId: js.UndefOr[ID] = js.undefined, + qualities: js.UndefOr[Qualities] = js.undefined, + startDate: js.UndefOr[Timestamp] = js.undefined, + timeOrdering: js.UndefOr[TimeOrdering] = js.undefined + ): GetAssetPropertyValueHistoryRequest = { + val __obj = js.Dynamic.literal() + assetId.foreach(__v => __obj.updateDynamic("assetId")(__v.asInstanceOf[js.Any])) + endDate.foreach(__v => __obj.updateDynamic("endDate")(__v.asInstanceOf[js.Any])) + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + propertyAlias.foreach(__v => __obj.updateDynamic("propertyAlias")(__v.asInstanceOf[js.Any])) + propertyId.foreach(__v => __obj.updateDynamic("propertyId")(__v.asInstanceOf[js.Any])) + qualities.foreach(__v => __obj.updateDynamic("qualities")(__v.asInstanceOf[js.Any])) + startDate.foreach(__v => __obj.updateDynamic("startDate")(__v.asInstanceOf[js.Any])) + timeOrdering.foreach(__v => __obj.updateDynamic("timeOrdering")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetAssetPropertyValueHistoryRequest] + } + } + + @js.native + trait GetAssetPropertyValueHistoryResponse extends js.Object { + var assetPropertyValueHistory: AssetPropertyValueHistory + var nextToken: js.UndefOr[NextToken] + } + + object GetAssetPropertyValueHistoryResponse { + @inline + def apply( + assetPropertyValueHistory: AssetPropertyValueHistory, + nextToken: js.UndefOr[NextToken] = js.undefined + ): GetAssetPropertyValueHistoryResponse = { + val __obj = js.Dynamic.literal( + "assetPropertyValueHistory" -> assetPropertyValueHistory.asInstanceOf[js.Any] + ) + + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetAssetPropertyValueHistoryResponse] + } + } + + @js.native + trait GetAssetPropertyValueRequest extends js.Object { + var assetId: js.UndefOr[ID] + var propertyAlias: js.UndefOr[AssetPropertyAlias] + var propertyId: js.UndefOr[ID] + } + + object GetAssetPropertyValueRequest { + @inline + def apply( + assetId: js.UndefOr[ID] = js.undefined, + propertyAlias: js.UndefOr[AssetPropertyAlias] = js.undefined, + propertyId: js.UndefOr[ID] = js.undefined + ): GetAssetPropertyValueRequest = { + val __obj = js.Dynamic.literal() + assetId.foreach(__v => __obj.updateDynamic("assetId")(__v.asInstanceOf[js.Any])) + propertyAlias.foreach(__v => __obj.updateDynamic("propertyAlias")(__v.asInstanceOf[js.Any])) + propertyId.foreach(__v => __obj.updateDynamic("propertyId")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetAssetPropertyValueRequest] + } + } + + @js.native + trait GetAssetPropertyValueResponse extends js.Object { + var propertyValue: js.UndefOr[AssetPropertyValue] + } + + object GetAssetPropertyValueResponse { + @inline + def apply( + propertyValue: js.UndefOr[AssetPropertyValue] = js.undefined + ): GetAssetPropertyValueResponse = { + val __obj = js.Dynamic.literal() + propertyValue.foreach(__v => __obj.updateDynamic("propertyValue")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetAssetPropertyValueResponse] + } + } + + /** + * Contains details for a gateway that runs on AWS IoT Greengrass. To create a gateway that runs on AWS IoT Greengrass, you must add the IoT SiteWise connector to a Greengrass group and deploy it. Your Greengrass group must also have permissions to upload data to AWS IoT SiteWise. For more information, see [[https://docs.aws.amazon.com/iot-sitewise/latest/userguide/gateway-connector.html|Ingesting data using a gateway]] in the AWS IoT SiteWise User Guide. + */ + @js.native + trait Greengrass extends js.Object { + var groupArn: ARN + } + + object Greengrass { + @inline + def apply( + groupArn: ARN + ): Greengrass = { + val __obj = js.Dynamic.literal( + "groupArn" -> groupArn.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[Greengrass] + } + } + + /** + * Contains information for a group identity in an access policy. + */ + @js.native + trait GroupIdentity extends js.Object { + var id: IdentityId + } + + object GroupIdentity { + @inline + def apply( + id: IdentityId + ): GroupIdentity = { + val __obj = js.Dynamic.literal( + "id" -> id.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[GroupIdentity] + } + } + + /** + * Contains an AWS SSO identity ID for a user or group. + * + * '''Note:'''Currently, you can't use AWS APIs to retrieve AWS SSO identity IDs. You can find the AWS SSO identity IDs in the URL of user and group pages in the [[https://console.aws.amazon.com/singlesignon|AWS SSO console]]. + */ + @js.native + trait Identity extends js.Object { + var group: js.UndefOr[GroupIdentity] + var user: js.UndefOr[UserIdentity] + } + + object Identity { + @inline + def apply( + group: js.UndefOr[GroupIdentity] = js.undefined, + user: js.UndefOr[UserIdentity] = js.undefined + ): Identity = { + val __obj = js.Dynamic.literal() + group.foreach(__v => __obj.updateDynamic("group")(__v.asInstanceOf[js.Any])) + user.foreach(__v => __obj.updateDynamic("user")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[Identity] + } + } + + @js.native + sealed trait IdentityType extends js.Any + object IdentityType extends js.Object { + val USER = "USER".asInstanceOf[IdentityType] + val GROUP = "GROUP".asInstanceOf[IdentityType] + + val values = js.Object.freeze(js.Array(USER, GROUP)) + } + + /** + * Contains an image that is one of the following: + * * An image file. Choose this option to upload a new image. + * * The ID of an existing image. Choose this option to keep an existing image. + */ + @js.native + trait Image extends js.Object { + var file: js.UndefOr[ImageFile] + var id: js.UndefOr[ID] + } + + object Image { + @inline + def apply( + file: js.UndefOr[ImageFile] = js.undefined, + id: js.UndefOr[ID] = js.undefined + ): Image = { + val __obj = js.Dynamic.literal() + file.foreach(__v => __obj.updateDynamic("file")(__v.asInstanceOf[js.Any])) + id.foreach(__v => __obj.updateDynamic("id")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[Image] + } + } + + /** + * Contains an image file. + */ + @js.native + trait ImageFile extends js.Object { + var data: ImageFileData + var `type`: ImageFileType + } + + object ImageFile { + @inline + def apply( + data: ImageFileData, + `type`: ImageFileType + ): ImageFile = { + val __obj = js.Dynamic.literal( + "data" -> data.asInstanceOf[js.Any], + "type" -> `type`.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[ImageFile] + } + } + + @js.native + sealed trait ImageFileType extends js.Any + object ImageFileType extends js.Object { + val PNG = "PNG".asInstanceOf[ImageFileType] + + val values = js.Object.freeze(js.Array(PNG)) + } + + /** + * Contains an image that is uploaded to AWS IoT SiteWise and available at a URL. + */ + @js.native + trait ImageLocation extends js.Object { + var id: ID + var url: Url + } + + object ImageLocation { + @inline + def apply( + id: ID, + url: Url + ): ImageLocation = { + val __obj = js.Dynamic.literal( + "id" -> id.asInstanceOf[js.Any], + "url" -> url.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[ImageLocation] + } + } + + @js.native + trait ListAccessPoliciesRequest extends js.Object { + var identityId: js.UndefOr[IdentityId] + var identityType: js.UndefOr[IdentityType] + var maxResults: js.UndefOr[MaxResults] + var nextToken: js.UndefOr[NextToken] + var resourceId: js.UndefOr[ID] + var resourceType: js.UndefOr[ResourceType] + } + + object ListAccessPoliciesRequest { + @inline + def apply( + identityId: js.UndefOr[IdentityId] = js.undefined, + identityType: js.UndefOr[IdentityType] = js.undefined, + maxResults: js.UndefOr[MaxResults] = js.undefined, + nextToken: js.UndefOr[NextToken] = js.undefined, + resourceId: js.UndefOr[ID] = js.undefined, + resourceType: js.UndefOr[ResourceType] = js.undefined + ): ListAccessPoliciesRequest = { + val __obj = js.Dynamic.literal() + identityId.foreach(__v => __obj.updateDynamic("identityId")(__v.asInstanceOf[js.Any])) + identityType.foreach(__v => __obj.updateDynamic("identityType")(__v.asInstanceOf[js.Any])) + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + resourceId.foreach(__v => __obj.updateDynamic("resourceId")(__v.asInstanceOf[js.Any])) + resourceType.foreach(__v => __obj.updateDynamic("resourceType")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListAccessPoliciesRequest] + } + } + + @js.native + trait ListAccessPoliciesResponse extends js.Object { + var accessPolicySummaries: AccessPolicySummaries + var nextToken: js.UndefOr[NextToken] + } + + object ListAccessPoliciesResponse { + @inline + def apply( + accessPolicySummaries: AccessPolicySummaries, + nextToken: js.UndefOr[NextToken] = js.undefined + ): ListAccessPoliciesResponse = { + val __obj = js.Dynamic.literal( + "accessPolicySummaries" -> accessPolicySummaries.asInstanceOf[js.Any] + ) + + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListAccessPoliciesResponse] + } + } + + @js.native + trait ListAssetModelsRequest extends js.Object { + var maxResults: js.UndefOr[MaxResults] + var nextToken: js.UndefOr[NextToken] + } + + object ListAssetModelsRequest { + @inline + def apply( + maxResults: js.UndefOr[MaxResults] = js.undefined, + nextToken: js.UndefOr[NextToken] = js.undefined + ): ListAssetModelsRequest = { + val __obj = js.Dynamic.literal() + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListAssetModelsRequest] + } + } + + @js.native + trait ListAssetModelsResponse extends js.Object { + var assetModelSummaries: AssetModelSummaries + var nextToken: js.UndefOr[NextToken] + } + + object ListAssetModelsResponse { + @inline + def apply( + assetModelSummaries: AssetModelSummaries, + nextToken: js.UndefOr[NextToken] = js.undefined + ): ListAssetModelsResponse = { + val __obj = js.Dynamic.literal( + "assetModelSummaries" -> assetModelSummaries.asInstanceOf[js.Any] + ) + + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListAssetModelsResponse] + } + } + + @js.native + sealed trait ListAssetsFilter extends js.Any + object ListAssetsFilter extends js.Object { + val ALL = "ALL".asInstanceOf[ListAssetsFilter] + val TOP_LEVEL = "TOP_LEVEL".asInstanceOf[ListAssetsFilter] + + val values = js.Object.freeze(js.Array(ALL, TOP_LEVEL)) + } + + @js.native + trait ListAssetsRequest extends js.Object { + var assetModelId: js.UndefOr[ID] + var filter: js.UndefOr[ListAssetsFilter] + var maxResults: js.UndefOr[MaxResults] + var nextToken: js.UndefOr[NextToken] + } + + object ListAssetsRequest { + @inline + def apply( + assetModelId: js.UndefOr[ID] = js.undefined, + filter: js.UndefOr[ListAssetsFilter] = js.undefined, + maxResults: js.UndefOr[MaxResults] = js.undefined, + nextToken: js.UndefOr[NextToken] = js.undefined + ): ListAssetsRequest = { + val __obj = js.Dynamic.literal() + assetModelId.foreach(__v => __obj.updateDynamic("assetModelId")(__v.asInstanceOf[js.Any])) + filter.foreach(__v => __obj.updateDynamic("filter")(__v.asInstanceOf[js.Any])) + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListAssetsRequest] + } + } + + @js.native + trait ListAssetsResponse extends js.Object { + var assetSummaries: AssetSummaries + var nextToken: js.UndefOr[NextToken] + } + + object ListAssetsResponse { + @inline + def apply( + assetSummaries: AssetSummaries, + nextToken: js.UndefOr[NextToken] = js.undefined + ): ListAssetsResponse = { + val __obj = js.Dynamic.literal( + "assetSummaries" -> assetSummaries.asInstanceOf[js.Any] + ) + + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListAssetsResponse] + } + } + + @js.native + trait ListAssociatedAssetsRequest extends js.Object { + var assetId: ID + var hierarchyId: ID + var maxResults: js.UndefOr[MaxResults] + var nextToken: js.UndefOr[NextToken] + } + + object ListAssociatedAssetsRequest { + @inline + def apply( + assetId: ID, + hierarchyId: ID, + maxResults: js.UndefOr[MaxResults] = js.undefined, + nextToken: js.UndefOr[NextToken] = js.undefined + ): ListAssociatedAssetsRequest = { + val __obj = js.Dynamic.literal( + "assetId" -> assetId.asInstanceOf[js.Any], + "hierarchyId" -> hierarchyId.asInstanceOf[js.Any] + ) + + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListAssociatedAssetsRequest] + } + } + + @js.native + trait ListAssociatedAssetsResponse extends js.Object { + var assetSummaries: AssociatedAssetsSummaries + var nextToken: js.UndefOr[NextToken] + } + + object ListAssociatedAssetsResponse { + @inline + def apply( + assetSummaries: AssociatedAssetsSummaries, + nextToken: js.UndefOr[NextToken] = js.undefined + ): ListAssociatedAssetsResponse = { + val __obj = js.Dynamic.literal( + "assetSummaries" -> assetSummaries.asInstanceOf[js.Any] + ) + + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListAssociatedAssetsResponse] + } + } + + @js.native + trait ListDashboardsRequest extends js.Object { + var projectId: ID + var maxResults: js.UndefOr[MaxResults] + var nextToken: js.UndefOr[NextToken] + } + + object ListDashboardsRequest { + @inline + def apply( + projectId: ID, + maxResults: js.UndefOr[MaxResults] = js.undefined, + nextToken: js.UndefOr[NextToken] = js.undefined + ): ListDashboardsRequest = { + val __obj = js.Dynamic.literal( + "projectId" -> projectId.asInstanceOf[js.Any] + ) + + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListDashboardsRequest] + } + } + + @js.native + trait ListDashboardsResponse extends js.Object { + var dashboardSummaries: DashboardSummaries + var nextToken: js.UndefOr[NextToken] + } + + object ListDashboardsResponse { + @inline + def apply( + dashboardSummaries: DashboardSummaries, + nextToken: js.UndefOr[NextToken] = js.undefined + ): ListDashboardsResponse = { + val __obj = js.Dynamic.literal( + "dashboardSummaries" -> dashboardSummaries.asInstanceOf[js.Any] + ) + + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListDashboardsResponse] + } + } + + @js.native + trait ListGatewaysRequest extends js.Object { + var maxResults: js.UndefOr[MaxResults] + var nextToken: js.UndefOr[NextToken] + } + + object ListGatewaysRequest { + @inline + def apply( + maxResults: js.UndefOr[MaxResults] = js.undefined, + nextToken: js.UndefOr[NextToken] = js.undefined + ): ListGatewaysRequest = { + val __obj = js.Dynamic.literal() + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListGatewaysRequest] + } + } + + @js.native + trait ListGatewaysResponse extends js.Object { + var gatewaySummaries: GatewaySummaries + var nextToken: js.UndefOr[NextToken] + } + + object ListGatewaysResponse { + @inline + def apply( + gatewaySummaries: GatewaySummaries, + nextToken: js.UndefOr[NextToken] = js.undefined + ): ListGatewaysResponse = { + val __obj = js.Dynamic.literal( + "gatewaySummaries" -> gatewaySummaries.asInstanceOf[js.Any] + ) + + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListGatewaysResponse] + } + } + + @js.native + trait ListPortalsRequest extends js.Object { + var maxResults: js.UndefOr[MaxResults] + var nextToken: js.UndefOr[NextToken] + } + + object ListPortalsRequest { + @inline + def apply( + maxResults: js.UndefOr[MaxResults] = js.undefined, + nextToken: js.UndefOr[NextToken] = js.undefined + ): ListPortalsRequest = { + val __obj = js.Dynamic.literal() + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListPortalsRequest] + } + } + + @js.native + trait ListPortalsResponse extends js.Object { + var nextToken: js.UndefOr[NextToken] + var portalSummaries: js.UndefOr[PortalSummaries] + } + + object ListPortalsResponse { + @inline + def apply( + nextToken: js.UndefOr[NextToken] = js.undefined, + portalSummaries: js.UndefOr[PortalSummaries] = js.undefined + ): ListPortalsResponse = { + val __obj = js.Dynamic.literal() + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + portalSummaries.foreach(__v => __obj.updateDynamic("portalSummaries")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListPortalsResponse] + } + } + + @js.native + trait ListProjectAssetsRequest extends js.Object { + var projectId: ID + var maxResults: js.UndefOr[MaxResults] + var nextToken: js.UndefOr[NextToken] + } + + object ListProjectAssetsRequest { + @inline + def apply( + projectId: ID, + maxResults: js.UndefOr[MaxResults] = js.undefined, + nextToken: js.UndefOr[NextToken] = js.undefined + ): ListProjectAssetsRequest = { + val __obj = js.Dynamic.literal( + "projectId" -> projectId.asInstanceOf[js.Any] + ) + + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListProjectAssetsRequest] + } + } + + @js.native + trait ListProjectAssetsResponse extends js.Object { + var assetIds: AssetIDs + var nextToken: js.UndefOr[NextToken] + } + + object ListProjectAssetsResponse { + @inline + def apply( + assetIds: AssetIDs, + nextToken: js.UndefOr[NextToken] = js.undefined + ): ListProjectAssetsResponse = { + val __obj = js.Dynamic.literal( + "assetIds" -> assetIds.asInstanceOf[js.Any] + ) + + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListProjectAssetsResponse] + } + } + + @js.native + trait ListProjectsRequest extends js.Object { + var portalId: ID + var maxResults: js.UndefOr[MaxResults] + var nextToken: js.UndefOr[NextToken] + } + + object ListProjectsRequest { + @inline + def apply( + portalId: ID, + maxResults: js.UndefOr[MaxResults] = js.undefined, + nextToken: js.UndefOr[NextToken] = js.undefined + ): ListProjectsRequest = { + val __obj = js.Dynamic.literal( + "portalId" -> portalId.asInstanceOf[js.Any] + ) + + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListProjectsRequest] + } + } + + @js.native + trait ListProjectsResponse extends js.Object { + var projectSummaries: ProjectSummaries + var nextToken: js.UndefOr[NextToken] + } + + object ListProjectsResponse { + @inline + def apply( + projectSummaries: ProjectSummaries, + nextToken: js.UndefOr[NextToken] = js.undefined + ): ListProjectsResponse = { + val __obj = js.Dynamic.literal( + "projectSummaries" -> projectSummaries.asInstanceOf[js.Any] + ) + + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListProjectsResponse] + } + } + + @js.native + trait ListTagsForResourceRequest extends js.Object { + var resourceArn: AmazonResourceName + } + + object ListTagsForResourceRequest { + @inline + def apply( + resourceArn: AmazonResourceName + ): ListTagsForResourceRequest = { + val __obj = js.Dynamic.literal( + "resourceArn" -> resourceArn.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[ListTagsForResourceRequest] + } + } + + @js.native + trait ListTagsForResourceResponse extends js.Object { + var tags: js.UndefOr[TagMap] + } + + object ListTagsForResourceResponse { + @inline + def apply( + tags: js.UndefOr[TagMap] = js.undefined + ): ListTagsForResourceResponse = { + val __obj = js.Dynamic.literal() + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListTagsForResourceResponse] + } + } + + @js.native + sealed trait LoggingLevel extends js.Any + object LoggingLevel extends js.Object { + val ERROR = "ERROR".asInstanceOf[LoggingLevel] + val INFO = "INFO".asInstanceOf[LoggingLevel] + val OFF = "OFF".asInstanceOf[LoggingLevel] + + val values = js.Object.freeze(js.Array(ERROR, INFO, OFF)) + } + + /** + * Contains logging options. + */ + @js.native + trait LoggingOptions extends js.Object { + var level: LoggingLevel + } + + object LoggingOptions { + @inline + def apply( + level: LoggingLevel + ): LoggingOptions = { + val __obj = js.Dynamic.literal( + "level" -> level.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[LoggingOptions] + } + } + + /** + * Contains an asset measurement property. This structure is empty. For more information, see [[https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-properties.html#measurements|Measurements]] in the AWS IoT SiteWise User Guide. + */ + @js.native + trait Measurement extends js.Object {} + + object Measurement { + @inline + def apply( + ): Measurement = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[Measurement] + } + } + + /** + * Contains an asset metric property. With metrics, you can calculate aggregate functions, such as an average, maximum, or minimum, as specified through an expression. A metric maps several values to a single value (such as a sum). + * The maximum number of dependent/cascading variables used in any one metric calculation is 10. Therefore, a root metric can have up to 10 cascading metrics in its computational dependency tree. Additionally, a metric can only have a data type of DOUBLE and consume properties with data types of INTEGER or DOUBLE. + * For more information, see [[https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-properties.html#metrics|Metrics]] in the AWS IoT SiteWise User Guide. + */ + @js.native + trait Metric extends js.Object { + var expression: Expression + var variables: ExpressionVariables + var window: MetricWindow + } + + object Metric { + @inline + def apply( + expression: Expression, + variables: ExpressionVariables, + window: MetricWindow + ): Metric = { + val __obj = js.Dynamic.literal( + "expression" -> expression.asInstanceOf[js.Any], + "variables" -> variables.asInstanceOf[js.Any], + "window" -> window.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[Metric] + } + } + + /** + * Contains a time interval window used for data aggregate computations (for example, average, sum, count, and so on). + */ + @js.native + trait MetricWindow extends js.Object { + var tumbling: js.UndefOr[TumblingWindow] + } + + object MetricWindow { + @inline + def apply( + tumbling: js.UndefOr[TumblingWindow] = js.undefined + ): MetricWindow = { + val __obj = js.Dynamic.literal() + tumbling.foreach(__v => __obj.updateDynamic("tumbling")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[MetricWindow] + } + } + + @js.native + sealed trait MonitorErrorCode extends js.Any + object MonitorErrorCode extends js.Object { + val INTERNAL_FAILURE = "INTERNAL_FAILURE".asInstanceOf[MonitorErrorCode] + + val values = js.Object.freeze(js.Array(INTERNAL_FAILURE)) + } + + /** + * Contains AWS IoT SiteWise Monitor error details. + */ + @js.native + trait MonitorErrorDetails extends js.Object { + var code: js.UndefOr[MonitorErrorCode] + var message: js.UndefOr[MonitorErrorMessage] + } + + object MonitorErrorDetails { + @inline + def apply( + code: js.UndefOr[MonitorErrorCode] = js.undefined, + message: js.UndefOr[MonitorErrorMessage] = js.undefined + ): MonitorErrorDetails = { + val __obj = js.Dynamic.literal() + code.foreach(__v => __obj.updateDynamic("code")(__v.asInstanceOf[js.Any])) + message.foreach(__v => __obj.updateDynamic("message")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[MonitorErrorDetails] + } + } + + @js.native + sealed trait Permission extends js.Any + object Permission extends js.Object { + val ADMINISTRATOR = "ADMINISTRATOR".asInstanceOf[Permission] + val VIEWER = "VIEWER".asInstanceOf[Permission] + + val values = js.Object.freeze(js.Array(ADMINISTRATOR, VIEWER)) + } + + /** + * Identifies an AWS IoT SiteWise Monitor portal. + */ + @js.native + trait PortalResource extends js.Object { + var id: ID + } + + object PortalResource { + @inline + def apply( + id: ID + ): PortalResource = { + val __obj = js.Dynamic.literal( + "id" -> id.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[PortalResource] + } + } + + @js.native + sealed trait PortalState extends js.Any + object PortalState extends js.Object { + val CREATING = "CREATING".asInstanceOf[PortalState] + val UPDATING = "UPDATING".asInstanceOf[PortalState] + val DELETING = "DELETING".asInstanceOf[PortalState] + val ACTIVE = "ACTIVE".asInstanceOf[PortalState] + val FAILED = "FAILED".asInstanceOf[PortalState] + + val values = js.Object.freeze(js.Array(CREATING, UPDATING, DELETING, ACTIVE, FAILED)) + } + + /** + * Contains information about the current status of a portal. + */ + @js.native + trait PortalStatus extends js.Object { + var state: PortalState + var error: js.UndefOr[MonitorErrorDetails] + } + + object PortalStatus { + @inline + def apply( + state: PortalState, + error: js.UndefOr[MonitorErrorDetails] = js.undefined + ): PortalStatus = { + val __obj = js.Dynamic.literal( + "state" -> state.asInstanceOf[js.Any] + ) + + error.foreach(__v => __obj.updateDynamic("error")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[PortalStatus] + } + } + + /** + * Contains a portal summary. + */ + @js.native + trait PortalSummary extends js.Object { + var id: ID + var name: Name + var startUrl: Url + var creationDate: js.UndefOr[Timestamp] + var description: js.UndefOr[Description] + var lastUpdateDate: js.UndefOr[Timestamp] + var roleArn: js.UndefOr[ARN] + } + + object PortalSummary { + @inline + def apply( + id: ID, + name: Name, + startUrl: Url, + creationDate: js.UndefOr[Timestamp] = js.undefined, + description: js.UndefOr[Description] = js.undefined, + lastUpdateDate: js.UndefOr[Timestamp] = js.undefined, + roleArn: js.UndefOr[ARN] = js.undefined + ): PortalSummary = { + val __obj = js.Dynamic.literal( + "id" -> id.asInstanceOf[js.Any], + "name" -> name.asInstanceOf[js.Any], + "startUrl" -> startUrl.asInstanceOf[js.Any] + ) + + creationDate.foreach(__v => __obj.updateDynamic("creationDate")(__v.asInstanceOf[js.Any])) + description.foreach(__v => __obj.updateDynamic("description")(__v.asInstanceOf[js.Any])) + lastUpdateDate.foreach(__v => __obj.updateDynamic("lastUpdateDate")(__v.asInstanceOf[js.Any])) + roleArn.foreach(__v => __obj.updateDynamic("roleArn")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[PortalSummary] + } + } + + /** + * Identifies a specific AWS IoT SiteWise Monitor project. + */ + @js.native + trait ProjectResource extends js.Object { + var id: ID + } + + object ProjectResource { + @inline + def apply( + id: ID + ): ProjectResource = { + val __obj = js.Dynamic.literal( + "id" -> id.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[ProjectResource] + } + } + + /** + * Contains project summary information. + */ + @js.native + trait ProjectSummary extends js.Object { + var id: ID + var name: Name + var creationDate: js.UndefOr[Timestamp] + var description: js.UndefOr[Description] + var lastUpdateDate: js.UndefOr[Timestamp] + } + + object ProjectSummary { + @inline + def apply( + id: ID, + name: Name, + creationDate: js.UndefOr[Timestamp] = js.undefined, + description: js.UndefOr[Description] = js.undefined, + lastUpdateDate: js.UndefOr[Timestamp] = js.undefined + ): ProjectSummary = { + val __obj = js.Dynamic.literal( + "id" -> id.asInstanceOf[js.Any], + "name" -> name.asInstanceOf[js.Any] + ) + + creationDate.foreach(__v => __obj.updateDynamic("creationDate")(__v.asInstanceOf[js.Any])) + description.foreach(__v => __obj.updateDynamic("description")(__v.asInstanceOf[js.Any])) + lastUpdateDate.foreach(__v => __obj.updateDynamic("lastUpdateDate")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ProjectSummary] + } + } + + /** + * Contains asset property information. + */ + @js.native + trait Property extends js.Object { + var dataType: PropertyDataType + var id: ID + var name: Name + var alias: js.UndefOr[PropertyAlias] + var notification: js.UndefOr[PropertyNotification] + var `type`: js.UndefOr[PropertyType] + var unit: js.UndefOr[PropertyUnit] + } + + object Property { + @inline + def apply( + dataType: PropertyDataType, + id: ID, + name: Name, + alias: js.UndefOr[PropertyAlias] = js.undefined, + notification: js.UndefOr[PropertyNotification] = js.undefined, + `type`: js.UndefOr[PropertyType] = js.undefined, + unit: js.UndefOr[PropertyUnit] = js.undefined + ): Property = { + val __obj = js.Dynamic.literal( + "dataType" -> dataType.asInstanceOf[js.Any], + "id" -> id.asInstanceOf[js.Any], + "name" -> name.asInstanceOf[js.Any] + ) + + alias.foreach(__v => __obj.updateDynamic("alias")(__v.asInstanceOf[js.Any])) + notification.foreach(__v => __obj.updateDynamic("notification")(__v.asInstanceOf[js.Any])) + `type`.foreach(__v => __obj.updateDynamic("type")(__v.asInstanceOf[js.Any])) + unit.foreach(__v => __obj.updateDynamic("unit")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[Property] + } + } + + @js.native + sealed trait PropertyDataType extends js.Any + object PropertyDataType extends js.Object { + val STRING = "STRING".asInstanceOf[PropertyDataType] + val INTEGER = "INTEGER".asInstanceOf[PropertyDataType] + val DOUBLE = "DOUBLE".asInstanceOf[PropertyDataType] + val BOOLEAN = "BOOLEAN".asInstanceOf[PropertyDataType] + + val values = js.Object.freeze(js.Array(STRING, INTEGER, DOUBLE, BOOLEAN)) + } + + /** + * Contains asset property value notification information. When the notification state is enabled, AWS IoT SiteWise publishes property value updates to a unique MQTT topic. For more information, see [[https://docs.aws.amazon.com/iot-sitewise/latest/userguide/interact-with-other-services.html|Interacting with Other Services]] in the AWS IoT SiteWise User Guide. + */ + @js.native + trait PropertyNotification extends js.Object { + var state: PropertyNotificationState + var topic: PropertyNotificationTopic + } + + object PropertyNotification { + @inline + def apply( + state: PropertyNotificationState, + topic: PropertyNotificationTopic + ): PropertyNotification = { + val __obj = js.Dynamic.literal( + "state" -> state.asInstanceOf[js.Any], + "topic" -> topic.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[PropertyNotification] + } + } + + @js.native + sealed trait PropertyNotificationState extends js.Any + object PropertyNotificationState extends js.Object { + val ENABLED = "ENABLED".asInstanceOf[PropertyNotificationState] + val DISABLED = "DISABLED".asInstanceOf[PropertyNotificationState] + + val values = js.Object.freeze(js.Array(ENABLED, DISABLED)) + } + + /** + * Contains a property type, which can be one of attribute, measurement, metric, or transform. + */ + @js.native + trait PropertyType extends js.Object { + var attribute: js.UndefOr[Attribute] + var measurement: js.UndefOr[Measurement] + var metric: js.UndefOr[Metric] + var transform: js.UndefOr[Transform] + } + + object PropertyType { + @inline + def apply( + attribute: js.UndefOr[Attribute] = js.undefined, + measurement: js.UndefOr[Measurement] = js.undefined, + metric: js.UndefOr[Metric] = js.undefined, + transform: js.UndefOr[Transform] = js.undefined + ): PropertyType = { + val __obj = js.Dynamic.literal() + attribute.foreach(__v => __obj.updateDynamic("attribute")(__v.asInstanceOf[js.Any])) + measurement.foreach(__v => __obj.updateDynamic("measurement")(__v.asInstanceOf[js.Any])) + metric.foreach(__v => __obj.updateDynamic("metric")(__v.asInstanceOf[js.Any])) + transform.foreach(__v => __obj.updateDynamic("transform")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[PropertyType] + } + } + + /** + * Contains a list of value updates for an asset property in the list of asset entries consumed by the [[https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchPutAssetPropertyValue.html|BatchPutAssetPropertyValue]] API. + */ + @js.native + trait PutAssetPropertyValueEntry extends js.Object { + var entryId: EntryId + var propertyValues: AssetPropertyValues + var assetId: js.UndefOr[ID] + var propertyAlias: js.UndefOr[AssetPropertyAlias] + var propertyId: js.UndefOr[ID] + } + + object PutAssetPropertyValueEntry { + @inline + def apply( + entryId: EntryId, + propertyValues: AssetPropertyValues, + assetId: js.UndefOr[ID] = js.undefined, + propertyAlias: js.UndefOr[AssetPropertyAlias] = js.undefined, + propertyId: js.UndefOr[ID] = js.undefined + ): PutAssetPropertyValueEntry = { + val __obj = js.Dynamic.literal( + "entryId" -> entryId.asInstanceOf[js.Any], + "propertyValues" -> propertyValues.asInstanceOf[js.Any] + ) + + assetId.foreach(__v => __obj.updateDynamic("assetId")(__v.asInstanceOf[js.Any])) + propertyAlias.foreach(__v => __obj.updateDynamic("propertyAlias")(__v.asInstanceOf[js.Any])) + propertyId.foreach(__v => __obj.updateDynamic("propertyId")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[PutAssetPropertyValueEntry] + } + } + + @js.native + trait PutLoggingOptionsRequest extends js.Object { + var loggingOptions: LoggingOptions + } + + object PutLoggingOptionsRequest { + @inline + def apply( + loggingOptions: LoggingOptions + ): PutLoggingOptionsRequest = { + val __obj = js.Dynamic.literal( + "loggingOptions" -> loggingOptions.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[PutLoggingOptionsRequest] + } + } + + @js.native + trait PutLoggingOptionsResponse extends js.Object {} + + object PutLoggingOptionsResponse { + @inline + def apply( + ): PutLoggingOptionsResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[PutLoggingOptionsResponse] + } + } + + @js.native + sealed trait Quality extends js.Any + object Quality extends js.Object { + val GOOD = "GOOD".asInstanceOf[Quality] + val BAD = "BAD".asInstanceOf[Quality] + val UNCERTAIN = "UNCERTAIN".asInstanceOf[Quality] + + val values = js.Object.freeze(js.Array(GOOD, BAD, UNCERTAIN)) + } + + /** + * Contains an AWS IoT SiteWise Monitor resource ID for a portal or project. + */ + @js.native + trait Resource extends js.Object { + var portal: js.UndefOr[PortalResource] + var project: js.UndefOr[ProjectResource] + } + + object Resource { + @inline + def apply( + portal: js.UndefOr[PortalResource] = js.undefined, + project: js.UndefOr[ProjectResource] = js.undefined + ): Resource = { + val __obj = js.Dynamic.literal() + portal.foreach(__v => __obj.updateDynamic("portal")(__v.asInstanceOf[js.Any])) + project.foreach(__v => __obj.updateDynamic("project")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[Resource] + } + } + + @js.native + sealed trait ResourceType extends js.Any + object ResourceType extends js.Object { + val PORTAL = "PORTAL".asInstanceOf[ResourceType] + val PROJECT = "PROJECT".asInstanceOf[ResourceType] + + val values = js.Object.freeze(js.Array(PORTAL, PROJECT)) + } + + @js.native + trait TagResourceRequest extends js.Object { + var resourceArn: AmazonResourceName + var tags: TagMap + } + + object TagResourceRequest { + @inline + def apply( + resourceArn: AmazonResourceName, + tags: TagMap + ): TagResourceRequest = { + val __obj = js.Dynamic.literal( + "resourceArn" -> resourceArn.asInstanceOf[js.Any], + "tags" -> tags.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[TagResourceRequest] + } + } + + @js.native + trait TagResourceResponse extends js.Object {} + + object TagResourceResponse { + @inline + def apply( + ): TagResourceResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[TagResourceResponse] + } + } + + /** + * Contains a timestamp with optional nanosecond granularity. + */ + @js.native + trait TimeInNanos extends js.Object { + var timeInSeconds: TimeInSeconds + var offsetInNanos: js.UndefOr[OffsetInNanos] + } + + object TimeInNanos { + @inline + def apply( + timeInSeconds: TimeInSeconds, + offsetInNanos: js.UndefOr[OffsetInNanos] = js.undefined + ): TimeInNanos = { + val __obj = js.Dynamic.literal( + "timeInSeconds" -> timeInSeconds.asInstanceOf[js.Any] + ) + + offsetInNanos.foreach(__v => __obj.updateDynamic("offsetInNanos")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[TimeInNanos] + } + } + + @js.native + sealed trait TimeOrdering extends js.Any + object TimeOrdering extends js.Object { + val ASCENDING = "ASCENDING".asInstanceOf[TimeOrdering] + val DESCENDING = "DESCENDING".asInstanceOf[TimeOrdering] + + val values = js.Object.freeze(js.Array(ASCENDING, DESCENDING)) + } + + /** + * Contains an asset transform property. A transform is a one-to-one mapping of a property's data points from one form to another. For example, you can use a transform to convert a Celsius data stream to Fahrenheit by applying the transformation expression to each data point of the Celsius stream. A transform can only have a data type of DOUBLE and consume properties with data types of INTEGER or DOUBLE. + * For more information, see [[https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-properties.html#transforms|Transforms]] in the AWS IoT SiteWise User Guide. + */ + @js.native + trait Transform extends js.Object { + var expression: Expression + var variables: ExpressionVariables + } + + object Transform { + @inline + def apply( + expression: Expression, + variables: ExpressionVariables + ): Transform = { + val __obj = js.Dynamic.literal( + "expression" -> expression.asInstanceOf[js.Any], + "variables" -> variables.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[Transform] + } + } + + /** + * Contains a tumbling window, which is a repeating fixed-sized, non-overlapping, and contiguous time interval. This window is used in metric and aggregation computations. + */ + @js.native + trait TumblingWindow extends js.Object { + var interval: Interval + } + + object TumblingWindow { + @inline + def apply( + interval: Interval + ): TumblingWindow = { + val __obj = js.Dynamic.literal( + "interval" -> interval.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[TumblingWindow] + } + } + + @js.native + trait UntagResourceRequest extends js.Object { + var resourceArn: AmazonResourceName + var tagKeys: TagKeyList + } + + object UntagResourceRequest { + @inline + def apply( + resourceArn: AmazonResourceName, + tagKeys: TagKeyList + ): UntagResourceRequest = { + val __obj = js.Dynamic.literal( + "resourceArn" -> resourceArn.asInstanceOf[js.Any], + "tagKeys" -> tagKeys.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[UntagResourceRequest] + } + } + + @js.native + trait UntagResourceResponse extends js.Object {} + + object UntagResourceResponse { + @inline + def apply( + ): UntagResourceResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[UntagResourceResponse] + } + } + + @js.native + trait UpdateAccessPolicyRequest extends js.Object { + var accessPolicyId: ID + var accessPolicyIdentity: Identity + var accessPolicyPermission: Permission + var accessPolicyResource: Resource + var clientToken: js.UndefOr[ClientToken] + } + + object UpdateAccessPolicyRequest { + @inline + def apply( + accessPolicyId: ID, + accessPolicyIdentity: Identity, + accessPolicyPermission: Permission, + accessPolicyResource: Resource, + clientToken: js.UndefOr[ClientToken] = js.undefined + ): UpdateAccessPolicyRequest = { + val __obj = js.Dynamic.literal( + "accessPolicyId" -> accessPolicyId.asInstanceOf[js.Any], + "accessPolicyIdentity" -> accessPolicyIdentity.asInstanceOf[js.Any], + "accessPolicyPermission" -> accessPolicyPermission.asInstanceOf[js.Any], + "accessPolicyResource" -> accessPolicyResource.asInstanceOf[js.Any] + ) + + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[UpdateAccessPolicyRequest] + } + } + + @js.native + trait UpdateAccessPolicyResponse extends js.Object {} + + object UpdateAccessPolicyResponse { + @inline + def apply( + ): UpdateAccessPolicyResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[UpdateAccessPolicyResponse] + } + } + + @js.native + trait UpdateAssetModelRequest extends js.Object { + var assetModelId: ID + var assetModelName: Name + var assetModelDescription: js.UndefOr[Description] + var assetModelHierarchies: js.UndefOr[AssetModelHierarchies] + var assetModelProperties: js.UndefOr[AssetModelProperties] + var clientToken: js.UndefOr[ClientToken] + } + + object UpdateAssetModelRequest { + @inline + def apply( + assetModelId: ID, + assetModelName: Name, + assetModelDescription: js.UndefOr[Description] = js.undefined, + assetModelHierarchies: js.UndefOr[AssetModelHierarchies] = js.undefined, + assetModelProperties: js.UndefOr[AssetModelProperties] = js.undefined, + clientToken: js.UndefOr[ClientToken] = js.undefined + ): UpdateAssetModelRequest = { + val __obj = js.Dynamic.literal( + "assetModelId" -> assetModelId.asInstanceOf[js.Any], + "assetModelName" -> assetModelName.asInstanceOf[js.Any] + ) + + assetModelDescription.foreach(__v => __obj.updateDynamic("assetModelDescription")(__v.asInstanceOf[js.Any])) + assetModelHierarchies.foreach(__v => __obj.updateDynamic("assetModelHierarchies")(__v.asInstanceOf[js.Any])) + assetModelProperties.foreach(__v => __obj.updateDynamic("assetModelProperties")(__v.asInstanceOf[js.Any])) + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[UpdateAssetModelRequest] + } + } + + @js.native + trait UpdateAssetModelResponse extends js.Object { + var assetModelStatus: AssetModelStatus + } + + object UpdateAssetModelResponse { + @inline + def apply( + assetModelStatus: AssetModelStatus + ): UpdateAssetModelResponse = { + val __obj = js.Dynamic.literal( + "assetModelStatus" -> assetModelStatus.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[UpdateAssetModelResponse] + } + } + + @js.native + trait UpdateAssetPropertyRequest extends js.Object { + var assetId: ID + var propertyId: ID + var clientToken: js.UndefOr[ClientToken] + var propertyAlias: js.UndefOr[PropertyAlias] + var propertyNotificationState: js.UndefOr[PropertyNotificationState] + } + + object UpdateAssetPropertyRequest { + @inline + def apply( + assetId: ID, + propertyId: ID, + clientToken: js.UndefOr[ClientToken] = js.undefined, + propertyAlias: js.UndefOr[PropertyAlias] = js.undefined, + propertyNotificationState: js.UndefOr[PropertyNotificationState] = js.undefined + ): UpdateAssetPropertyRequest = { + val __obj = js.Dynamic.literal( + "assetId" -> assetId.asInstanceOf[js.Any], + "propertyId" -> propertyId.asInstanceOf[js.Any] + ) + + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + propertyAlias.foreach(__v => __obj.updateDynamic("propertyAlias")(__v.asInstanceOf[js.Any])) + propertyNotificationState.foreach(__v => + __obj.updateDynamic("propertyNotificationState")(__v.asInstanceOf[js.Any]) + ) + __obj.asInstanceOf[UpdateAssetPropertyRequest] + } + } + + @js.native + trait UpdateAssetRequest extends js.Object { + var assetId: ID + var assetName: Name + var clientToken: js.UndefOr[ClientToken] + } + + object UpdateAssetRequest { + @inline + def apply( + assetId: ID, + assetName: Name, + clientToken: js.UndefOr[ClientToken] = js.undefined + ): UpdateAssetRequest = { + val __obj = js.Dynamic.literal( + "assetId" -> assetId.asInstanceOf[js.Any], + "assetName" -> assetName.asInstanceOf[js.Any] + ) + + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[UpdateAssetRequest] + } + } + + @js.native + trait UpdateAssetResponse extends js.Object { + var assetStatus: AssetStatus + } + + object UpdateAssetResponse { + @inline + def apply( + assetStatus: AssetStatus + ): UpdateAssetResponse = { + val __obj = js.Dynamic.literal( + "assetStatus" -> assetStatus.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[UpdateAssetResponse] + } + } + + @js.native + trait UpdateDashboardRequest extends js.Object { + var dashboardDefinition: DashboardDefinition + var dashboardId: ID + var dashboardName: Name + var clientToken: js.UndefOr[ClientToken] + var dashboardDescription: js.UndefOr[Description] + } + + object UpdateDashboardRequest { + @inline + def apply( + dashboardDefinition: DashboardDefinition, + dashboardId: ID, + dashboardName: Name, + clientToken: js.UndefOr[ClientToken] = js.undefined, + dashboardDescription: js.UndefOr[Description] = js.undefined + ): UpdateDashboardRequest = { + val __obj = js.Dynamic.literal( + "dashboardDefinition" -> dashboardDefinition.asInstanceOf[js.Any], + "dashboardId" -> dashboardId.asInstanceOf[js.Any], + "dashboardName" -> dashboardName.asInstanceOf[js.Any] + ) + + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + dashboardDescription.foreach(__v => __obj.updateDynamic("dashboardDescription")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[UpdateDashboardRequest] + } + } + + @js.native + trait UpdateDashboardResponse extends js.Object {} + + object UpdateDashboardResponse { + @inline + def apply( + ): UpdateDashboardResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[UpdateDashboardResponse] + } + } + + @js.native + trait UpdateGatewayCapabilityConfigurationRequest extends js.Object { + var capabilityConfiguration: CapabilityConfiguration + var capabilityNamespace: CapabilityNamespace + var gatewayId: ID + } + + object UpdateGatewayCapabilityConfigurationRequest { + @inline + def apply( + capabilityConfiguration: CapabilityConfiguration, + capabilityNamespace: CapabilityNamespace, + gatewayId: ID + ): UpdateGatewayCapabilityConfigurationRequest = { + val __obj = js.Dynamic.literal( + "capabilityConfiguration" -> capabilityConfiguration.asInstanceOf[js.Any], + "capabilityNamespace" -> capabilityNamespace.asInstanceOf[js.Any], + "gatewayId" -> gatewayId.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[UpdateGatewayCapabilityConfigurationRequest] + } + } + + @js.native + trait UpdateGatewayCapabilityConfigurationResponse extends js.Object { + var capabilityNamespace: CapabilityNamespace + var capabilitySyncStatus: CapabilitySyncStatus + } + + object UpdateGatewayCapabilityConfigurationResponse { + @inline + def apply( + capabilityNamespace: CapabilityNamespace, + capabilitySyncStatus: CapabilitySyncStatus + ): UpdateGatewayCapabilityConfigurationResponse = { + val __obj = js.Dynamic.literal( + "capabilityNamespace" -> capabilityNamespace.asInstanceOf[js.Any], + "capabilitySyncStatus" -> capabilitySyncStatus.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[UpdateGatewayCapabilityConfigurationResponse] + } + } + + @js.native + trait UpdateGatewayRequest extends js.Object { + var gatewayId: ID + var gatewayName: Name + } + + object UpdateGatewayRequest { + @inline + def apply( + gatewayId: ID, + gatewayName: Name + ): UpdateGatewayRequest = { + val __obj = js.Dynamic.literal( + "gatewayId" -> gatewayId.asInstanceOf[js.Any], + "gatewayName" -> gatewayName.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[UpdateGatewayRequest] + } + } + + @js.native + trait UpdatePortalRequest extends js.Object { + var portalContactEmail: Email + var portalId: ID + var portalName: Name + var roleArn: ARN + var clientToken: js.UndefOr[ClientToken] + var portalDescription: js.UndefOr[Description] + var portalLogoImage: js.UndefOr[Image] + } + + object UpdatePortalRequest { + @inline + def apply( + portalContactEmail: Email, + portalId: ID, + portalName: Name, + roleArn: ARN, + clientToken: js.UndefOr[ClientToken] = js.undefined, + portalDescription: js.UndefOr[Description] = js.undefined, + portalLogoImage: js.UndefOr[Image] = js.undefined + ): UpdatePortalRequest = { + val __obj = js.Dynamic.literal( + "portalContactEmail" -> portalContactEmail.asInstanceOf[js.Any], + "portalId" -> portalId.asInstanceOf[js.Any], + "portalName" -> portalName.asInstanceOf[js.Any], + "roleArn" -> roleArn.asInstanceOf[js.Any] + ) + + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + portalDescription.foreach(__v => __obj.updateDynamic("portalDescription")(__v.asInstanceOf[js.Any])) + portalLogoImage.foreach(__v => __obj.updateDynamic("portalLogoImage")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[UpdatePortalRequest] + } + } + + @js.native + trait UpdatePortalResponse extends js.Object { + var portalStatus: PortalStatus + } + + object UpdatePortalResponse { + @inline + def apply( + portalStatus: PortalStatus + ): UpdatePortalResponse = { + val __obj = js.Dynamic.literal( + "portalStatus" -> portalStatus.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[UpdatePortalResponse] + } + } + + @js.native + trait UpdateProjectRequest extends js.Object { + var projectId: ID + var projectName: Name + var clientToken: js.UndefOr[ClientToken] + var projectDescription: js.UndefOr[Description] + } + + object UpdateProjectRequest { + @inline + def apply( + projectId: ID, + projectName: Name, + clientToken: js.UndefOr[ClientToken] = js.undefined, + projectDescription: js.UndefOr[Description] = js.undefined + ): UpdateProjectRequest = { + val __obj = js.Dynamic.literal( + "projectId" -> projectId.asInstanceOf[js.Any], + "projectName" -> projectName.asInstanceOf[js.Any] + ) + + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + projectDescription.foreach(__v => __obj.updateDynamic("projectDescription")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[UpdateProjectRequest] + } + } + + @js.native + trait UpdateProjectResponse extends js.Object {} + + object UpdateProjectResponse { + @inline + def apply( + ): UpdateProjectResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[UpdateProjectResponse] + } + } + + /** + * Contains information for a user identity in an access policy. + */ + @js.native + trait UserIdentity extends js.Object { + var id: IdentityId + } + + object UserIdentity { + @inline + def apply( + id: IdentityId + ): UserIdentity = { + val __obj = js.Dynamic.literal( + "id" -> id.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[UserIdentity] + } + } + + /** + * Identifies a property value used in an expression. + */ + @js.native + trait VariableValue extends js.Object { + var propertyId: Macro + var hierarchyId: js.UndefOr[Macro] + } + + object VariableValue { + @inline + def apply( + propertyId: Macro, + hierarchyId: js.UndefOr[Macro] = js.undefined + ): VariableValue = { + val __obj = js.Dynamic.literal( + "propertyId" -> propertyId.asInstanceOf[js.Any] + ) + + hierarchyId.foreach(__v => __obj.updateDynamic("hierarchyId")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[VariableValue] + } + } + + /** + * Contains an asset property value (of a single type only). + */ + @js.native + trait Variant extends js.Object { + var booleanValue: js.UndefOr[PropertyValueBooleanValue] + var doubleValue: js.UndefOr[PropertyValueDoubleValue] + var integerValue: js.UndefOr[PropertyValueIntegerValue] + var stringValue: js.UndefOr[PropertyValueStringValue] + } + + object Variant { + @inline + def apply( + booleanValue: js.UndefOr[PropertyValueBooleanValue] = js.undefined, + doubleValue: js.UndefOr[PropertyValueDoubleValue] = js.undefined, + integerValue: js.UndefOr[PropertyValueIntegerValue] = js.undefined, + stringValue: js.UndefOr[PropertyValueStringValue] = js.undefined + ): Variant = { + val __obj = js.Dynamic.literal() + booleanValue.foreach(__v => __obj.updateDynamic("booleanValue")(__v.asInstanceOf[js.Any])) + doubleValue.foreach(__v => __obj.updateDynamic("doubleValue")(__v.asInstanceOf[js.Any])) + integerValue.foreach(__v => __obj.updateDynamic("integerValue")(__v.asInstanceOf[js.Any])) + stringValue.foreach(__v => __obj.updateDynamic("stringValue")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[Variant] + } + } +} diff --git a/services/ivs/src/main/scala/facade/amazonaws/services/IVS.scala b/services/ivs/src/main/scala/facade/amazonaws/services/IVS.scala new file mode 100644 index 000000000..fc3827eec --- /dev/null +++ b/services/ivs/src/main/scala/facade/amazonaws/services/IVS.scala @@ -0,0 +1,980 @@ +package facade.amazonaws.services + +import scalajs._ +import scalajs.js.annotation.JSImport +import scala.scalajs.js.| +import scala.concurrent.Future +import facade.amazonaws._ + +package object ivs { + type BatchErrors = js.Array[BatchError] + type ChannelArn = String + type ChannelArnList = js.Array[ChannelArn] + type ChannelList = js.Array[ChannelSummary] + type ChannelName = String + type Channels = js.Array[Channel] + type IngestEndpoint = String + type MaxChannelResults = Int + type MaxStreamKeyResults = Int + type MaxStreamResults = Int + type MaxTagResults = Int + type PaginationToken = String + type PlaybackURL = String + type ResourceArn = String + type StreamKeyArn = String + type StreamKeyArnList = js.Array[StreamKeyArn] + type StreamKeyList = js.Array[StreamKeySummary] + type StreamKeyValue = String + type StreamKeys = js.Array[StreamKey] + type StreamList = js.Array[StreamSummary] + type StreamMetadata = String + type StreamStartTime = js.Date + type StreamViewerCount = Double + type TagKey = String + type TagKeyList = js.Array[TagKey] + type TagValue = String + type Tags = js.Dictionary[TagValue] + type errorCode = String + type errorMessage = String + + implicit final class IVSOps(private val service: IVS) extends AnyVal { + + @inline def batchGetChannelFuture(params: BatchGetChannelRequest): Future[BatchGetChannelResponse] = + service.batchGetChannel(params).promise().toFuture + @inline def batchGetStreamKeyFuture(params: BatchGetStreamKeyRequest): Future[BatchGetStreamKeyResponse] = + service.batchGetStreamKey(params).promise().toFuture + @inline def createChannelFuture(params: CreateChannelRequest): Future[CreateChannelResponse] = + service.createChannel(params).promise().toFuture + @inline def createStreamKeyFuture(params: CreateStreamKeyRequest): Future[CreateStreamKeyResponse] = + service.createStreamKey(params).promise().toFuture + @inline def deleteChannelFuture(params: DeleteChannelRequest): Future[js.Object] = + service.deleteChannel(params).promise().toFuture + @inline def deleteStreamKeyFuture(params: DeleteStreamKeyRequest): Future[js.Object] = + service.deleteStreamKey(params).promise().toFuture + @inline def getChannelFuture(params: GetChannelRequest): Future[GetChannelResponse] = + service.getChannel(params).promise().toFuture + @inline def getStreamFuture(params: GetStreamRequest): Future[GetStreamResponse] = + service.getStream(params).promise().toFuture + @inline def getStreamKeyFuture(params: GetStreamKeyRequest): Future[GetStreamKeyResponse] = + service.getStreamKey(params).promise().toFuture + @inline def listChannelsFuture(params: ListChannelsRequest): Future[ListChannelsResponse] = + service.listChannels(params).promise().toFuture + @inline def listStreamKeysFuture(params: ListStreamKeysRequest): Future[ListStreamKeysResponse] = + service.listStreamKeys(params).promise().toFuture + @inline def listStreamsFuture(params: ListStreamsRequest): Future[ListStreamsResponse] = + service.listStreams(params).promise().toFuture + @inline def listTagsForResourceFuture(params: ListTagsForResourceRequest): Future[ListTagsForResourceResponse] = + service.listTagsForResource(params).promise().toFuture + @inline def putMetadataFuture(params: PutMetadataRequest): Future[js.Object] = + service.putMetadata(params).promise().toFuture + @inline def stopStreamFuture(params: StopStreamRequest): Future[StopStreamResponse] = + service.stopStream(params).promise().toFuture + @inline def tagResourceFuture(params: TagResourceRequest): Future[TagResourceResponse] = + service.tagResource(params).promise().toFuture + @inline def untagResourceFuture(params: UntagResourceRequest): Future[UntagResourceResponse] = + service.untagResource(params).promise().toFuture + @inline def updateChannelFuture(params: UpdateChannelRequest): Future[UpdateChannelResponse] = + service.updateChannel(params).promise().toFuture + } +} + +package ivs { + @js.native + @JSImport("aws-sdk", "IVS", "AWS.IVS") + class IVS() extends js.Object { + def this(config: AWSConfig) = this() + + def batchGetChannel(params: BatchGetChannelRequest): Request[BatchGetChannelResponse] = js.native + def batchGetStreamKey(params: BatchGetStreamKeyRequest): Request[BatchGetStreamKeyResponse] = js.native + def createChannel(params: CreateChannelRequest): Request[CreateChannelResponse] = js.native + def createStreamKey(params: CreateStreamKeyRequest): Request[CreateStreamKeyResponse] = js.native + def deleteChannel(params: DeleteChannelRequest): Request[js.Object] = js.native + def deleteStreamKey(params: DeleteStreamKeyRequest): Request[js.Object] = js.native + def getChannel(params: GetChannelRequest): Request[GetChannelResponse] = js.native + def getStream(params: GetStreamRequest): Request[GetStreamResponse] = js.native + def getStreamKey(params: GetStreamKeyRequest): Request[GetStreamKeyResponse] = js.native + def listChannels(params: ListChannelsRequest): Request[ListChannelsResponse] = js.native + def listStreamKeys(params: ListStreamKeysRequest): Request[ListStreamKeysResponse] = js.native + def listStreams(params: ListStreamsRequest): Request[ListStreamsResponse] = js.native + def listTagsForResource(params: ListTagsForResourceRequest): Request[ListTagsForResourceResponse] = js.native + def putMetadata(params: PutMetadataRequest): Request[js.Object] = js.native + def stopStream(params: StopStreamRequest): Request[StopStreamResponse] = js.native + def tagResource(params: TagResourceRequest): Request[TagResourceResponse] = js.native + def untagResource(params: UntagResourceRequest): Request[UntagResourceResponse] = js.native + def updateChannel(params: UpdateChannelRequest): Request[UpdateChannelResponse] = js.native + } + + /** + * Error related to a specific channel, specified by its ARN. + */ + @js.native + trait BatchError extends js.Object { + var arn: js.UndefOr[ResourceArn] + var code: js.UndefOr[errorCode] + var message: js.UndefOr[errorMessage] + } + + object BatchError { + @inline + def apply( + arn: js.UndefOr[ResourceArn] = js.undefined, + code: js.UndefOr[errorCode] = js.undefined, + message: js.UndefOr[errorMessage] = js.undefined + ): BatchError = { + val __obj = js.Dynamic.literal() + arn.foreach(__v => __obj.updateDynamic("arn")(__v.asInstanceOf[js.Any])) + code.foreach(__v => __obj.updateDynamic("code")(__v.asInstanceOf[js.Any])) + message.foreach(__v => __obj.updateDynamic("message")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[BatchError] + } + } + + @js.native + trait BatchGetChannelRequest extends js.Object { + var arns: ChannelArnList + } + + object BatchGetChannelRequest { + @inline + def apply( + arns: ChannelArnList + ): BatchGetChannelRequest = { + val __obj = js.Dynamic.literal( + "arns" -> arns.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[BatchGetChannelRequest] + } + } + + @js.native + trait BatchGetChannelResponse extends js.Object { + var channels: js.UndefOr[Channels] + var errors: js.UndefOr[BatchErrors] + } + + object BatchGetChannelResponse { + @inline + def apply( + channels: js.UndefOr[Channels] = js.undefined, + errors: js.UndefOr[BatchErrors] = js.undefined + ): BatchGetChannelResponse = { + val __obj = js.Dynamic.literal() + channels.foreach(__v => __obj.updateDynamic("channels")(__v.asInstanceOf[js.Any])) + errors.foreach(__v => __obj.updateDynamic("errors")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[BatchGetChannelResponse] + } + } + + @js.native + trait BatchGetStreamKeyRequest extends js.Object { + var arns: StreamKeyArnList + } + + object BatchGetStreamKeyRequest { + @inline + def apply( + arns: StreamKeyArnList + ): BatchGetStreamKeyRequest = { + val __obj = js.Dynamic.literal( + "arns" -> arns.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[BatchGetStreamKeyRequest] + } + } + + @js.native + trait BatchGetStreamKeyResponse extends js.Object { + var errors: js.UndefOr[BatchErrors] + var streamKeys: js.UndefOr[StreamKeys] + } + + object BatchGetStreamKeyResponse { + @inline + def apply( + errors: js.UndefOr[BatchErrors] = js.undefined, + streamKeys: js.UndefOr[StreamKeys] = js.undefined + ): BatchGetStreamKeyResponse = { + val __obj = js.Dynamic.literal() + errors.foreach(__v => __obj.updateDynamic("errors")(__v.asInstanceOf[js.Any])) + streamKeys.foreach(__v => __obj.updateDynamic("streamKeys")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[BatchGetStreamKeyResponse] + } + } + + /** + * Object specifying a channel. + */ + @js.native + trait Channel extends js.Object { + var arn: js.UndefOr[ChannelArn] + var ingestEndpoint: js.UndefOr[IngestEndpoint] + var latencyMode: js.UndefOr[ChannelLatencyMode] + var name: js.UndefOr[ChannelName] + var playbackUrl: js.UndefOr[PlaybackURL] + var tags: js.UndefOr[Tags] + var `type`: js.UndefOr[ChannelType] + } + + object Channel { + @inline + def apply( + arn: js.UndefOr[ChannelArn] = js.undefined, + ingestEndpoint: js.UndefOr[IngestEndpoint] = js.undefined, + latencyMode: js.UndefOr[ChannelLatencyMode] = js.undefined, + name: js.UndefOr[ChannelName] = js.undefined, + playbackUrl: js.UndefOr[PlaybackURL] = js.undefined, + tags: js.UndefOr[Tags] = js.undefined, + `type`: js.UndefOr[ChannelType] = js.undefined + ): Channel = { + val __obj = js.Dynamic.literal() + arn.foreach(__v => __obj.updateDynamic("arn")(__v.asInstanceOf[js.Any])) + ingestEndpoint.foreach(__v => __obj.updateDynamic("ingestEndpoint")(__v.asInstanceOf[js.Any])) + latencyMode.foreach(__v => __obj.updateDynamic("latencyMode")(__v.asInstanceOf[js.Any])) + name.foreach(__v => __obj.updateDynamic("name")(__v.asInstanceOf[js.Any])) + playbackUrl.foreach(__v => __obj.updateDynamic("playbackUrl")(__v.asInstanceOf[js.Any])) + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + `type`.foreach(__v => __obj.updateDynamic("type")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[Channel] + } + } + + @js.native + sealed trait ChannelLatencyMode extends js.Any + object ChannelLatencyMode extends js.Object { + val NORMAL = "NORMAL".asInstanceOf[ChannelLatencyMode] + val LOW = "LOW".asInstanceOf[ChannelLatencyMode] + + val values = js.Object.freeze(js.Array(NORMAL, LOW)) + } + + /** + * Summary information about a channel. + */ + @js.native + trait ChannelSummary extends js.Object { + var arn: js.UndefOr[ChannelArn] + var latencyMode: js.UndefOr[ChannelLatencyMode] + var name: js.UndefOr[ChannelName] + var tags: js.UndefOr[Tags] + } + + object ChannelSummary { + @inline + def apply( + arn: js.UndefOr[ChannelArn] = js.undefined, + latencyMode: js.UndefOr[ChannelLatencyMode] = js.undefined, + name: js.UndefOr[ChannelName] = js.undefined, + tags: js.UndefOr[Tags] = js.undefined + ): ChannelSummary = { + val __obj = js.Dynamic.literal() + arn.foreach(__v => __obj.updateDynamic("arn")(__v.asInstanceOf[js.Any])) + latencyMode.foreach(__v => __obj.updateDynamic("latencyMode")(__v.asInstanceOf[js.Any])) + name.foreach(__v => __obj.updateDynamic("name")(__v.asInstanceOf[js.Any])) + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ChannelSummary] + } + } + + @js.native + sealed trait ChannelType extends js.Any + object ChannelType extends js.Object { + val BASIC = "BASIC".asInstanceOf[ChannelType] + val STANDARD = "STANDARD".asInstanceOf[ChannelType] + + val values = js.Object.freeze(js.Array(BASIC, STANDARD)) + } + + @js.native + trait CreateChannelRequest extends js.Object { + var latencyMode: js.UndefOr[ChannelLatencyMode] + var name: js.UndefOr[ChannelName] + var tags: js.UndefOr[Tags] + var `type`: js.UndefOr[ChannelType] + } + + object CreateChannelRequest { + @inline + def apply( + latencyMode: js.UndefOr[ChannelLatencyMode] = js.undefined, + name: js.UndefOr[ChannelName] = js.undefined, + tags: js.UndefOr[Tags] = js.undefined, + `type`: js.UndefOr[ChannelType] = js.undefined + ): CreateChannelRequest = { + val __obj = js.Dynamic.literal() + latencyMode.foreach(__v => __obj.updateDynamic("latencyMode")(__v.asInstanceOf[js.Any])) + name.foreach(__v => __obj.updateDynamic("name")(__v.asInstanceOf[js.Any])) + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + `type`.foreach(__v => __obj.updateDynamic("type")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateChannelRequest] + } + } + + @js.native + trait CreateChannelResponse extends js.Object { + var channel: js.UndefOr[Channel] + var streamKey: js.UndefOr[StreamKey] + } + + object CreateChannelResponse { + @inline + def apply( + channel: js.UndefOr[Channel] = js.undefined, + streamKey: js.UndefOr[StreamKey] = js.undefined + ): CreateChannelResponse = { + val __obj = js.Dynamic.literal() + channel.foreach(__v => __obj.updateDynamic("channel")(__v.asInstanceOf[js.Any])) + streamKey.foreach(__v => __obj.updateDynamic("streamKey")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateChannelResponse] + } + } + + @js.native + trait CreateStreamKeyRequest extends js.Object { + var channelArn: ChannelArn + var tags: js.UndefOr[Tags] + } + + object CreateStreamKeyRequest { + @inline + def apply( + channelArn: ChannelArn, + tags: js.UndefOr[Tags] = js.undefined + ): CreateStreamKeyRequest = { + val __obj = js.Dynamic.literal( + "channelArn" -> channelArn.asInstanceOf[js.Any] + ) + + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateStreamKeyRequest] + } + } + + @js.native + trait CreateStreamKeyResponse extends js.Object { + var streamKey: js.UndefOr[StreamKey] + } + + object CreateStreamKeyResponse { + @inline + def apply( + streamKey: js.UndefOr[StreamKey] = js.undefined + ): CreateStreamKeyResponse = { + val __obj = js.Dynamic.literal() + streamKey.foreach(__v => __obj.updateDynamic("streamKey")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateStreamKeyResponse] + } + } + + @js.native + trait DeleteChannelRequest extends js.Object { + var arn: ChannelArn + } + + object DeleteChannelRequest { + @inline + def apply( + arn: ChannelArn + ): DeleteChannelRequest = { + val __obj = js.Dynamic.literal( + "arn" -> arn.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DeleteChannelRequest] + } + } + + @js.native + trait DeleteStreamKeyRequest extends js.Object { + var arn: StreamKeyArn + } + + object DeleteStreamKeyRequest { + @inline + def apply( + arn: StreamKeyArn + ): DeleteStreamKeyRequest = { + val __obj = js.Dynamic.literal( + "arn" -> arn.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DeleteStreamKeyRequest] + } + } + + @js.native + trait GetChannelRequest extends js.Object { + var arn: ChannelArn + } + + object GetChannelRequest { + @inline + def apply( + arn: ChannelArn + ): GetChannelRequest = { + val __obj = js.Dynamic.literal( + "arn" -> arn.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[GetChannelRequest] + } + } + + @js.native + trait GetChannelResponse extends js.Object { + var channel: js.UndefOr[Channel] + } + + object GetChannelResponse { + @inline + def apply( + channel: js.UndefOr[Channel] = js.undefined + ): GetChannelResponse = { + val __obj = js.Dynamic.literal() + channel.foreach(__v => __obj.updateDynamic("channel")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetChannelResponse] + } + } + + @js.native + trait GetStreamKeyRequest extends js.Object { + var arn: StreamKeyArn + } + + object GetStreamKeyRequest { + @inline + def apply( + arn: StreamKeyArn + ): GetStreamKeyRequest = { + val __obj = js.Dynamic.literal( + "arn" -> arn.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[GetStreamKeyRequest] + } + } + + @js.native + trait GetStreamKeyResponse extends js.Object { + var streamKey: js.UndefOr[StreamKey] + } + + object GetStreamKeyResponse { + @inline + def apply( + streamKey: js.UndefOr[StreamKey] = js.undefined + ): GetStreamKeyResponse = { + val __obj = js.Dynamic.literal() + streamKey.foreach(__v => __obj.updateDynamic("streamKey")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetStreamKeyResponse] + } + } + + @js.native + trait GetStreamRequest extends js.Object { + var channelArn: ChannelArn + } + + object GetStreamRequest { + @inline + def apply( + channelArn: ChannelArn + ): GetStreamRequest = { + val __obj = js.Dynamic.literal( + "channelArn" -> channelArn.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[GetStreamRequest] + } + } + + @js.native + trait GetStreamResponse extends js.Object { + var stream: js.UndefOr[Stream] + } + + object GetStreamResponse { + @inline + def apply( + stream: js.UndefOr[Stream] = js.undefined + ): GetStreamResponse = { + val __obj = js.Dynamic.literal() + stream.foreach(__v => __obj.updateDynamic("stream")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetStreamResponse] + } + } + + @js.native + trait ListChannelsRequest extends js.Object { + var filterByName: js.UndefOr[ChannelName] + var maxResults: js.UndefOr[MaxChannelResults] + var nextToken: js.UndefOr[PaginationToken] + } + + object ListChannelsRequest { + @inline + def apply( + filterByName: js.UndefOr[ChannelName] = js.undefined, + maxResults: js.UndefOr[MaxChannelResults] = js.undefined, + nextToken: js.UndefOr[PaginationToken] = js.undefined + ): ListChannelsRequest = { + val __obj = js.Dynamic.literal() + filterByName.foreach(__v => __obj.updateDynamic("filterByName")(__v.asInstanceOf[js.Any])) + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListChannelsRequest] + } + } + + @js.native + trait ListChannelsResponse extends js.Object { + var channels: ChannelList + var nextToken: js.UndefOr[PaginationToken] + } + + object ListChannelsResponse { + @inline + def apply( + channels: ChannelList, + nextToken: js.UndefOr[PaginationToken] = js.undefined + ): ListChannelsResponse = { + val __obj = js.Dynamic.literal( + "channels" -> channels.asInstanceOf[js.Any] + ) + + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListChannelsResponse] + } + } + + @js.native + trait ListStreamKeysRequest extends js.Object { + var channelArn: ChannelArn + var maxResults: js.UndefOr[MaxStreamKeyResults] + var nextToken: js.UndefOr[PaginationToken] + } + + object ListStreamKeysRequest { + @inline + def apply( + channelArn: ChannelArn, + maxResults: js.UndefOr[MaxStreamKeyResults] = js.undefined, + nextToken: js.UndefOr[PaginationToken] = js.undefined + ): ListStreamKeysRequest = { + val __obj = js.Dynamic.literal( + "channelArn" -> channelArn.asInstanceOf[js.Any] + ) + + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListStreamKeysRequest] + } + } + + @js.native + trait ListStreamKeysResponse extends js.Object { + var streamKeys: StreamKeyList + var nextToken: js.UndefOr[PaginationToken] + } + + object ListStreamKeysResponse { + @inline + def apply( + streamKeys: StreamKeyList, + nextToken: js.UndefOr[PaginationToken] = js.undefined + ): ListStreamKeysResponse = { + val __obj = js.Dynamic.literal( + "streamKeys" -> streamKeys.asInstanceOf[js.Any] + ) + + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListStreamKeysResponse] + } + } + + @js.native + trait ListStreamsRequest extends js.Object { + var maxResults: js.UndefOr[MaxStreamResults] + var nextToken: js.UndefOr[PaginationToken] + } + + object ListStreamsRequest { + @inline + def apply( + maxResults: js.UndefOr[MaxStreamResults] = js.undefined, + nextToken: js.UndefOr[PaginationToken] = js.undefined + ): ListStreamsRequest = { + val __obj = js.Dynamic.literal() + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListStreamsRequest] + } + } + + @js.native + trait ListStreamsResponse extends js.Object { + var streams: StreamList + var nextToken: js.UndefOr[PaginationToken] + } + + object ListStreamsResponse { + @inline + def apply( + streams: StreamList, + nextToken: js.UndefOr[PaginationToken] = js.undefined + ): ListStreamsResponse = { + val __obj = js.Dynamic.literal( + "streams" -> streams.asInstanceOf[js.Any] + ) + + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListStreamsResponse] + } + } + + @js.native + trait ListTagsForResourceRequest extends js.Object { + var resourceArn: ResourceArn + var maxResults: js.UndefOr[MaxTagResults] + var nextToken: js.UndefOr[String] + } + + object ListTagsForResourceRequest { + @inline + def apply( + resourceArn: ResourceArn, + maxResults: js.UndefOr[MaxTagResults] = js.undefined, + nextToken: js.UndefOr[String] = js.undefined + ): ListTagsForResourceRequest = { + val __obj = js.Dynamic.literal( + "resourceArn" -> resourceArn.asInstanceOf[js.Any] + ) + + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListTagsForResourceRequest] + } + } + + @js.native + trait ListTagsForResourceResponse extends js.Object { + var tags: Tags + var nextToken: js.UndefOr[String] + } + + object ListTagsForResourceResponse { + @inline + def apply( + tags: Tags, + nextToken: js.UndefOr[String] = js.undefined + ): ListTagsForResourceResponse = { + val __obj = js.Dynamic.literal( + "tags" -> tags.asInstanceOf[js.Any] + ) + + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListTagsForResourceResponse] + } + } + + @js.native + trait PutMetadataRequest extends js.Object { + var channelArn: ChannelArn + var metadata: StreamMetadata + } + + object PutMetadataRequest { + @inline + def apply( + channelArn: ChannelArn, + metadata: StreamMetadata + ): PutMetadataRequest = { + val __obj = js.Dynamic.literal( + "channelArn" -> channelArn.asInstanceOf[js.Any], + "metadata" -> metadata.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[PutMetadataRequest] + } + } + + @js.native + trait StopStreamRequest extends js.Object { + var channelArn: ChannelArn + } + + object StopStreamRequest { + @inline + def apply( + channelArn: ChannelArn + ): StopStreamRequest = { + val __obj = js.Dynamic.literal( + "channelArn" -> channelArn.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[StopStreamRequest] + } + } + + @js.native + trait StopStreamResponse extends js.Object {} + + object StopStreamResponse { + @inline + def apply( + ): StopStreamResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[StopStreamResponse] + } + } + + /** + * Specifies a live video stream that has been ingested and distributed. + */ + @js.native + trait Stream extends js.Object { + var channelArn: js.UndefOr[ChannelArn] + var health: js.UndefOr[StreamHealth] + var playbackUrl: js.UndefOr[PlaybackURL] + var startTime: js.UndefOr[StreamStartTime] + var state: js.UndefOr[StreamState] + var viewerCount: js.UndefOr[StreamViewerCount] + } + + object Stream { + @inline + def apply( + channelArn: js.UndefOr[ChannelArn] = js.undefined, + health: js.UndefOr[StreamHealth] = js.undefined, + playbackUrl: js.UndefOr[PlaybackURL] = js.undefined, + startTime: js.UndefOr[StreamStartTime] = js.undefined, + state: js.UndefOr[StreamState] = js.undefined, + viewerCount: js.UndefOr[StreamViewerCount] = js.undefined + ): Stream = { + val __obj = js.Dynamic.literal() + channelArn.foreach(__v => __obj.updateDynamic("channelArn")(__v.asInstanceOf[js.Any])) + health.foreach(__v => __obj.updateDynamic("health")(__v.asInstanceOf[js.Any])) + playbackUrl.foreach(__v => __obj.updateDynamic("playbackUrl")(__v.asInstanceOf[js.Any])) + startTime.foreach(__v => __obj.updateDynamic("startTime")(__v.asInstanceOf[js.Any])) + state.foreach(__v => __obj.updateDynamic("state")(__v.asInstanceOf[js.Any])) + viewerCount.foreach(__v => __obj.updateDynamic("viewerCount")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[Stream] + } + } + + @js.native + sealed trait StreamHealth extends js.Any + object StreamHealth extends js.Object { + val HEALTHY = "HEALTHY".asInstanceOf[StreamHealth] + val STARVING = "STARVING".asInstanceOf[StreamHealth] + val UNKNOWN = "UNKNOWN".asInstanceOf[StreamHealth] + + val values = js.Object.freeze(js.Array(HEALTHY, STARVING, UNKNOWN)) + } + + /** + * Object specifying a stream key. + */ + @js.native + trait StreamKey extends js.Object { + var arn: js.UndefOr[StreamKeyArn] + var channelArn: js.UndefOr[ChannelArn] + var tags: js.UndefOr[Tags] + var value: js.UndefOr[StreamKeyValue] + } + + object StreamKey { + @inline + def apply( + arn: js.UndefOr[StreamKeyArn] = js.undefined, + channelArn: js.UndefOr[ChannelArn] = js.undefined, + tags: js.UndefOr[Tags] = js.undefined, + value: js.UndefOr[StreamKeyValue] = js.undefined + ): StreamKey = { + val __obj = js.Dynamic.literal() + arn.foreach(__v => __obj.updateDynamic("arn")(__v.asInstanceOf[js.Any])) + channelArn.foreach(__v => __obj.updateDynamic("channelArn")(__v.asInstanceOf[js.Any])) + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + value.foreach(__v => __obj.updateDynamic("value")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[StreamKey] + } + } + + /** + * Summary information about a stream key. + */ + @js.native + trait StreamKeySummary extends js.Object { + var arn: js.UndefOr[StreamKeyArn] + var channelArn: js.UndefOr[ChannelArn] + var tags: js.UndefOr[Tags] + } + + object StreamKeySummary { + @inline + def apply( + arn: js.UndefOr[StreamKeyArn] = js.undefined, + channelArn: js.UndefOr[ChannelArn] = js.undefined, + tags: js.UndefOr[Tags] = js.undefined + ): StreamKeySummary = { + val __obj = js.Dynamic.literal() + arn.foreach(__v => __obj.updateDynamic("arn")(__v.asInstanceOf[js.Any])) + channelArn.foreach(__v => __obj.updateDynamic("channelArn")(__v.asInstanceOf[js.Any])) + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[StreamKeySummary] + } + } + + @js.native + sealed trait StreamState extends js.Any + object StreamState extends js.Object { + val LIVE = "LIVE".asInstanceOf[StreamState] + val OFFLINE = "OFFLINE".asInstanceOf[StreamState] + + val values = js.Object.freeze(js.Array(LIVE, OFFLINE)) + } + + /** + * Summary information about a stream. + */ + @js.native + trait StreamSummary extends js.Object { + var channelArn: js.UndefOr[ChannelArn] + var health: js.UndefOr[StreamHealth] + var startTime: js.UndefOr[StreamStartTime] + var state: js.UndefOr[StreamState] + var viewerCount: js.UndefOr[StreamViewerCount] + } + + object StreamSummary { + @inline + def apply( + channelArn: js.UndefOr[ChannelArn] = js.undefined, + health: js.UndefOr[StreamHealth] = js.undefined, + startTime: js.UndefOr[StreamStartTime] = js.undefined, + state: js.UndefOr[StreamState] = js.undefined, + viewerCount: js.UndefOr[StreamViewerCount] = js.undefined + ): StreamSummary = { + val __obj = js.Dynamic.literal() + channelArn.foreach(__v => __obj.updateDynamic("channelArn")(__v.asInstanceOf[js.Any])) + health.foreach(__v => __obj.updateDynamic("health")(__v.asInstanceOf[js.Any])) + startTime.foreach(__v => __obj.updateDynamic("startTime")(__v.asInstanceOf[js.Any])) + state.foreach(__v => __obj.updateDynamic("state")(__v.asInstanceOf[js.Any])) + viewerCount.foreach(__v => __obj.updateDynamic("viewerCount")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[StreamSummary] + } + } + + @js.native + trait TagResourceRequest extends js.Object { + var resourceArn: ResourceArn + var tags: Tags + } + + object TagResourceRequest { + @inline + def apply( + resourceArn: ResourceArn, + tags: Tags + ): TagResourceRequest = { + val __obj = js.Dynamic.literal( + "resourceArn" -> resourceArn.asInstanceOf[js.Any], + "tags" -> tags.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[TagResourceRequest] + } + } + + @js.native + trait TagResourceResponse extends js.Object {} + + object TagResourceResponse { + @inline + def apply( + ): TagResourceResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[TagResourceResponse] + } + } + + @js.native + trait UntagResourceRequest extends js.Object { + var resourceArn: ResourceArn + var tagKeys: TagKeyList + } + + object UntagResourceRequest { + @inline + def apply( + resourceArn: ResourceArn, + tagKeys: TagKeyList + ): UntagResourceRequest = { + val __obj = js.Dynamic.literal( + "resourceArn" -> resourceArn.asInstanceOf[js.Any], + "tagKeys" -> tagKeys.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[UntagResourceRequest] + } + } + + @js.native + trait UntagResourceResponse extends js.Object {} + + object UntagResourceResponse { + @inline + def apply( + ): UntagResourceResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[UntagResourceResponse] + } + } + + @js.native + trait UpdateChannelRequest extends js.Object { + var arn: ChannelArn + var latencyMode: js.UndefOr[ChannelLatencyMode] + var name: js.UndefOr[ChannelName] + var `type`: js.UndefOr[ChannelType] + } + + object UpdateChannelRequest { + @inline + def apply( + arn: ChannelArn, + latencyMode: js.UndefOr[ChannelLatencyMode] = js.undefined, + name: js.UndefOr[ChannelName] = js.undefined, + `type`: js.UndefOr[ChannelType] = js.undefined + ): UpdateChannelRequest = { + val __obj = js.Dynamic.literal( + "arn" -> arn.asInstanceOf[js.Any] + ) + + latencyMode.foreach(__v => __obj.updateDynamic("latencyMode")(__v.asInstanceOf[js.Any])) + name.foreach(__v => __obj.updateDynamic("name")(__v.asInstanceOf[js.Any])) + `type`.foreach(__v => __obj.updateDynamic("type")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[UpdateChannelRequest] + } + } + + @js.native + trait UpdateChannelResponse extends js.Object { + var channel: js.UndefOr[Channel] + } + + object UpdateChannelResponse { + @inline + def apply( + channel: js.UndefOr[Channel] = js.undefined + ): UpdateChannelResponse = { + val __obj = js.Dynamic.literal() + channel.foreach(__v => __obj.updateDynamic("channel")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[UpdateChannelResponse] + } + } +} diff --git a/services/macie2/src/main/scala/facade/amazonaws/services/Macie2.scala b/services/macie2/src/main/scala/facade/amazonaws/services/Macie2.scala new file mode 100644 index 000000000..34acd1487 --- /dev/null +++ b/services/macie2/src/main/scala/facade/amazonaws/services/Macie2.scala @@ -0,0 +1,5024 @@ +package facade.amazonaws.services + +import scalajs._ +import scalajs.js.annotation.JSImport +import scala.scalajs.js.| +import scala.concurrent.Future +import facade.amazonaws._ + +package object macie2 { + type BucketCriteria = js.Dictionary[BucketCriteriaAdditionalProperties] + type Criterion = js.Dictionary[CriterionAdditionalProperties] + type CustomDetections = js.Array[CustomDetection] + type DefaultDetections = js.Array[DefaultDetection] + type KeyValuePairList = js.Array[KeyValuePair] + type MaxResults = Int + type SensitiveData = js.Array[SensitiveDataItem] + type TagMap = js.Dictionary[__string] + type __boolean = Boolean + type __double = Double + type __integer = Int + type __listOfAdminAccount = js.Array[AdminAccount] + type __listOfBatchGetCustomDataIdentifierSummary = js.Array[BatchGetCustomDataIdentifierSummary] + type __listOfBucketMetadata = js.Array[BucketMetadata] + type __listOfCustomDataIdentifierSummary = js.Array[CustomDataIdentifierSummary] + type __listOfFinding = js.Array[Finding] + type __listOfFindingType = js.Array[FindingType] + type __listOfFindingsFilterListItem = js.Array[FindingsFilterListItem] + type __listOfGroupCount = js.Array[GroupCount] + type __listOfInvitation = js.Array[Invitation] + type __listOfJobScopeTerm = js.Array[JobScopeTerm] + type __listOfJobSummary = js.Array[JobSummary] + type __listOfKeyValuePair = js.Array[KeyValuePair] + type __listOfListJobsFilterTerm = js.Array[ListJobsFilterTerm] + type __listOfMember = js.Array[Member] + type __listOfS3BucketDefinitionForJob = js.Array[S3BucketDefinitionForJob] + type __listOfTagValuePair = js.Array[TagValuePair] + type __listOfUnprocessedAccount = js.Array[UnprocessedAccount] + type __listOfUsageByAccount = js.Array[UsageByAccount] + type __listOfUsageRecord = js.Array[UsageRecord] + type __listOfUsageStatisticsFilter = js.Array[UsageStatisticsFilter] + type __listOfUsageTotal = js.Array[UsageTotal] + type __listOf__string = js.Array[__string] + type __long = Double + type __string = String + type __timestampIso8601 = js.Date + + implicit final class Macie2Ops(private val service: Macie2) extends AnyVal { + + @inline def acceptInvitationFuture(params: AcceptInvitationRequest): Future[AcceptInvitationResponse] = + service.acceptInvitation(params).promise().toFuture + @inline def batchGetCustomDataIdentifiersFuture( + params: BatchGetCustomDataIdentifiersRequest + ): Future[BatchGetCustomDataIdentifiersResponse] = service.batchGetCustomDataIdentifiers(params).promise().toFuture + @inline def createClassificationJobFuture( + params: CreateClassificationJobRequest + ): Future[CreateClassificationJobResponse] = service.createClassificationJob(params).promise().toFuture + @inline def createCustomDataIdentifierFuture( + params: CreateCustomDataIdentifierRequest + ): Future[CreateCustomDataIdentifierResponse] = service.createCustomDataIdentifier(params).promise().toFuture + @inline def createFindingsFilterFuture(params: CreateFindingsFilterRequest): Future[CreateFindingsFilterResponse] = + service.createFindingsFilter(params).promise().toFuture + @inline def createInvitationsFuture(params: CreateInvitationsRequest): Future[CreateInvitationsResponse] = + service.createInvitations(params).promise().toFuture + @inline def createMemberFuture(params: CreateMemberRequest): Future[CreateMemberResponse] = + service.createMember(params).promise().toFuture + @inline def createSampleFindingsFuture(params: CreateSampleFindingsRequest): Future[CreateSampleFindingsResponse] = + service.createSampleFindings(params).promise().toFuture + @inline def declineInvitationsFuture(params: DeclineInvitationsRequest): Future[DeclineInvitationsResponse] = + service.declineInvitations(params).promise().toFuture + @inline def deleteCustomDataIdentifierFuture( + params: DeleteCustomDataIdentifierRequest + ): Future[DeleteCustomDataIdentifierResponse] = service.deleteCustomDataIdentifier(params).promise().toFuture + @inline def deleteFindingsFilterFuture(params: DeleteFindingsFilterRequest): Future[DeleteFindingsFilterResponse] = + service.deleteFindingsFilter(params).promise().toFuture + @inline def deleteInvitationsFuture(params: DeleteInvitationsRequest): Future[DeleteInvitationsResponse] = + service.deleteInvitations(params).promise().toFuture + @inline def deleteMemberFuture(params: DeleteMemberRequest): Future[DeleteMemberResponse] = + service.deleteMember(params).promise().toFuture + @inline def describeBucketsFuture(params: DescribeBucketsRequest): Future[DescribeBucketsResponse] = + service.describeBuckets(params).promise().toFuture + @inline def describeClassificationJobFuture( + params: DescribeClassificationJobRequest + ): Future[DescribeClassificationJobResponse] = service.describeClassificationJob(params).promise().toFuture + @inline def describeOrganizationConfigurationFuture( + params: DescribeOrganizationConfigurationRequest + ): Future[DescribeOrganizationConfigurationResponse] = + service.describeOrganizationConfiguration(params).promise().toFuture + @inline def disableMacieFuture(params: DisableMacieRequest): Future[DisableMacieResponse] = + service.disableMacie(params).promise().toFuture + @inline def disableOrganizationAdminAccountFuture( + params: DisableOrganizationAdminAccountRequest + ): Future[DisableOrganizationAdminAccountResponse] = + service.disableOrganizationAdminAccount(params).promise().toFuture + @inline def disassociateFromMasterAccountFuture( + params: DisassociateFromMasterAccountRequest + ): Future[DisassociateFromMasterAccountResponse] = service.disassociateFromMasterAccount(params).promise().toFuture + @inline def disassociateMemberFuture(params: DisassociateMemberRequest): Future[DisassociateMemberResponse] = + service.disassociateMember(params).promise().toFuture + @inline def enableMacieFuture(params: EnableMacieRequest): Future[EnableMacieResponse] = + service.enableMacie(params).promise().toFuture + @inline def enableOrganizationAdminAccountFuture( + params: EnableOrganizationAdminAccountRequest + ): Future[EnableOrganizationAdminAccountResponse] = + service.enableOrganizationAdminAccount(params).promise().toFuture + @inline def getBucketStatisticsFuture(params: GetBucketStatisticsRequest): Future[GetBucketStatisticsResponse] = + service.getBucketStatistics(params).promise().toFuture + @inline def getClassificationExportConfigurationFuture( + params: GetClassificationExportConfigurationRequest + ): Future[GetClassificationExportConfigurationResponse] = + service.getClassificationExportConfiguration(params).promise().toFuture + @inline def getCustomDataIdentifierFuture( + params: GetCustomDataIdentifierRequest + ): Future[GetCustomDataIdentifierResponse] = service.getCustomDataIdentifier(params).promise().toFuture + @inline def getFindingStatisticsFuture(params: GetFindingStatisticsRequest): Future[GetFindingStatisticsResponse] = + service.getFindingStatistics(params).promise().toFuture + @inline def getFindingsFilterFuture(params: GetFindingsFilterRequest): Future[GetFindingsFilterResponse] = + service.getFindingsFilter(params).promise().toFuture + @inline def getFindingsFuture(params: GetFindingsRequest): Future[GetFindingsResponse] = + service.getFindings(params).promise().toFuture + @inline def getInvitationsCountFuture(params: GetInvitationsCountRequest): Future[GetInvitationsCountResponse] = + service.getInvitationsCount(params).promise().toFuture + @inline def getMacieSessionFuture(params: GetMacieSessionRequest): Future[GetMacieSessionResponse] = + service.getMacieSession(params).promise().toFuture + @inline def getMasterAccountFuture(params: GetMasterAccountRequest): Future[GetMasterAccountResponse] = + service.getMasterAccount(params).promise().toFuture + @inline def getMemberFuture(params: GetMemberRequest): Future[GetMemberResponse] = + service.getMember(params).promise().toFuture + @inline def getUsageStatisticsFuture(params: GetUsageStatisticsRequest): Future[GetUsageStatisticsResponse] = + service.getUsageStatistics(params).promise().toFuture + @inline def getUsageTotalsFuture(params: GetUsageTotalsRequest): Future[GetUsageTotalsResponse] = + service.getUsageTotals(params).promise().toFuture + @inline def listClassificationJobsFuture( + params: ListClassificationJobsRequest + ): Future[ListClassificationJobsResponse] = service.listClassificationJobs(params).promise().toFuture + @inline def listCustomDataIdentifiersFuture( + params: ListCustomDataIdentifiersRequest + ): Future[ListCustomDataIdentifiersResponse] = service.listCustomDataIdentifiers(params).promise().toFuture + @inline def listFindingsFiltersFuture(params: ListFindingsFiltersRequest): Future[ListFindingsFiltersResponse] = + service.listFindingsFilters(params).promise().toFuture + @inline def listFindingsFuture(params: ListFindingsRequest): Future[ListFindingsResponse] = + service.listFindings(params).promise().toFuture + @inline def listInvitationsFuture(params: ListInvitationsRequest): Future[ListInvitationsResponse] = + service.listInvitations(params).promise().toFuture + @inline def listMembersFuture(params: ListMembersRequest): Future[ListMembersResponse] = + service.listMembers(params).promise().toFuture + @inline def listOrganizationAdminAccountsFuture( + params: ListOrganizationAdminAccountsRequest + ): Future[ListOrganizationAdminAccountsResponse] = service.listOrganizationAdminAccounts(params).promise().toFuture + @inline def listTagsForResourceFuture(params: ListTagsForResourceRequest): Future[ListTagsForResourceResponse] = + service.listTagsForResource(params).promise().toFuture + @inline def putClassificationExportConfigurationFuture( + params: PutClassificationExportConfigurationRequest + ): Future[PutClassificationExportConfigurationResponse] = + service.putClassificationExportConfiguration(params).promise().toFuture + @inline def tagResourceFuture(params: TagResourceRequest): Future[TagResourceResponse] = + service.tagResource(params).promise().toFuture + @inline def testCustomDataIdentifierFuture( + params: TestCustomDataIdentifierRequest + ): Future[TestCustomDataIdentifierResponse] = service.testCustomDataIdentifier(params).promise().toFuture + @inline def untagResourceFuture(params: UntagResourceRequest): Future[UntagResourceResponse] = + service.untagResource(params).promise().toFuture + @inline def updateClassificationJobFuture( + params: UpdateClassificationJobRequest + ): Future[UpdateClassificationJobResponse] = service.updateClassificationJob(params).promise().toFuture + @inline def updateFindingsFilterFuture(params: UpdateFindingsFilterRequest): Future[UpdateFindingsFilterResponse] = + service.updateFindingsFilter(params).promise().toFuture + @inline def updateMacieSessionFuture(params: UpdateMacieSessionRequest): Future[UpdateMacieSessionResponse] = + service.updateMacieSession(params).promise().toFuture + @inline def updateMemberSessionFuture(params: UpdateMemberSessionRequest): Future[UpdateMemberSessionResponse] = + service.updateMemberSession(params).promise().toFuture + @inline def updateOrganizationConfigurationFuture( + params: UpdateOrganizationConfigurationRequest + ): Future[UpdateOrganizationConfigurationResponse] = + service.updateOrganizationConfiguration(params).promise().toFuture + } +} + +package macie2 { + @js.native + @JSImport("aws-sdk", "Macie2", "AWS.Macie2") + class Macie2() extends js.Object { + def this(config: AWSConfig) = this() + + def acceptInvitation(params: AcceptInvitationRequest): Request[AcceptInvitationResponse] = js.native + def batchGetCustomDataIdentifiers( + params: BatchGetCustomDataIdentifiersRequest + ): Request[BatchGetCustomDataIdentifiersResponse] = js.native + def createClassificationJob(params: CreateClassificationJobRequest): Request[CreateClassificationJobResponse] = + js.native + def createCustomDataIdentifier( + params: CreateCustomDataIdentifierRequest + ): Request[CreateCustomDataIdentifierResponse] = js.native + def createFindingsFilter(params: CreateFindingsFilterRequest): Request[CreateFindingsFilterResponse] = js.native + def createInvitations(params: CreateInvitationsRequest): Request[CreateInvitationsResponse] = js.native + def createMember(params: CreateMemberRequest): Request[CreateMemberResponse] = js.native + def createSampleFindings(params: CreateSampleFindingsRequest): Request[CreateSampleFindingsResponse] = js.native + def declineInvitations(params: DeclineInvitationsRequest): Request[DeclineInvitationsResponse] = js.native + def deleteCustomDataIdentifier( + params: DeleteCustomDataIdentifierRequest + ): Request[DeleteCustomDataIdentifierResponse] = js.native + def deleteFindingsFilter(params: DeleteFindingsFilterRequest): Request[DeleteFindingsFilterResponse] = js.native + def deleteInvitations(params: DeleteInvitationsRequest): Request[DeleteInvitationsResponse] = js.native + def deleteMember(params: DeleteMemberRequest): Request[DeleteMemberResponse] = js.native + def describeBuckets(params: DescribeBucketsRequest): Request[DescribeBucketsResponse] = js.native + def describeClassificationJob( + params: DescribeClassificationJobRequest + ): Request[DescribeClassificationJobResponse] = js.native + def describeOrganizationConfiguration( + params: DescribeOrganizationConfigurationRequest + ): Request[DescribeOrganizationConfigurationResponse] = js.native + def disableMacie(params: DisableMacieRequest): Request[DisableMacieResponse] = js.native + def disableOrganizationAdminAccount( + params: DisableOrganizationAdminAccountRequest + ): Request[DisableOrganizationAdminAccountResponse] = js.native + def disassociateFromMasterAccount( + params: DisassociateFromMasterAccountRequest + ): Request[DisassociateFromMasterAccountResponse] = js.native + def disassociateMember(params: DisassociateMemberRequest): Request[DisassociateMemberResponse] = js.native + def enableMacie(params: EnableMacieRequest): Request[EnableMacieResponse] = js.native + def enableOrganizationAdminAccount( + params: EnableOrganizationAdminAccountRequest + ): Request[EnableOrganizationAdminAccountResponse] = js.native + def getBucketStatistics(params: GetBucketStatisticsRequest): Request[GetBucketStatisticsResponse] = js.native + def getClassificationExportConfiguration( + params: GetClassificationExportConfigurationRequest + ): Request[GetClassificationExportConfigurationResponse] = js.native + def getCustomDataIdentifier(params: GetCustomDataIdentifierRequest): Request[GetCustomDataIdentifierResponse] = + js.native + def getFindingStatistics(params: GetFindingStatisticsRequest): Request[GetFindingStatisticsResponse] = js.native + def getFindings(params: GetFindingsRequest): Request[GetFindingsResponse] = js.native + def getFindingsFilter(params: GetFindingsFilterRequest): Request[GetFindingsFilterResponse] = js.native + def getInvitationsCount(params: GetInvitationsCountRequest): Request[GetInvitationsCountResponse] = js.native + def getMacieSession(params: GetMacieSessionRequest): Request[GetMacieSessionResponse] = js.native + def getMasterAccount(params: GetMasterAccountRequest): Request[GetMasterAccountResponse] = js.native + def getMember(params: GetMemberRequest): Request[GetMemberResponse] = js.native + def getUsageStatistics(params: GetUsageStatisticsRequest): Request[GetUsageStatisticsResponse] = js.native + def getUsageTotals(params: GetUsageTotalsRequest): Request[GetUsageTotalsResponse] = js.native + def listClassificationJobs(params: ListClassificationJobsRequest): Request[ListClassificationJobsResponse] = + js.native + def listCustomDataIdentifiers( + params: ListCustomDataIdentifiersRequest + ): Request[ListCustomDataIdentifiersResponse] = js.native + def listFindings(params: ListFindingsRequest): Request[ListFindingsResponse] = js.native + def listFindingsFilters(params: ListFindingsFiltersRequest): Request[ListFindingsFiltersResponse] = js.native + def listInvitations(params: ListInvitationsRequest): Request[ListInvitationsResponse] = js.native + def listMembers(params: ListMembersRequest): Request[ListMembersResponse] = js.native + def listOrganizationAdminAccounts( + params: ListOrganizationAdminAccountsRequest + ): Request[ListOrganizationAdminAccountsResponse] = js.native + def listTagsForResource(params: ListTagsForResourceRequest): Request[ListTagsForResourceResponse] = js.native + def putClassificationExportConfiguration( + params: PutClassificationExportConfigurationRequest + ): Request[PutClassificationExportConfigurationResponse] = js.native + def tagResource(params: TagResourceRequest): Request[TagResourceResponse] = js.native + def testCustomDataIdentifier(params: TestCustomDataIdentifierRequest): Request[TestCustomDataIdentifierResponse] = + js.native + def untagResource(params: UntagResourceRequest): Request[UntagResourceResponse] = js.native + def updateClassificationJob(params: UpdateClassificationJobRequest): Request[UpdateClassificationJobResponse] = + js.native + def updateFindingsFilter(params: UpdateFindingsFilterRequest): Request[UpdateFindingsFilterResponse] = js.native + def updateMacieSession(params: UpdateMacieSessionRequest): Request[UpdateMacieSessionResponse] = js.native + def updateMemberSession(params: UpdateMemberSessionRequest): Request[UpdateMemberSessionResponse] = js.native + def updateOrganizationConfiguration( + params: UpdateOrganizationConfigurationRequest + ): Request[UpdateOrganizationConfigurationResponse] = js.native + } + + @js.native + trait AcceptInvitationRequest extends js.Object { + var invitationId: __string + var masterAccount: __string + } + + object AcceptInvitationRequest { + @inline + def apply( + invitationId: __string, + masterAccount: __string + ): AcceptInvitationRequest = { + val __obj = js.Dynamic.literal( + "invitationId" -> invitationId.asInstanceOf[js.Any], + "masterAccount" -> masterAccount.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[AcceptInvitationRequest] + } + } + + @js.native + trait AcceptInvitationResponse extends js.Object {} + + object AcceptInvitationResponse { + @inline + def apply( + ): AcceptInvitationResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[AcceptInvitationResponse] + } + } + + /** + * Provides information about the permissions settings of the bucket-level access control list (ACL) for an S3 bucket. + */ + @js.native + trait AccessControlList extends js.Object { + var allowsPublicReadAccess: js.UndefOr[__boolean] + var allowsPublicWriteAccess: js.UndefOr[__boolean] + } + + object AccessControlList { + @inline + def apply( + allowsPublicReadAccess: js.UndefOr[__boolean] = js.undefined, + allowsPublicWriteAccess: js.UndefOr[__boolean] = js.undefined + ): AccessControlList = { + val __obj = js.Dynamic.literal() + allowsPublicReadAccess.foreach(__v => __obj.updateDynamic("allowsPublicReadAccess")(__v.asInstanceOf[js.Any])) + allowsPublicWriteAccess.foreach(__v => __obj.updateDynamic("allowsPublicWriteAccess")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[AccessControlList] + } + } + + /** + * Specifies details for an account to associate with an Amazon Macie master account. + */ + @js.native + trait AccountDetail extends js.Object { + var accountId: __string + var email: __string + } + + object AccountDetail { + @inline + def apply( + accountId: __string, + email: __string + ): AccountDetail = { + val __obj = js.Dynamic.literal( + "accountId" -> accountId.asInstanceOf[js.Any], + "email" -> email.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[AccountDetail] + } + } + + /** + * Provides information about account-level permissions settings that apply to an S3 bucket. + */ + @js.native + trait AccountLevelPermissions extends js.Object { + var blockPublicAccess: js.UndefOr[BlockPublicAccess] + } + + object AccountLevelPermissions { + @inline + def apply( + blockPublicAccess: js.UndefOr[BlockPublicAccess] = js.undefined + ): AccountLevelPermissions = { + val __obj = js.Dynamic.literal() + blockPublicAccess.foreach(__v => __obj.updateDynamic("blockPublicAccess")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[AccountLevelPermissions] + } + } + + /** + * Provides information about an account that's designated as a delegated administrator of Amazon Macie for an AWS organization. + */ + @js.native + trait AdminAccount extends js.Object { + var accountId: js.UndefOr[__string] + var status: js.UndefOr[AdminStatus] + } + + object AdminAccount { + @inline + def apply( + accountId: js.UndefOr[__string] = js.undefined, + status: js.UndefOr[AdminStatus] = js.undefined + ): AdminAccount = { + val __obj = js.Dynamic.literal() + accountId.foreach(__v => __obj.updateDynamic("accountId")(__v.asInstanceOf[js.Any])) + status.foreach(__v => __obj.updateDynamic("status")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[AdminAccount] + } + } + + /** + * The current status of an account as a delegated administrator of Amazon Macie for an AWS organization. + */ + @js.native + sealed trait AdminStatus extends js.Any + object AdminStatus extends js.Object { + val ENABLED = "ENABLED".asInstanceOf[AdminStatus] + val DISABLING_IN_PROGRESS = "DISABLING_IN_PROGRESS".asInstanceOf[AdminStatus] + + val values = js.Object.freeze(js.Array(ENABLED, DISABLING_IN_PROGRESS)) + } + + /** + * Reserved for future use. + */ + @js.native + trait ApiCallDetails extends js.Object { + var api: js.UndefOr[__string] + var apiServiceName: js.UndefOr[__string] + var firstSeen: js.UndefOr[__timestampIso8601] + var lastSeen: js.UndefOr[__timestampIso8601] + } + + object ApiCallDetails { + @inline + def apply( + api: js.UndefOr[__string] = js.undefined, + apiServiceName: js.UndefOr[__string] = js.undefined, + firstSeen: js.UndefOr[__timestampIso8601] = js.undefined, + lastSeen: js.UndefOr[__timestampIso8601] = js.undefined + ): ApiCallDetails = { + val __obj = js.Dynamic.literal() + api.foreach(__v => __obj.updateDynamic("api")(__v.asInstanceOf[js.Any])) + apiServiceName.foreach(__v => __obj.updateDynamic("apiServiceName")(__v.asInstanceOf[js.Any])) + firstSeen.foreach(__v => __obj.updateDynamic("firstSeen")(__v.asInstanceOf[js.Any])) + lastSeen.foreach(__v => __obj.updateDynamic("lastSeen")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ApiCallDetails] + } + } + + /** + * Reserved for future use. + */ + @js.native + trait AssumedRole extends js.Object { + var accessKeyId: js.UndefOr[__string] + var accountId: js.UndefOr[__string] + var arn: js.UndefOr[__string] + var principalId: js.UndefOr[__string] + var sessionContext: js.UndefOr[SessionContext] + } + + object AssumedRole { + @inline + def apply( + accessKeyId: js.UndefOr[__string] = js.undefined, + accountId: js.UndefOr[__string] = js.undefined, + arn: js.UndefOr[__string] = js.undefined, + principalId: js.UndefOr[__string] = js.undefined, + sessionContext: js.UndefOr[SessionContext] = js.undefined + ): AssumedRole = { + val __obj = js.Dynamic.literal() + accessKeyId.foreach(__v => __obj.updateDynamic("accessKeyId")(__v.asInstanceOf[js.Any])) + accountId.foreach(__v => __obj.updateDynamic("accountId")(__v.asInstanceOf[js.Any])) + arn.foreach(__v => __obj.updateDynamic("arn")(__v.asInstanceOf[js.Any])) + principalId.foreach(__v => __obj.updateDynamic("principalId")(__v.asInstanceOf[js.Any])) + sessionContext.foreach(__v => __obj.updateDynamic("sessionContext")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[AssumedRole] + } + } + + /** + * Reserved for future use. + */ + @js.native + trait AwsAccount extends js.Object { + var accountId: js.UndefOr[__string] + var principalId: js.UndefOr[__string] + } + + object AwsAccount { + @inline + def apply( + accountId: js.UndefOr[__string] = js.undefined, + principalId: js.UndefOr[__string] = js.undefined + ): AwsAccount = { + val __obj = js.Dynamic.literal() + accountId.foreach(__v => __obj.updateDynamic("accountId")(__v.asInstanceOf[js.Any])) + principalId.foreach(__v => __obj.updateDynamic("principalId")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[AwsAccount] + } + } + + /** + * Reserved for future use. + */ + @js.native + trait AwsService extends js.Object { + var invokedBy: js.UndefOr[__string] + } + + object AwsService { + @inline + def apply( + invokedBy: js.UndefOr[__string] = js.undefined + ): AwsService = { + val __obj = js.Dynamic.literal() + invokedBy.foreach(__v => __obj.updateDynamic("invokedBy")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[AwsService] + } + } + + /** + * Provides information about a custom data identifier. + */ + @js.native + trait BatchGetCustomDataIdentifierSummary extends js.Object { + var arn: js.UndefOr[__string] + var createdAt: js.UndefOr[__timestampIso8601] + var deleted: js.UndefOr[__boolean] + var description: js.UndefOr[__string] + var id: js.UndefOr[__string] + var name: js.UndefOr[__string] + } + + object BatchGetCustomDataIdentifierSummary { + @inline + def apply( + arn: js.UndefOr[__string] = js.undefined, + createdAt: js.UndefOr[__timestampIso8601] = js.undefined, + deleted: js.UndefOr[__boolean] = js.undefined, + description: js.UndefOr[__string] = js.undefined, + id: js.UndefOr[__string] = js.undefined, + name: js.UndefOr[__string] = js.undefined + ): BatchGetCustomDataIdentifierSummary = { + val __obj = js.Dynamic.literal() + arn.foreach(__v => __obj.updateDynamic("arn")(__v.asInstanceOf[js.Any])) + createdAt.foreach(__v => __obj.updateDynamic("createdAt")(__v.asInstanceOf[js.Any])) + deleted.foreach(__v => __obj.updateDynamic("deleted")(__v.asInstanceOf[js.Any])) + description.foreach(__v => __obj.updateDynamic("description")(__v.asInstanceOf[js.Any])) + id.foreach(__v => __obj.updateDynamic("id")(__v.asInstanceOf[js.Any])) + name.foreach(__v => __obj.updateDynamic("name")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[BatchGetCustomDataIdentifierSummary] + } + } + + @js.native + trait BatchGetCustomDataIdentifiersRequest extends js.Object { + var ids: js.UndefOr[__listOf__string] + } + + object BatchGetCustomDataIdentifiersRequest { + @inline + def apply( + ids: js.UndefOr[__listOf__string] = js.undefined + ): BatchGetCustomDataIdentifiersRequest = { + val __obj = js.Dynamic.literal() + ids.foreach(__v => __obj.updateDynamic("ids")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[BatchGetCustomDataIdentifiersRequest] + } + } + + @js.native + trait BatchGetCustomDataIdentifiersResponse extends js.Object { + var customDataIdentifiers: js.UndefOr[__listOfBatchGetCustomDataIdentifierSummary] + var notFoundIdentifierIds: js.UndefOr[__listOf__string] + } + + object BatchGetCustomDataIdentifiersResponse { + @inline + def apply( + customDataIdentifiers: js.UndefOr[__listOfBatchGetCustomDataIdentifierSummary] = js.undefined, + notFoundIdentifierIds: js.UndefOr[__listOf__string] = js.undefined + ): BatchGetCustomDataIdentifiersResponse = { + val __obj = js.Dynamic.literal() + customDataIdentifiers.foreach(__v => __obj.updateDynamic("customDataIdentifiers")(__v.asInstanceOf[js.Any])) + notFoundIdentifierIds.foreach(__v => __obj.updateDynamic("notFoundIdentifierIds")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[BatchGetCustomDataIdentifiersResponse] + } + } + + /** + * Provides information about the block public access settings for an S3 bucket. These settings can apply to a bucket at the account level or bucket level. For detailed information about each setting, see [[https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html|Using Amazon S3 block public access]] in the Amazon Simple Storage Service Developer Guide. + */ + @js.native + trait BlockPublicAccess extends js.Object { + var blockPublicAcls: js.UndefOr[__boolean] + var blockPublicPolicy: js.UndefOr[__boolean] + var ignorePublicAcls: js.UndefOr[__boolean] + var restrictPublicBuckets: js.UndefOr[__boolean] + } + + object BlockPublicAccess { + @inline + def apply( + blockPublicAcls: js.UndefOr[__boolean] = js.undefined, + blockPublicPolicy: js.UndefOr[__boolean] = js.undefined, + ignorePublicAcls: js.UndefOr[__boolean] = js.undefined, + restrictPublicBuckets: js.UndefOr[__boolean] = js.undefined + ): BlockPublicAccess = { + val __obj = js.Dynamic.literal() + blockPublicAcls.foreach(__v => __obj.updateDynamic("blockPublicAcls")(__v.asInstanceOf[js.Any])) + blockPublicPolicy.foreach(__v => __obj.updateDynamic("blockPublicPolicy")(__v.asInstanceOf[js.Any])) + ignorePublicAcls.foreach(__v => __obj.updateDynamic("ignorePublicAcls")(__v.asInstanceOf[js.Any])) + restrictPublicBuckets.foreach(__v => __obj.updateDynamic("restrictPublicBuckets")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[BlockPublicAccess] + } + } + + /** + * The total number of buckets that are publicly accessible, based on a combination of permissions settings for each bucket. + */ + @js.native + trait BucketCountByEffectivePermission extends js.Object { + var publiclyAccessible: js.UndefOr[__long] + var publiclyReadable: js.UndefOr[__long] + var publiclyWritable: js.UndefOr[__long] + } + + object BucketCountByEffectivePermission { + @inline + def apply( + publiclyAccessible: js.UndefOr[__long] = js.undefined, + publiclyReadable: js.UndefOr[__long] = js.undefined, + publiclyWritable: js.UndefOr[__long] = js.undefined + ): BucketCountByEffectivePermission = { + val __obj = js.Dynamic.literal() + publiclyAccessible.foreach(__v => __obj.updateDynamic("publiclyAccessible")(__v.asInstanceOf[js.Any])) + publiclyReadable.foreach(__v => __obj.updateDynamic("publiclyReadable")(__v.asInstanceOf[js.Any])) + publiclyWritable.foreach(__v => __obj.updateDynamic("publiclyWritable")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[BucketCountByEffectivePermission] + } + } + + /** + * The total number of buckets, grouped by server-side encryption type. This object also reports the total number of buckets that aren't encrypted. + */ + @js.native + trait BucketCountByEncryptionType extends js.Object { + var kmsManaged: js.UndefOr[__long] + var s3Managed: js.UndefOr[__long] + var unencrypted: js.UndefOr[__long] + } + + object BucketCountByEncryptionType { + @inline + def apply( + kmsManaged: js.UndefOr[__long] = js.undefined, + s3Managed: js.UndefOr[__long] = js.undefined, + unencrypted: js.UndefOr[__long] = js.undefined + ): BucketCountByEncryptionType = { + val __obj = js.Dynamic.literal() + kmsManaged.foreach(__v => __obj.updateDynamic("kmsManaged")(__v.asInstanceOf[js.Any])) + s3Managed.foreach(__v => __obj.updateDynamic("s3Managed")(__v.asInstanceOf[js.Any])) + unencrypted.foreach(__v => __obj.updateDynamic("unencrypted")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[BucketCountByEncryptionType] + } + } + + /** + * The total number of buckets that are shared with another AWS account or configured to support cross-origin resource sharing (CORS). + */ + @js.native + trait BucketCountBySharedAccessType extends js.Object { + var external: js.UndefOr[__long] + var internal: js.UndefOr[__long] + var notShared: js.UndefOr[__long] + } + + object BucketCountBySharedAccessType { + @inline + def apply( + external: js.UndefOr[__long] = js.undefined, + internal: js.UndefOr[__long] = js.undefined, + notShared: js.UndefOr[__long] = js.undefined + ): BucketCountBySharedAccessType = { + val __obj = js.Dynamic.literal() + external.foreach(__v => __obj.updateDynamic("external")(__v.asInstanceOf[js.Any])) + internal.foreach(__v => __obj.updateDynamic("internal")(__v.asInstanceOf[js.Any])) + notShared.foreach(__v => __obj.updateDynamic("notShared")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[BucketCountBySharedAccessType] + } + } + + /** + * Specifies the operator to use in an attribute-based condition that filters the results of a query for information about S3 buckets. + */ + @js.native + trait BucketCriteriaAdditionalProperties extends js.Object { + var eq: js.UndefOr[__listOf__string] + var gt: js.UndefOr[__long] + var gte: js.UndefOr[__long] + var lt: js.UndefOr[__long] + var lte: js.UndefOr[__long] + var neq: js.UndefOr[__listOf__string] + var prefix: js.UndefOr[__string] + } + + object BucketCriteriaAdditionalProperties { + @inline + def apply( + eq: js.UndefOr[__listOf__string] = js.undefined, + gt: js.UndefOr[__long] = js.undefined, + gte: js.UndefOr[__long] = js.undefined, + lt: js.UndefOr[__long] = js.undefined, + lte: js.UndefOr[__long] = js.undefined, + neq: js.UndefOr[__listOf__string] = js.undefined, + prefix: js.UndefOr[__string] = js.undefined + ): BucketCriteriaAdditionalProperties = { + val __obj = js.Dynamic.literal() + eq.foreach(__v => __obj.updateDynamic("eq")(__v.asInstanceOf[js.Any])) + gt.foreach(__v => __obj.updateDynamic("gt")(__v.asInstanceOf[js.Any])) + gte.foreach(__v => __obj.updateDynamic("gte")(__v.asInstanceOf[js.Any])) + lt.foreach(__v => __obj.updateDynamic("lt")(__v.asInstanceOf[js.Any])) + lte.foreach(__v => __obj.updateDynamic("lte")(__v.asInstanceOf[js.Any])) + neq.foreach(__v => __obj.updateDynamic("neq")(__v.asInstanceOf[js.Any])) + prefix.foreach(__v => __obj.updateDynamic("prefix")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[BucketCriteriaAdditionalProperties] + } + } + + /** + * Provides information about bucket-level permissions settings for an S3 bucket. + */ + @js.native + trait BucketLevelPermissions extends js.Object { + var accessControlList: js.UndefOr[AccessControlList] + var blockPublicAccess: js.UndefOr[BlockPublicAccess] + var bucketPolicy: js.UndefOr[BucketPolicy] + } + + object BucketLevelPermissions { + @inline + def apply( + accessControlList: js.UndefOr[AccessControlList] = js.undefined, + blockPublicAccess: js.UndefOr[BlockPublicAccess] = js.undefined, + bucketPolicy: js.UndefOr[BucketPolicy] = js.undefined + ): BucketLevelPermissions = { + val __obj = js.Dynamic.literal() + accessControlList.foreach(__v => __obj.updateDynamic("accessControlList")(__v.asInstanceOf[js.Any])) + blockPublicAccess.foreach(__v => __obj.updateDynamic("blockPublicAccess")(__v.asInstanceOf[js.Any])) + bucketPolicy.foreach(__v => __obj.updateDynamic("bucketPolicy")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[BucketLevelPermissions] + } + } + + /** + * Provides information about an S3 bucket that Amazon Macie monitors and analyzes. + */ + @js.native + trait BucketMetadata extends js.Object { + var accountId: js.UndefOr[__string] + var bucketArn: js.UndefOr[__string] + var bucketCreatedAt: js.UndefOr[__timestampIso8601] + var bucketName: js.UndefOr[__string] + var classifiableObjectCount: js.UndefOr[__long] + var lastUpdated: js.UndefOr[__timestampIso8601] + var objectCount: js.UndefOr[__long] + var objectCountByEncryptionType: js.UndefOr[ObjectCountByEncryptionType] + var publicAccess: js.UndefOr[BucketPublicAccess] + var region: js.UndefOr[__string] + var replicationDetails: js.UndefOr[ReplicationDetails] + var sharedAccess: js.UndefOr[SharedAccess] + var sizeInBytes: js.UndefOr[__long] + var sizeInBytesCompressed: js.UndefOr[__long] + var tags: js.UndefOr[__listOfKeyValuePair] + var versioning: js.UndefOr[__boolean] + } + + object BucketMetadata { + @inline + def apply( + accountId: js.UndefOr[__string] = js.undefined, + bucketArn: js.UndefOr[__string] = js.undefined, + bucketCreatedAt: js.UndefOr[__timestampIso8601] = js.undefined, + bucketName: js.UndefOr[__string] = js.undefined, + classifiableObjectCount: js.UndefOr[__long] = js.undefined, + lastUpdated: js.UndefOr[__timestampIso8601] = js.undefined, + objectCount: js.UndefOr[__long] = js.undefined, + objectCountByEncryptionType: js.UndefOr[ObjectCountByEncryptionType] = js.undefined, + publicAccess: js.UndefOr[BucketPublicAccess] = js.undefined, + region: js.UndefOr[__string] = js.undefined, + replicationDetails: js.UndefOr[ReplicationDetails] = js.undefined, + sharedAccess: js.UndefOr[SharedAccess] = js.undefined, + sizeInBytes: js.UndefOr[__long] = js.undefined, + sizeInBytesCompressed: js.UndefOr[__long] = js.undefined, + tags: js.UndefOr[__listOfKeyValuePair] = js.undefined, + versioning: js.UndefOr[__boolean] = js.undefined + ): BucketMetadata = { + val __obj = js.Dynamic.literal() + accountId.foreach(__v => __obj.updateDynamic("accountId")(__v.asInstanceOf[js.Any])) + bucketArn.foreach(__v => __obj.updateDynamic("bucketArn")(__v.asInstanceOf[js.Any])) + bucketCreatedAt.foreach(__v => __obj.updateDynamic("bucketCreatedAt")(__v.asInstanceOf[js.Any])) + bucketName.foreach(__v => __obj.updateDynamic("bucketName")(__v.asInstanceOf[js.Any])) + classifiableObjectCount.foreach(__v => __obj.updateDynamic("classifiableObjectCount")(__v.asInstanceOf[js.Any])) + lastUpdated.foreach(__v => __obj.updateDynamic("lastUpdated")(__v.asInstanceOf[js.Any])) + objectCount.foreach(__v => __obj.updateDynamic("objectCount")(__v.asInstanceOf[js.Any])) + objectCountByEncryptionType.foreach(__v => + __obj.updateDynamic("objectCountByEncryptionType")(__v.asInstanceOf[js.Any]) + ) + publicAccess.foreach(__v => __obj.updateDynamic("publicAccess")(__v.asInstanceOf[js.Any])) + region.foreach(__v => __obj.updateDynamic("region")(__v.asInstanceOf[js.Any])) + replicationDetails.foreach(__v => __obj.updateDynamic("replicationDetails")(__v.asInstanceOf[js.Any])) + sharedAccess.foreach(__v => __obj.updateDynamic("sharedAccess")(__v.asInstanceOf[js.Any])) + sizeInBytes.foreach(__v => __obj.updateDynamic("sizeInBytes")(__v.asInstanceOf[js.Any])) + sizeInBytesCompressed.foreach(__v => __obj.updateDynamic("sizeInBytesCompressed")(__v.asInstanceOf[js.Any])) + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + versioning.foreach(__v => __obj.updateDynamic("versioning")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[BucketMetadata] + } + } + + /** + * The account-level and bucket-level permissions settings for an S3 bucket, or the bucket that contains an object. + */ + @js.native + trait BucketPermissionConfiguration extends js.Object { + var accountLevelPermissions: js.UndefOr[AccountLevelPermissions] + var bucketLevelPermissions: js.UndefOr[BucketLevelPermissions] + } + + object BucketPermissionConfiguration { + @inline + def apply( + accountLevelPermissions: js.UndefOr[AccountLevelPermissions] = js.undefined, + bucketLevelPermissions: js.UndefOr[BucketLevelPermissions] = js.undefined + ): BucketPermissionConfiguration = { + val __obj = js.Dynamic.literal() + accountLevelPermissions.foreach(__v => __obj.updateDynamic("accountLevelPermissions")(__v.asInstanceOf[js.Any])) + bucketLevelPermissions.foreach(__v => __obj.updateDynamic("bucketLevelPermissions")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[BucketPermissionConfiguration] + } + } + + /** + * Provides information about the permissions settings of a bucket policy for an S3 bucket. + */ + @js.native + trait BucketPolicy extends js.Object { + var allowsPublicReadAccess: js.UndefOr[__boolean] + var allowsPublicWriteAccess: js.UndefOr[__boolean] + } + + object BucketPolicy { + @inline + def apply( + allowsPublicReadAccess: js.UndefOr[__boolean] = js.undefined, + allowsPublicWriteAccess: js.UndefOr[__boolean] = js.undefined + ): BucketPolicy = { + val __obj = js.Dynamic.literal() + allowsPublicReadAccess.foreach(__v => __obj.updateDynamic("allowsPublicReadAccess")(__v.asInstanceOf[js.Any])) + allowsPublicWriteAccess.foreach(__v => __obj.updateDynamic("allowsPublicWriteAccess")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[BucketPolicy] + } + } + + /** + * Provides information about permissions settings that determine whether an S3 bucket is publicly accessible. + */ + @js.native + trait BucketPublicAccess extends js.Object { + var effectivePermission: js.UndefOr[EffectivePermission] + var permissionConfiguration: js.UndefOr[BucketPermissionConfiguration] + } + + object BucketPublicAccess { + @inline + def apply( + effectivePermission: js.UndefOr[EffectivePermission] = js.undefined, + permissionConfiguration: js.UndefOr[BucketPermissionConfiguration] = js.undefined + ): BucketPublicAccess = { + val __obj = js.Dynamic.literal() + effectivePermission.foreach(__v => __obj.updateDynamic("effectivePermission")(__v.asInstanceOf[js.Any])) + permissionConfiguration.foreach(__v => __obj.updateDynamic("permissionConfiguration")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[BucketPublicAccess] + } + } + + /** + * Specifies criteria for sorting the results of a query for information about S3 buckets. + */ + @js.native + trait BucketSortCriteria extends js.Object { + var attributeName: js.UndefOr[__string] + var orderBy: js.UndefOr[OrderBy] + } + + object BucketSortCriteria { + @inline + def apply( + attributeName: js.UndefOr[__string] = js.undefined, + orderBy: js.UndefOr[OrderBy] = js.undefined + ): BucketSortCriteria = { + val __obj = js.Dynamic.literal() + attributeName.foreach(__v => __obj.updateDynamic("attributeName")(__v.asInstanceOf[js.Any])) + orderBy.foreach(__v => __obj.updateDynamic("orderBy")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[BucketSortCriteria] + } + } + + /** + * Provides information about a sensitive data finding, including the classification job that produced the finding. + */ + @js.native + trait ClassificationDetails extends js.Object { + var detailedResultsLocation: js.UndefOr[__string] + var jobArn: js.UndefOr[__string] + var jobId: js.UndefOr[__string] + var result: js.UndefOr[ClassificationResult] + } + + object ClassificationDetails { + @inline + def apply( + detailedResultsLocation: js.UndefOr[__string] = js.undefined, + jobArn: js.UndefOr[__string] = js.undefined, + jobId: js.UndefOr[__string] = js.undefined, + result: js.UndefOr[ClassificationResult] = js.undefined + ): ClassificationDetails = { + val __obj = js.Dynamic.literal() + detailedResultsLocation.foreach(__v => __obj.updateDynamic("detailedResultsLocation")(__v.asInstanceOf[js.Any])) + jobArn.foreach(__v => __obj.updateDynamic("jobArn")(__v.asInstanceOf[js.Any])) + jobId.foreach(__v => __obj.updateDynamic("jobId")(__v.asInstanceOf[js.Any])) + result.foreach(__v => __obj.updateDynamic("result")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ClassificationDetails] + } + } + + /** + * Specifies where to store data classification results, and the encryption settings to use when storing results in that location. Currently, you can store classification results only in an S3 bucket. + */ + @js.native + trait ClassificationExportConfiguration extends js.Object { + var s3Destination: js.UndefOr[S3Destination] + } + + object ClassificationExportConfiguration { + @inline + def apply( + s3Destination: js.UndefOr[S3Destination] = js.undefined + ): ClassificationExportConfiguration = { + val __obj = js.Dynamic.literal() + s3Destination.foreach(__v => __obj.updateDynamic("s3Destination")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ClassificationExportConfiguration] + } + } + + /** + * Provides detailed information about a sensitive data finding, including the types and number of occurrences of the data that was found. + */ + @js.native + trait ClassificationResult extends js.Object { + var customDataIdentifiers: js.UndefOr[CustomDataIdentifiers] + var mimeType: js.UndefOr[__string] + var sensitiveData: js.UndefOr[SensitiveData] + var sizeClassified: js.UndefOr[__long] + var status: js.UndefOr[ClassificationResultStatus] + } + + object ClassificationResult { + @inline + def apply( + customDataIdentifiers: js.UndefOr[CustomDataIdentifiers] = js.undefined, + mimeType: js.UndefOr[__string] = js.undefined, + sensitiveData: js.UndefOr[SensitiveData] = js.undefined, + sizeClassified: js.UndefOr[__long] = js.undefined, + status: js.UndefOr[ClassificationResultStatus] = js.undefined + ): ClassificationResult = { + val __obj = js.Dynamic.literal() + customDataIdentifiers.foreach(__v => __obj.updateDynamic("customDataIdentifiers")(__v.asInstanceOf[js.Any])) + mimeType.foreach(__v => __obj.updateDynamic("mimeType")(__v.asInstanceOf[js.Any])) + sensitiveData.foreach(__v => __obj.updateDynamic("sensitiveData")(__v.asInstanceOf[js.Any])) + sizeClassified.foreach(__v => __obj.updateDynamic("sizeClassified")(__v.asInstanceOf[js.Any])) + status.foreach(__v => __obj.updateDynamic("status")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ClassificationResult] + } + } + + /** + * Provides information about the status of a sensitive data finding. + */ + @js.native + trait ClassificationResultStatus extends js.Object { + var code: js.UndefOr[__string] + var reason: js.UndefOr[__string] + } + + object ClassificationResultStatus { + @inline + def apply( + code: js.UndefOr[__string] = js.undefined, + reason: js.UndefOr[__string] = js.undefined + ): ClassificationResultStatus = { + val __obj = js.Dynamic.literal() + code.foreach(__v => __obj.updateDynamic("code")(__v.asInstanceOf[js.Any])) + reason.foreach(__v => __obj.updateDynamic("reason")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ClassificationResultStatus] + } + } + + @js.native + trait CreateClassificationJobRequest extends js.Object { + var clientToken: __string + var jobType: JobType + var name: __string + var s3JobDefinition: S3JobDefinition + var customDataIdentifierIds: js.UndefOr[__listOf__string] + var description: js.UndefOr[__string] + var initialRun: js.UndefOr[__boolean] + var samplingPercentage: js.UndefOr[__integer] + var scheduleFrequency: js.UndefOr[JobScheduleFrequency] + var tags: js.UndefOr[TagMap] + } + + object CreateClassificationJobRequest { + @inline + def apply( + clientToken: __string, + jobType: JobType, + name: __string, + s3JobDefinition: S3JobDefinition, + customDataIdentifierIds: js.UndefOr[__listOf__string] = js.undefined, + description: js.UndefOr[__string] = js.undefined, + initialRun: js.UndefOr[__boolean] = js.undefined, + samplingPercentage: js.UndefOr[__integer] = js.undefined, + scheduleFrequency: js.UndefOr[JobScheduleFrequency] = js.undefined, + tags: js.UndefOr[TagMap] = js.undefined + ): CreateClassificationJobRequest = { + val __obj = js.Dynamic.literal( + "clientToken" -> clientToken.asInstanceOf[js.Any], + "jobType" -> jobType.asInstanceOf[js.Any], + "name" -> name.asInstanceOf[js.Any], + "s3JobDefinition" -> s3JobDefinition.asInstanceOf[js.Any] + ) + + customDataIdentifierIds.foreach(__v => __obj.updateDynamic("customDataIdentifierIds")(__v.asInstanceOf[js.Any])) + description.foreach(__v => __obj.updateDynamic("description")(__v.asInstanceOf[js.Any])) + initialRun.foreach(__v => __obj.updateDynamic("initialRun")(__v.asInstanceOf[js.Any])) + samplingPercentage.foreach(__v => __obj.updateDynamic("samplingPercentage")(__v.asInstanceOf[js.Any])) + scheduleFrequency.foreach(__v => __obj.updateDynamic("scheduleFrequency")(__v.asInstanceOf[js.Any])) + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateClassificationJobRequest] + } + } + + @js.native + trait CreateClassificationJobResponse extends js.Object { + var jobArn: js.UndefOr[__string] + var jobId: js.UndefOr[__string] + } + + object CreateClassificationJobResponse { + @inline + def apply( + jobArn: js.UndefOr[__string] = js.undefined, + jobId: js.UndefOr[__string] = js.undefined + ): CreateClassificationJobResponse = { + val __obj = js.Dynamic.literal() + jobArn.foreach(__v => __obj.updateDynamic("jobArn")(__v.asInstanceOf[js.Any])) + jobId.foreach(__v => __obj.updateDynamic("jobId")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateClassificationJobResponse] + } + } + + @js.native + trait CreateCustomDataIdentifierRequest extends js.Object { + var clientToken: js.UndefOr[__string] + var description: js.UndefOr[__string] + var ignoreWords: js.UndefOr[__listOf__string] + var keywords: js.UndefOr[__listOf__string] + var maximumMatchDistance: js.UndefOr[__integer] + var name: js.UndefOr[__string] + var regex: js.UndefOr[__string] + var tags: js.UndefOr[TagMap] + } + + object CreateCustomDataIdentifierRequest { + @inline + def apply( + clientToken: js.UndefOr[__string] = js.undefined, + description: js.UndefOr[__string] = js.undefined, + ignoreWords: js.UndefOr[__listOf__string] = js.undefined, + keywords: js.UndefOr[__listOf__string] = js.undefined, + maximumMatchDistance: js.UndefOr[__integer] = js.undefined, + name: js.UndefOr[__string] = js.undefined, + regex: js.UndefOr[__string] = js.undefined, + tags: js.UndefOr[TagMap] = js.undefined + ): CreateCustomDataIdentifierRequest = { + val __obj = js.Dynamic.literal() + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + description.foreach(__v => __obj.updateDynamic("description")(__v.asInstanceOf[js.Any])) + ignoreWords.foreach(__v => __obj.updateDynamic("ignoreWords")(__v.asInstanceOf[js.Any])) + keywords.foreach(__v => __obj.updateDynamic("keywords")(__v.asInstanceOf[js.Any])) + maximumMatchDistance.foreach(__v => __obj.updateDynamic("maximumMatchDistance")(__v.asInstanceOf[js.Any])) + name.foreach(__v => __obj.updateDynamic("name")(__v.asInstanceOf[js.Any])) + regex.foreach(__v => __obj.updateDynamic("regex")(__v.asInstanceOf[js.Any])) + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateCustomDataIdentifierRequest] + } + } + + @js.native + trait CreateCustomDataIdentifierResponse extends js.Object { + var customDataIdentifierId: js.UndefOr[__string] + } + + object CreateCustomDataIdentifierResponse { + @inline + def apply( + customDataIdentifierId: js.UndefOr[__string] = js.undefined + ): CreateCustomDataIdentifierResponse = { + val __obj = js.Dynamic.literal() + customDataIdentifierId.foreach(__v => __obj.updateDynamic("customDataIdentifierId")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateCustomDataIdentifierResponse] + } + } + + @js.native + trait CreateFindingsFilterRequest extends js.Object { + var action: FindingsFilterAction + var findingCriteria: FindingCriteria + var name: __string + var clientToken: js.UndefOr[__string] + var description: js.UndefOr[__string] + var position: js.UndefOr[__integer] + var tags: js.UndefOr[TagMap] + } + + object CreateFindingsFilterRequest { + @inline + def apply( + action: FindingsFilterAction, + findingCriteria: FindingCriteria, + name: __string, + clientToken: js.UndefOr[__string] = js.undefined, + description: js.UndefOr[__string] = js.undefined, + position: js.UndefOr[__integer] = js.undefined, + tags: js.UndefOr[TagMap] = js.undefined + ): CreateFindingsFilterRequest = { + val __obj = js.Dynamic.literal( + "action" -> action.asInstanceOf[js.Any], + "findingCriteria" -> findingCriteria.asInstanceOf[js.Any], + "name" -> name.asInstanceOf[js.Any] + ) + + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + description.foreach(__v => __obj.updateDynamic("description")(__v.asInstanceOf[js.Any])) + position.foreach(__v => __obj.updateDynamic("position")(__v.asInstanceOf[js.Any])) + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateFindingsFilterRequest] + } + } + + @js.native + trait CreateFindingsFilterResponse extends js.Object { + var arn: js.UndefOr[__string] + var id: js.UndefOr[__string] + } + + object CreateFindingsFilterResponse { + @inline + def apply( + arn: js.UndefOr[__string] = js.undefined, + id: js.UndefOr[__string] = js.undefined + ): CreateFindingsFilterResponse = { + val __obj = js.Dynamic.literal() + arn.foreach(__v => __obj.updateDynamic("arn")(__v.asInstanceOf[js.Any])) + id.foreach(__v => __obj.updateDynamic("id")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateFindingsFilterResponse] + } + } + + @js.native + trait CreateInvitationsRequest extends js.Object { + var accountIds: __listOf__string + var disableEmailNotification: js.UndefOr[__boolean] + var message: js.UndefOr[__string] + } + + object CreateInvitationsRequest { + @inline + def apply( + accountIds: __listOf__string, + disableEmailNotification: js.UndefOr[__boolean] = js.undefined, + message: js.UndefOr[__string] = js.undefined + ): CreateInvitationsRequest = { + val __obj = js.Dynamic.literal( + "accountIds" -> accountIds.asInstanceOf[js.Any] + ) + + disableEmailNotification.foreach(__v => __obj.updateDynamic("disableEmailNotification")(__v.asInstanceOf[js.Any])) + message.foreach(__v => __obj.updateDynamic("message")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateInvitationsRequest] + } + } + + @js.native + trait CreateInvitationsResponse extends js.Object { + var unprocessedAccounts: js.UndefOr[__listOfUnprocessedAccount] + } + + object CreateInvitationsResponse { + @inline + def apply( + unprocessedAccounts: js.UndefOr[__listOfUnprocessedAccount] = js.undefined + ): CreateInvitationsResponse = { + val __obj = js.Dynamic.literal() + unprocessedAccounts.foreach(__v => __obj.updateDynamic("unprocessedAccounts")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateInvitationsResponse] + } + } + + @js.native + trait CreateMemberRequest extends js.Object { + var account: AccountDetail + var tags: js.UndefOr[TagMap] + } + + object CreateMemberRequest { + @inline + def apply( + account: AccountDetail, + tags: js.UndefOr[TagMap] = js.undefined + ): CreateMemberRequest = { + val __obj = js.Dynamic.literal( + "account" -> account.asInstanceOf[js.Any] + ) + + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateMemberRequest] + } + } + + @js.native + trait CreateMemberResponse extends js.Object { + var arn: js.UndefOr[__string] + } + + object CreateMemberResponse { + @inline + def apply( + arn: js.UndefOr[__string] = js.undefined + ): CreateMemberResponse = { + val __obj = js.Dynamic.literal() + arn.foreach(__v => __obj.updateDynamic("arn")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateMemberResponse] + } + } + + @js.native + trait CreateSampleFindingsRequest extends js.Object { + var findingTypes: js.UndefOr[__listOfFindingType] + } + + object CreateSampleFindingsRequest { + @inline + def apply( + findingTypes: js.UndefOr[__listOfFindingType] = js.undefined + ): CreateSampleFindingsRequest = { + val __obj = js.Dynamic.literal() + findingTypes.foreach(__v => __obj.updateDynamic("findingTypes")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateSampleFindingsRequest] + } + } + + @js.native + trait CreateSampleFindingsResponse extends js.Object {} + + object CreateSampleFindingsResponse { + @inline + def apply( + ): CreateSampleFindingsResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[CreateSampleFindingsResponse] + } + } + + /** + * Specifies the operator to use in a property-based condition that filters the results of a query for findings. + */ + @js.native + trait CriterionAdditionalProperties extends js.Object { + var eq: js.UndefOr[__listOf__string] + var gt: js.UndefOr[__long] + var gte: js.UndefOr[__long] + var lt: js.UndefOr[__long] + var lte: js.UndefOr[__long] + var neq: js.UndefOr[__listOf__string] + } + + object CriterionAdditionalProperties { + @inline + def apply( + eq: js.UndefOr[__listOf__string] = js.undefined, + gt: js.UndefOr[__long] = js.undefined, + gte: js.UndefOr[__long] = js.undefined, + lt: js.UndefOr[__long] = js.undefined, + lte: js.UndefOr[__long] = js.undefined, + neq: js.UndefOr[__listOf__string] = js.undefined + ): CriterionAdditionalProperties = { + val __obj = js.Dynamic.literal() + eq.foreach(__v => __obj.updateDynamic("eq")(__v.asInstanceOf[js.Any])) + gt.foreach(__v => __obj.updateDynamic("gt")(__v.asInstanceOf[js.Any])) + gte.foreach(__v => __obj.updateDynamic("gte")(__v.asInstanceOf[js.Any])) + lt.foreach(__v => __obj.updateDynamic("lt")(__v.asInstanceOf[js.Any])) + lte.foreach(__v => __obj.updateDynamic("lte")(__v.asInstanceOf[js.Any])) + neq.foreach(__v => __obj.updateDynamic("neq")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CriterionAdditionalProperties] + } + } + + /** + * The type of currency that data for a usage metric is reported in. Possible values are: + */ + @js.native + sealed trait Currency extends js.Any + object Currency extends js.Object { + val USD = "USD".asInstanceOf[Currency] + + val values = js.Object.freeze(js.Array(USD)) + } + + /** + * Provides information about a custom data identifier. + */ + @js.native + trait CustomDataIdentifierSummary extends js.Object { + var arn: js.UndefOr[__string] + var createdAt: js.UndefOr[__timestampIso8601] + var description: js.UndefOr[__string] + var id: js.UndefOr[__string] + var name: js.UndefOr[__string] + } + + object CustomDataIdentifierSummary { + @inline + def apply( + arn: js.UndefOr[__string] = js.undefined, + createdAt: js.UndefOr[__timestampIso8601] = js.undefined, + description: js.UndefOr[__string] = js.undefined, + id: js.UndefOr[__string] = js.undefined, + name: js.UndefOr[__string] = js.undefined + ): CustomDataIdentifierSummary = { + val __obj = js.Dynamic.literal() + arn.foreach(__v => __obj.updateDynamic("arn")(__v.asInstanceOf[js.Any])) + createdAt.foreach(__v => __obj.updateDynamic("createdAt")(__v.asInstanceOf[js.Any])) + description.foreach(__v => __obj.updateDynamic("description")(__v.asInstanceOf[js.Any])) + id.foreach(__v => __obj.updateDynamic("id")(__v.asInstanceOf[js.Any])) + name.foreach(__v => __obj.updateDynamic("name")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CustomDataIdentifierSummary] + } + } + + /** + * Provides information about the number of occurrences of the data that produced a sensitive data finding, and the custom data identifiers that detected the data for the finding. + */ + @js.native + trait CustomDataIdentifiers extends js.Object { + var detections: js.UndefOr[CustomDetections] + var totalCount: js.UndefOr[__long] + } + + object CustomDataIdentifiers { + @inline + def apply( + detections: js.UndefOr[CustomDetections] = js.undefined, + totalCount: js.UndefOr[__long] = js.undefined + ): CustomDataIdentifiers = { + val __obj = js.Dynamic.literal() + detections.foreach(__v => __obj.updateDynamic("detections")(__v.asInstanceOf[js.Any])) + totalCount.foreach(__v => __obj.updateDynamic("totalCount")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CustomDataIdentifiers] + } + } + + /** + * Provides information about a custom data identifier that produced a sensitive data finding, and the number of occurrences of the data that it detected for the finding. + */ + @js.native + trait CustomDetection extends js.Object { + var arn: js.UndefOr[__string] + var count: js.UndefOr[__long] + var name: js.UndefOr[__string] + } + + object CustomDetection { + @inline + def apply( + arn: js.UndefOr[__string] = js.undefined, + count: js.UndefOr[__long] = js.undefined, + name: js.UndefOr[__string] = js.undefined + ): CustomDetection = { + val __obj = js.Dynamic.literal() + arn.foreach(__v => __obj.updateDynamic("arn")(__v.asInstanceOf[js.Any])) + count.foreach(__v => __obj.updateDynamic("count")(__v.asInstanceOf[js.Any])) + name.foreach(__v => __obj.updateDynamic("name")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CustomDetection] + } + } + + /** + * Run the job once a day, every day. If specified, this is an empty object. + */ + @js.native + trait DailySchedule extends js.Object {} + + object DailySchedule { + @inline + def apply( + ): DailySchedule = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[DailySchedule] + } + } + + @js.native + sealed trait DayOfWeek extends js.Any + object DayOfWeek extends js.Object { + val SUNDAY = "SUNDAY".asInstanceOf[DayOfWeek] + val MONDAY = "MONDAY".asInstanceOf[DayOfWeek] + val TUESDAY = "TUESDAY".asInstanceOf[DayOfWeek] + val WEDNESDAY = "WEDNESDAY".asInstanceOf[DayOfWeek] + val THURSDAY = "THURSDAY".asInstanceOf[DayOfWeek] + val FRIDAY = "FRIDAY".asInstanceOf[DayOfWeek] + val SATURDAY = "SATURDAY".asInstanceOf[DayOfWeek] + + val values = js.Object.freeze(js.Array(SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY)) + } + + @js.native + trait DeclineInvitationsRequest extends js.Object { + var accountIds: __listOf__string + } + + object DeclineInvitationsRequest { + @inline + def apply( + accountIds: __listOf__string + ): DeclineInvitationsRequest = { + val __obj = js.Dynamic.literal( + "accountIds" -> accountIds.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DeclineInvitationsRequest] + } + } + + @js.native + trait DeclineInvitationsResponse extends js.Object { + var unprocessedAccounts: js.UndefOr[__listOfUnprocessedAccount] + } + + object DeclineInvitationsResponse { + @inline + def apply( + unprocessedAccounts: js.UndefOr[__listOfUnprocessedAccount] = js.undefined + ): DeclineInvitationsResponse = { + val __obj = js.Dynamic.literal() + unprocessedAccounts.foreach(__v => __obj.updateDynamic("unprocessedAccounts")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DeclineInvitationsResponse] + } + } + + /** + * Provides information about sensitive data that was detected by managed data identifiers and produced a finding. + */ + @js.native + trait DefaultDetection extends js.Object { + var count: js.UndefOr[__long] + var `type`: js.UndefOr[__string] + } + + object DefaultDetection { + @inline + def apply( + count: js.UndefOr[__long] = js.undefined, + `type`: js.UndefOr[__string] = js.undefined + ): DefaultDetection = { + val __obj = js.Dynamic.literal() + count.foreach(__v => __obj.updateDynamic("count")(__v.asInstanceOf[js.Any])) + `type`.foreach(__v => __obj.updateDynamic("type")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DefaultDetection] + } + } + + @js.native + trait DeleteCustomDataIdentifierRequest extends js.Object { + var id: __string + } + + object DeleteCustomDataIdentifierRequest { + @inline + def apply( + id: __string + ): DeleteCustomDataIdentifierRequest = { + val __obj = js.Dynamic.literal( + "id" -> id.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DeleteCustomDataIdentifierRequest] + } + } + + @js.native + trait DeleteCustomDataIdentifierResponse extends js.Object {} + + object DeleteCustomDataIdentifierResponse { + @inline + def apply( + ): DeleteCustomDataIdentifierResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[DeleteCustomDataIdentifierResponse] + } + } + + @js.native + trait DeleteFindingsFilterRequest extends js.Object { + var id: __string + } + + object DeleteFindingsFilterRequest { + @inline + def apply( + id: __string + ): DeleteFindingsFilterRequest = { + val __obj = js.Dynamic.literal( + "id" -> id.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DeleteFindingsFilterRequest] + } + } + + @js.native + trait DeleteFindingsFilterResponse extends js.Object {} + + object DeleteFindingsFilterResponse { + @inline + def apply( + ): DeleteFindingsFilterResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[DeleteFindingsFilterResponse] + } + } + + @js.native + trait DeleteInvitationsRequest extends js.Object { + var accountIds: __listOf__string + } + + object DeleteInvitationsRequest { + @inline + def apply( + accountIds: __listOf__string + ): DeleteInvitationsRequest = { + val __obj = js.Dynamic.literal( + "accountIds" -> accountIds.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DeleteInvitationsRequest] + } + } + + @js.native + trait DeleteInvitationsResponse extends js.Object { + var unprocessedAccounts: js.UndefOr[__listOfUnprocessedAccount] + } + + object DeleteInvitationsResponse { + @inline + def apply( + unprocessedAccounts: js.UndefOr[__listOfUnprocessedAccount] = js.undefined + ): DeleteInvitationsResponse = { + val __obj = js.Dynamic.literal() + unprocessedAccounts.foreach(__v => __obj.updateDynamic("unprocessedAccounts")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DeleteInvitationsResponse] + } + } + + @js.native + trait DeleteMemberRequest extends js.Object { + var id: __string + } + + object DeleteMemberRequest { + @inline + def apply( + id: __string + ): DeleteMemberRequest = { + val __obj = js.Dynamic.literal( + "id" -> id.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DeleteMemberRequest] + } + } + + @js.native + trait DeleteMemberResponse extends js.Object {} + + object DeleteMemberResponse { + @inline + def apply( + ): DeleteMemberResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[DeleteMemberResponse] + } + } + + @js.native + trait DescribeBucketsRequest extends js.Object { + var criteria: js.UndefOr[BucketCriteria] + var maxResults: js.UndefOr[__integer] + var nextToken: js.UndefOr[__string] + var sortCriteria: js.UndefOr[BucketSortCriteria] + } + + object DescribeBucketsRequest { + @inline + def apply( + criteria: js.UndefOr[BucketCriteria] = js.undefined, + maxResults: js.UndefOr[__integer] = js.undefined, + nextToken: js.UndefOr[__string] = js.undefined, + sortCriteria: js.UndefOr[BucketSortCriteria] = js.undefined + ): DescribeBucketsRequest = { + val __obj = js.Dynamic.literal() + criteria.foreach(__v => __obj.updateDynamic("criteria")(__v.asInstanceOf[js.Any])) + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + sortCriteria.foreach(__v => __obj.updateDynamic("sortCriteria")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DescribeBucketsRequest] + } + } + + @js.native + trait DescribeBucketsResponse extends js.Object { + var buckets: js.UndefOr[__listOfBucketMetadata] + var nextToken: js.UndefOr[__string] + } + + object DescribeBucketsResponse { + @inline + def apply( + buckets: js.UndefOr[__listOfBucketMetadata] = js.undefined, + nextToken: js.UndefOr[__string] = js.undefined + ): DescribeBucketsResponse = { + val __obj = js.Dynamic.literal() + buckets.foreach(__v => __obj.updateDynamic("buckets")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DescribeBucketsResponse] + } + } + + @js.native + trait DescribeClassificationJobRequest extends js.Object { + var jobId: __string + } + + object DescribeClassificationJobRequest { + @inline + def apply( + jobId: __string + ): DescribeClassificationJobRequest = { + val __obj = js.Dynamic.literal( + "jobId" -> jobId.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DescribeClassificationJobRequest] + } + } + + @js.native + trait DescribeClassificationJobResponse extends js.Object { + var clientToken: js.UndefOr[__string] + var createdAt: js.UndefOr[__timestampIso8601] + var customDataIdentifierIds: js.UndefOr[__listOf__string] + var description: js.UndefOr[__string] + var initialRun: js.UndefOr[__boolean] + var jobArn: js.UndefOr[__string] + var jobId: js.UndefOr[__string] + var jobStatus: js.UndefOr[JobStatus] + var jobType: js.UndefOr[JobType] + var lastRunTime: js.UndefOr[__timestampIso8601] + var name: js.UndefOr[__string] + var s3JobDefinition: js.UndefOr[S3JobDefinition] + var samplingPercentage: js.UndefOr[__integer] + var scheduleFrequency: js.UndefOr[JobScheduleFrequency] + var statistics: js.UndefOr[Statistics] + var tags: js.UndefOr[TagMap] + } + + object DescribeClassificationJobResponse { + @inline + def apply( + clientToken: js.UndefOr[__string] = js.undefined, + createdAt: js.UndefOr[__timestampIso8601] = js.undefined, + customDataIdentifierIds: js.UndefOr[__listOf__string] = js.undefined, + description: js.UndefOr[__string] = js.undefined, + initialRun: js.UndefOr[__boolean] = js.undefined, + jobArn: js.UndefOr[__string] = js.undefined, + jobId: js.UndefOr[__string] = js.undefined, + jobStatus: js.UndefOr[JobStatus] = js.undefined, + jobType: js.UndefOr[JobType] = js.undefined, + lastRunTime: js.UndefOr[__timestampIso8601] = js.undefined, + name: js.UndefOr[__string] = js.undefined, + s3JobDefinition: js.UndefOr[S3JobDefinition] = js.undefined, + samplingPercentage: js.UndefOr[__integer] = js.undefined, + scheduleFrequency: js.UndefOr[JobScheduleFrequency] = js.undefined, + statistics: js.UndefOr[Statistics] = js.undefined, + tags: js.UndefOr[TagMap] = js.undefined + ): DescribeClassificationJobResponse = { + val __obj = js.Dynamic.literal() + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + createdAt.foreach(__v => __obj.updateDynamic("createdAt")(__v.asInstanceOf[js.Any])) + customDataIdentifierIds.foreach(__v => __obj.updateDynamic("customDataIdentifierIds")(__v.asInstanceOf[js.Any])) + description.foreach(__v => __obj.updateDynamic("description")(__v.asInstanceOf[js.Any])) + initialRun.foreach(__v => __obj.updateDynamic("initialRun")(__v.asInstanceOf[js.Any])) + jobArn.foreach(__v => __obj.updateDynamic("jobArn")(__v.asInstanceOf[js.Any])) + jobId.foreach(__v => __obj.updateDynamic("jobId")(__v.asInstanceOf[js.Any])) + jobStatus.foreach(__v => __obj.updateDynamic("jobStatus")(__v.asInstanceOf[js.Any])) + jobType.foreach(__v => __obj.updateDynamic("jobType")(__v.asInstanceOf[js.Any])) + lastRunTime.foreach(__v => __obj.updateDynamic("lastRunTime")(__v.asInstanceOf[js.Any])) + name.foreach(__v => __obj.updateDynamic("name")(__v.asInstanceOf[js.Any])) + s3JobDefinition.foreach(__v => __obj.updateDynamic("s3JobDefinition")(__v.asInstanceOf[js.Any])) + samplingPercentage.foreach(__v => __obj.updateDynamic("samplingPercentage")(__v.asInstanceOf[js.Any])) + scheduleFrequency.foreach(__v => __obj.updateDynamic("scheduleFrequency")(__v.asInstanceOf[js.Any])) + statistics.foreach(__v => __obj.updateDynamic("statistics")(__v.asInstanceOf[js.Any])) + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DescribeClassificationJobResponse] + } + } + + @js.native + trait DescribeOrganizationConfigurationRequest extends js.Object {} + + object DescribeOrganizationConfigurationRequest { + @inline + def apply( + ): DescribeOrganizationConfigurationRequest = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[DescribeOrganizationConfigurationRequest] + } + } + + @js.native + trait DescribeOrganizationConfigurationResponse extends js.Object { + var autoEnable: js.UndefOr[__boolean] + var maxAccountLimitReached: js.UndefOr[__boolean] + } + + object DescribeOrganizationConfigurationResponse { + @inline + def apply( + autoEnable: js.UndefOr[__boolean] = js.undefined, + maxAccountLimitReached: js.UndefOr[__boolean] = js.undefined + ): DescribeOrganizationConfigurationResponse = { + val __obj = js.Dynamic.literal() + autoEnable.foreach(__v => __obj.updateDynamic("autoEnable")(__v.asInstanceOf[js.Any])) + maxAccountLimitReached.foreach(__v => __obj.updateDynamic("maxAccountLimitReached")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DescribeOrganizationConfigurationResponse] + } + } + + @js.native + trait DisableMacieRequest extends js.Object {} + + object DisableMacieRequest { + @inline + def apply( + ): DisableMacieRequest = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[DisableMacieRequest] + } + } + + @js.native + trait DisableMacieResponse extends js.Object {} + + object DisableMacieResponse { + @inline + def apply( + ): DisableMacieResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[DisableMacieResponse] + } + } + + @js.native + trait DisableOrganizationAdminAccountRequest extends js.Object { + var adminAccountId: __string + } + + object DisableOrganizationAdminAccountRequest { + @inline + def apply( + adminAccountId: __string + ): DisableOrganizationAdminAccountRequest = { + val __obj = js.Dynamic.literal( + "adminAccountId" -> adminAccountId.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DisableOrganizationAdminAccountRequest] + } + } + + @js.native + trait DisableOrganizationAdminAccountResponse extends js.Object {} + + object DisableOrganizationAdminAccountResponse { + @inline + def apply( + ): DisableOrganizationAdminAccountResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[DisableOrganizationAdminAccountResponse] + } + } + + @js.native + trait DisassociateFromMasterAccountRequest extends js.Object {} + + object DisassociateFromMasterAccountRequest { + @inline + def apply( + ): DisassociateFromMasterAccountRequest = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[DisassociateFromMasterAccountRequest] + } + } + + @js.native + trait DisassociateFromMasterAccountResponse extends js.Object {} + + object DisassociateFromMasterAccountResponse { + @inline + def apply( + ): DisassociateFromMasterAccountResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[DisassociateFromMasterAccountResponse] + } + } + + @js.native + trait DisassociateMemberRequest extends js.Object { + var id: __string + } + + object DisassociateMemberRequest { + @inline + def apply( + id: __string + ): DisassociateMemberRequest = { + val __obj = js.Dynamic.literal( + "id" -> id.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DisassociateMemberRequest] + } + } + + @js.native + trait DisassociateMemberResponse extends js.Object {} + + object DisassociateMemberResponse { + @inline + def apply( + ): DisassociateMemberResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[DisassociateMemberResponse] + } + } + + /** + * The DNS name of the entity that performed the action on the affected resource. + */ + @js.native + trait DomainDetails extends js.Object { + var domainName: js.UndefOr[__string] + } + + object DomainDetails { + @inline + def apply( + domainName: js.UndefOr[__string] = js.undefined + ): DomainDetails = { + val __obj = js.Dynamic.literal() + domainName.foreach(__v => __obj.updateDynamic("domainName")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DomainDetails] + } + } + + @js.native + sealed trait EffectivePermission extends js.Any + object EffectivePermission extends js.Object { + val PUBLIC = "PUBLIC".asInstanceOf[EffectivePermission] + val NOT_PUBLIC = "NOT_PUBLIC".asInstanceOf[EffectivePermission] + + val values = js.Object.freeze(js.Array(PUBLIC, NOT_PUBLIC)) + } + + @js.native + trait EnableMacieRequest extends js.Object { + var clientToken: js.UndefOr[__string] + var findingPublishingFrequency: js.UndefOr[FindingPublishingFrequency] + var status: js.UndefOr[MacieStatus] + } + + object EnableMacieRequest { + @inline + def apply( + clientToken: js.UndefOr[__string] = js.undefined, + findingPublishingFrequency: js.UndefOr[FindingPublishingFrequency] = js.undefined, + status: js.UndefOr[MacieStatus] = js.undefined + ): EnableMacieRequest = { + val __obj = js.Dynamic.literal() + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + findingPublishingFrequency.foreach(__v => + __obj.updateDynamic("findingPublishingFrequency")(__v.asInstanceOf[js.Any]) + ) + status.foreach(__v => __obj.updateDynamic("status")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[EnableMacieRequest] + } + } + + @js.native + trait EnableMacieResponse extends js.Object {} + + object EnableMacieResponse { + @inline + def apply( + ): EnableMacieResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[EnableMacieResponse] + } + } + + @js.native + trait EnableOrganizationAdminAccountRequest extends js.Object { + var adminAccountId: __string + var clientToken: js.UndefOr[__string] + } + + object EnableOrganizationAdminAccountRequest { + @inline + def apply( + adminAccountId: __string, + clientToken: js.UndefOr[__string] = js.undefined + ): EnableOrganizationAdminAccountRequest = { + val __obj = js.Dynamic.literal( + "adminAccountId" -> adminAccountId.asInstanceOf[js.Any] + ) + + clientToken.foreach(__v => __obj.updateDynamic("clientToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[EnableOrganizationAdminAccountRequest] + } + } + + @js.native + trait EnableOrganizationAdminAccountResponse extends js.Object {} + + object EnableOrganizationAdminAccountResponse { + @inline + def apply( + ): EnableOrganizationAdminAccountResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[EnableOrganizationAdminAccountResponse] + } + } + + /** + * The server-side encryption algorithm that's used when storing the S3 bucket or object. Valid values are: + */ + @js.native + sealed trait EncryptionType extends js.Any + object EncryptionType extends js.Object { + val NONE = "NONE".asInstanceOf[EncryptionType] + val AES256 = "AES256".asInstanceOf[EncryptionType] + val `aws:kms` = "aws:kms".asInstanceOf[EncryptionType] + val UNKNOWN = "UNKNOWN".asInstanceOf[EncryptionType] + + val values = js.Object.freeze(js.Array(NONE, AES256, `aws:kms`, UNKNOWN)) + } + + /** + * The source of an error, issue, or delay. Possible values are: + */ + @js.native + sealed trait ErrorCode extends js.Any + object ErrorCode extends js.Object { + val ClientError = "ClientError".asInstanceOf[ErrorCode] + val InternalError = "InternalError".asInstanceOf[ErrorCode] + + val values = js.Object.freeze(js.Array(ClientError, InternalError)) + } + + /** + * Reserved for future use. + */ + @js.native + trait FederatedUser extends js.Object { + var accessKeyId: js.UndefOr[__string] + var accountId: js.UndefOr[__string] + var arn: js.UndefOr[__string] + var principalId: js.UndefOr[__string] + var sessionContext: js.UndefOr[SessionContext] + } + + object FederatedUser { + @inline + def apply( + accessKeyId: js.UndefOr[__string] = js.undefined, + accountId: js.UndefOr[__string] = js.undefined, + arn: js.UndefOr[__string] = js.undefined, + principalId: js.UndefOr[__string] = js.undefined, + sessionContext: js.UndefOr[SessionContext] = js.undefined + ): FederatedUser = { + val __obj = js.Dynamic.literal() + accessKeyId.foreach(__v => __obj.updateDynamic("accessKeyId")(__v.asInstanceOf[js.Any])) + accountId.foreach(__v => __obj.updateDynamic("accountId")(__v.asInstanceOf[js.Any])) + arn.foreach(__v => __obj.updateDynamic("arn")(__v.asInstanceOf[js.Any])) + principalId.foreach(__v => __obj.updateDynamic("principalId")(__v.asInstanceOf[js.Any])) + sessionContext.foreach(__v => __obj.updateDynamic("sessionContext")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[FederatedUser] + } + } + + /** + * Provides information about a finding. + */ + @js.native + trait Finding extends js.Object { + var accountId: js.UndefOr[__string] + var archived: js.UndefOr[__boolean] + var category: js.UndefOr[FindingCategory] + var classificationDetails: js.UndefOr[ClassificationDetails] + var count: js.UndefOr[__long] + var createdAt: js.UndefOr[__timestampIso8601] + var description: js.UndefOr[__string] + var id: js.UndefOr[__string] + var partition: js.UndefOr[__string] + var policyDetails: js.UndefOr[PolicyDetails] + var region: js.UndefOr[__string] + var resourcesAffected: js.UndefOr[ResourcesAffected] + var sample: js.UndefOr[__boolean] + var schemaVersion: js.UndefOr[__string] + var severity: js.UndefOr[Severity] + var title: js.UndefOr[__string] + var `type`: js.UndefOr[FindingType] + var updatedAt: js.UndefOr[__timestampIso8601] + } + + object Finding { + @inline + def apply( + accountId: js.UndefOr[__string] = js.undefined, + archived: js.UndefOr[__boolean] = js.undefined, + category: js.UndefOr[FindingCategory] = js.undefined, + classificationDetails: js.UndefOr[ClassificationDetails] = js.undefined, + count: js.UndefOr[__long] = js.undefined, + createdAt: js.UndefOr[__timestampIso8601] = js.undefined, + description: js.UndefOr[__string] = js.undefined, + id: js.UndefOr[__string] = js.undefined, + partition: js.UndefOr[__string] = js.undefined, + policyDetails: js.UndefOr[PolicyDetails] = js.undefined, + region: js.UndefOr[__string] = js.undefined, + resourcesAffected: js.UndefOr[ResourcesAffected] = js.undefined, + sample: js.UndefOr[__boolean] = js.undefined, + schemaVersion: js.UndefOr[__string] = js.undefined, + severity: js.UndefOr[Severity] = js.undefined, + title: js.UndefOr[__string] = js.undefined, + `type`: js.UndefOr[FindingType] = js.undefined, + updatedAt: js.UndefOr[__timestampIso8601] = js.undefined + ): Finding = { + val __obj = js.Dynamic.literal() + accountId.foreach(__v => __obj.updateDynamic("accountId")(__v.asInstanceOf[js.Any])) + archived.foreach(__v => __obj.updateDynamic("archived")(__v.asInstanceOf[js.Any])) + category.foreach(__v => __obj.updateDynamic("category")(__v.asInstanceOf[js.Any])) + classificationDetails.foreach(__v => __obj.updateDynamic("classificationDetails")(__v.asInstanceOf[js.Any])) + count.foreach(__v => __obj.updateDynamic("count")(__v.asInstanceOf[js.Any])) + createdAt.foreach(__v => __obj.updateDynamic("createdAt")(__v.asInstanceOf[js.Any])) + description.foreach(__v => __obj.updateDynamic("description")(__v.asInstanceOf[js.Any])) + id.foreach(__v => __obj.updateDynamic("id")(__v.asInstanceOf[js.Any])) + partition.foreach(__v => __obj.updateDynamic("partition")(__v.asInstanceOf[js.Any])) + policyDetails.foreach(__v => __obj.updateDynamic("policyDetails")(__v.asInstanceOf[js.Any])) + region.foreach(__v => __obj.updateDynamic("region")(__v.asInstanceOf[js.Any])) + resourcesAffected.foreach(__v => __obj.updateDynamic("resourcesAffected")(__v.asInstanceOf[js.Any])) + sample.foreach(__v => __obj.updateDynamic("sample")(__v.asInstanceOf[js.Any])) + schemaVersion.foreach(__v => __obj.updateDynamic("schemaVersion")(__v.asInstanceOf[js.Any])) + severity.foreach(__v => __obj.updateDynamic("severity")(__v.asInstanceOf[js.Any])) + title.foreach(__v => __obj.updateDynamic("title")(__v.asInstanceOf[js.Any])) + `type`.foreach(__v => __obj.updateDynamic("type")(__v.asInstanceOf[js.Any])) + updatedAt.foreach(__v => __obj.updateDynamic("updatedAt")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[Finding] + } + } + + /** + * Provides information about an action that occurred for a resource and produced a policy finding. + */ + @js.native + trait FindingAction extends js.Object { + var actionType: js.UndefOr[FindingActionType] + var apiCallDetails: js.UndefOr[ApiCallDetails] + } + + object FindingAction { + @inline + def apply( + actionType: js.UndefOr[FindingActionType] = js.undefined, + apiCallDetails: js.UndefOr[ApiCallDetails] = js.undefined + ): FindingAction = { + val __obj = js.Dynamic.literal() + actionType.foreach(__v => __obj.updateDynamic("actionType")(__v.asInstanceOf[js.Any])) + apiCallDetails.foreach(__v => __obj.updateDynamic("apiCallDetails")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[FindingAction] + } + } + + /** + * The type of action that occurred for the resource and produced the policy finding. + */ + @js.native + sealed trait FindingActionType extends js.Any + object FindingActionType extends js.Object { + val AWS_API_CALL = "AWS_API_CALL".asInstanceOf[FindingActionType] + + val values = js.Object.freeze(js.Array(AWS_API_CALL)) + } + + /** + * Provides information about an entity that performed an action that produced a policy finding for a resource. + */ + @js.native + trait FindingActor extends js.Object { + var domainDetails: js.UndefOr[DomainDetails] + var ipAddressDetails: js.UndefOr[IpAddressDetails] + var userIdentity: js.UndefOr[UserIdentity] + } + + object FindingActor { + @inline + def apply( + domainDetails: js.UndefOr[DomainDetails] = js.undefined, + ipAddressDetails: js.UndefOr[IpAddressDetails] = js.undefined, + userIdentity: js.UndefOr[UserIdentity] = js.undefined + ): FindingActor = { + val __obj = js.Dynamic.literal() + domainDetails.foreach(__v => __obj.updateDynamic("domainDetails")(__v.asInstanceOf[js.Any])) + ipAddressDetails.foreach(__v => __obj.updateDynamic("ipAddressDetails")(__v.asInstanceOf[js.Any])) + userIdentity.foreach(__v => __obj.updateDynamic("userIdentity")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[FindingActor] + } + } + + /** + * The category of the finding. Valid values are: + */ + @js.native + sealed trait FindingCategory extends js.Any + object FindingCategory extends js.Object { + val CLASSIFICATION = "CLASSIFICATION".asInstanceOf[FindingCategory] + val POLICY = "POLICY".asInstanceOf[FindingCategory] + + val values = js.Object.freeze(js.Array(CLASSIFICATION, POLICY)) + } + + /** + * Specifies, as a map, one or more property-based conditions that filter the results of a query for findings. + */ + @js.native + trait FindingCriteria extends js.Object { + var criterion: js.UndefOr[Criterion] + } + + object FindingCriteria { + @inline + def apply( + criterion: js.UndefOr[Criterion] = js.undefined + ): FindingCriteria = { + val __obj = js.Dynamic.literal() + criterion.foreach(__v => __obj.updateDynamic("criterion")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[FindingCriteria] + } + } + + /** + * The frequency with which Amazon Macie publishes updates to policy findings for an account. This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly called Amazon CloudWatch Events). Valid values are: + */ + @js.native + sealed trait FindingPublishingFrequency extends js.Any + object FindingPublishingFrequency extends js.Object { + val FIFTEEN_MINUTES = "FIFTEEN_MINUTES".asInstanceOf[FindingPublishingFrequency] + val ONE_HOUR = "ONE_HOUR".asInstanceOf[FindingPublishingFrequency] + val SIX_HOURS = "SIX_HOURS".asInstanceOf[FindingPublishingFrequency] + + val values = js.Object.freeze(js.Array(FIFTEEN_MINUTES, ONE_HOUR, SIX_HOURS)) + } + + /** + * The grouping to sort the results by. Valid values are: + */ + @js.native + sealed trait FindingStatisticsSortAttributeName extends js.Any + object FindingStatisticsSortAttributeName extends js.Object { + val groupKey = "groupKey".asInstanceOf[FindingStatisticsSortAttributeName] + val count = "count".asInstanceOf[FindingStatisticsSortAttributeName] + + val values = js.Object.freeze(js.Array(groupKey, count)) + } + + /** + * Specifies criteria for sorting the results of a query for information about findings. + */ + @js.native + trait FindingStatisticsSortCriteria extends js.Object { + var attributeName: js.UndefOr[FindingStatisticsSortAttributeName] + var orderBy: js.UndefOr[OrderBy] + } + + object FindingStatisticsSortCriteria { + @inline + def apply( + attributeName: js.UndefOr[FindingStatisticsSortAttributeName] = js.undefined, + orderBy: js.UndefOr[OrderBy] = js.undefined + ): FindingStatisticsSortCriteria = { + val __obj = js.Dynamic.literal() + attributeName.foreach(__v => __obj.updateDynamic("attributeName")(__v.asInstanceOf[js.Any])) + orderBy.foreach(__v => __obj.updateDynamic("orderBy")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[FindingStatisticsSortCriteria] + } + } + + /** + * The type of finding. Valid values are: + */ + @js.native + sealed trait FindingType extends js.Any + object FindingType extends js.Object { + val `SensitiveData:S3Object/Multiple` = "SensitiveData:S3Object/Multiple".asInstanceOf[FindingType] + val `SensitiveData:S3Object/Financial` = "SensitiveData:S3Object/Financial".asInstanceOf[FindingType] + val `SensitiveData:S3Object/Personal` = "SensitiveData:S3Object/Personal".asInstanceOf[FindingType] + val `SensitiveData:S3Object/Credentials` = "SensitiveData:S3Object/Credentials".asInstanceOf[FindingType] + val `SensitiveData:S3Object/CustomIdentifier` = "SensitiveData:S3Object/CustomIdentifier".asInstanceOf[FindingType] + val `Policy:IAMUser/S3BucketPublic` = "Policy:IAMUser/S3BucketPublic".asInstanceOf[FindingType] + val `Policy:IAMUser/S3BucketSharedExternally` = "Policy:IAMUser/S3BucketSharedExternally".asInstanceOf[FindingType] + val `Policy:IAMUser/S3BucketReplicatedExternally` = + "Policy:IAMUser/S3BucketReplicatedExternally".asInstanceOf[FindingType] + val `Policy:IAMUser/S3BucketEncryptionDisabled` = + "Policy:IAMUser/S3BucketEncryptionDisabled".asInstanceOf[FindingType] + val `Policy:IAMUser/S3BlockPublicAccessDisabled` = + "Policy:IAMUser/S3BlockPublicAccessDisabled".asInstanceOf[FindingType] + + val values = js.Object.freeze( + js.Array( + `SensitiveData:S3Object/Multiple`, + `SensitiveData:S3Object/Financial`, + `SensitiveData:S3Object/Personal`, + `SensitiveData:S3Object/Credentials`, + `SensitiveData:S3Object/CustomIdentifier`, + `Policy:IAMUser/S3BucketPublic`, + `Policy:IAMUser/S3BucketSharedExternally`, + `Policy:IAMUser/S3BucketReplicatedExternally`, + `Policy:IAMUser/S3BucketEncryptionDisabled`, + `Policy:IAMUser/S3BlockPublicAccessDisabled` + ) + ) + } + + /** + * The action to perform on findings that meet the filter criteria. To suppress (automatically archive) findings that meet the criteria, set this value to ARCHIVE. Valid values are: + */ + @js.native + sealed trait FindingsFilterAction extends js.Any + object FindingsFilterAction extends js.Object { + val ARCHIVE = "ARCHIVE".asInstanceOf[FindingsFilterAction] + val NOOP = "NOOP".asInstanceOf[FindingsFilterAction] + + val values = js.Object.freeze(js.Array(ARCHIVE, NOOP)) + } + + /** + * Provides information about a findings filter. + */ + @js.native + trait FindingsFilterListItem extends js.Object { + var arn: js.UndefOr[__string] + var id: js.UndefOr[__string] + var name: js.UndefOr[__string] + var tags: js.UndefOr[TagMap] + } + + object FindingsFilterListItem { + @inline + def apply( + arn: js.UndefOr[__string] = js.undefined, + id: js.UndefOr[__string] = js.undefined, + name: js.UndefOr[__string] = js.undefined, + tags: js.UndefOr[TagMap] = js.undefined + ): FindingsFilterListItem = { + val __obj = js.Dynamic.literal() + arn.foreach(__v => __obj.updateDynamic("arn")(__v.asInstanceOf[js.Any])) + id.foreach(__v => __obj.updateDynamic("id")(__v.asInstanceOf[js.Any])) + name.foreach(__v => __obj.updateDynamic("name")(__v.asInstanceOf[js.Any])) + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[FindingsFilterListItem] + } + } + + @js.native + trait GetBucketStatisticsRequest extends js.Object { + var accountId: js.UndefOr[__string] + } + + object GetBucketStatisticsRequest { + @inline + def apply( + accountId: js.UndefOr[__string] = js.undefined + ): GetBucketStatisticsRequest = { + val __obj = js.Dynamic.literal() + accountId.foreach(__v => __obj.updateDynamic("accountId")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetBucketStatisticsRequest] + } + } + + @js.native + trait GetBucketStatisticsResponse extends js.Object { + var bucketCount: js.UndefOr[__long] + var bucketCountByEffectivePermission: js.UndefOr[BucketCountByEffectivePermission] + var bucketCountByEncryptionType: js.UndefOr[BucketCountByEncryptionType] + var bucketCountBySharedAccessType: js.UndefOr[BucketCountBySharedAccessType] + var classifiableObjectCount: js.UndefOr[__long] + var lastUpdated: js.UndefOr[__timestampIso8601] + var objectCount: js.UndefOr[__long] + var sizeInBytes: js.UndefOr[__long] + var sizeInBytesCompressed: js.UndefOr[__long] + } + + object GetBucketStatisticsResponse { + @inline + def apply( + bucketCount: js.UndefOr[__long] = js.undefined, + bucketCountByEffectivePermission: js.UndefOr[BucketCountByEffectivePermission] = js.undefined, + bucketCountByEncryptionType: js.UndefOr[BucketCountByEncryptionType] = js.undefined, + bucketCountBySharedAccessType: js.UndefOr[BucketCountBySharedAccessType] = js.undefined, + classifiableObjectCount: js.UndefOr[__long] = js.undefined, + lastUpdated: js.UndefOr[__timestampIso8601] = js.undefined, + objectCount: js.UndefOr[__long] = js.undefined, + sizeInBytes: js.UndefOr[__long] = js.undefined, + sizeInBytesCompressed: js.UndefOr[__long] = js.undefined + ): GetBucketStatisticsResponse = { + val __obj = js.Dynamic.literal() + bucketCount.foreach(__v => __obj.updateDynamic("bucketCount")(__v.asInstanceOf[js.Any])) + bucketCountByEffectivePermission.foreach(__v => + __obj.updateDynamic("bucketCountByEffectivePermission")(__v.asInstanceOf[js.Any]) + ) + bucketCountByEncryptionType.foreach(__v => + __obj.updateDynamic("bucketCountByEncryptionType")(__v.asInstanceOf[js.Any]) + ) + bucketCountBySharedAccessType.foreach(__v => + __obj.updateDynamic("bucketCountBySharedAccessType")(__v.asInstanceOf[js.Any]) + ) + classifiableObjectCount.foreach(__v => __obj.updateDynamic("classifiableObjectCount")(__v.asInstanceOf[js.Any])) + lastUpdated.foreach(__v => __obj.updateDynamic("lastUpdated")(__v.asInstanceOf[js.Any])) + objectCount.foreach(__v => __obj.updateDynamic("objectCount")(__v.asInstanceOf[js.Any])) + sizeInBytes.foreach(__v => __obj.updateDynamic("sizeInBytes")(__v.asInstanceOf[js.Any])) + sizeInBytesCompressed.foreach(__v => __obj.updateDynamic("sizeInBytesCompressed")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetBucketStatisticsResponse] + } + } + + @js.native + trait GetClassificationExportConfigurationRequest extends js.Object {} + + object GetClassificationExportConfigurationRequest { + @inline + def apply( + ): GetClassificationExportConfigurationRequest = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[GetClassificationExportConfigurationRequest] + } + } + + @js.native + trait GetClassificationExportConfigurationResponse extends js.Object { + var configuration: js.UndefOr[ClassificationExportConfiguration] + } + + object GetClassificationExportConfigurationResponse { + @inline + def apply( + configuration: js.UndefOr[ClassificationExportConfiguration] = js.undefined + ): GetClassificationExportConfigurationResponse = { + val __obj = js.Dynamic.literal() + configuration.foreach(__v => __obj.updateDynamic("configuration")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetClassificationExportConfigurationResponse] + } + } + + @js.native + trait GetCustomDataIdentifierRequest extends js.Object { + var id: __string + } + + object GetCustomDataIdentifierRequest { + @inline + def apply( + id: __string + ): GetCustomDataIdentifierRequest = { + val __obj = js.Dynamic.literal( + "id" -> id.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[GetCustomDataIdentifierRequest] + } + } + + @js.native + trait GetCustomDataIdentifierResponse extends js.Object { + var arn: js.UndefOr[__string] + var createdAt: js.UndefOr[__timestampIso8601] + var deleted: js.UndefOr[__boolean] + var description: js.UndefOr[__string] + var id: js.UndefOr[__string] + var ignoreWords: js.UndefOr[__listOf__string] + var keywords: js.UndefOr[__listOf__string] + var maximumMatchDistance: js.UndefOr[__integer] + var name: js.UndefOr[__string] + var regex: js.UndefOr[__string] + var tags: js.UndefOr[TagMap] + } + + object GetCustomDataIdentifierResponse { + @inline + def apply( + arn: js.UndefOr[__string] = js.undefined, + createdAt: js.UndefOr[__timestampIso8601] = js.undefined, + deleted: js.UndefOr[__boolean] = js.undefined, + description: js.UndefOr[__string] = js.undefined, + id: js.UndefOr[__string] = js.undefined, + ignoreWords: js.UndefOr[__listOf__string] = js.undefined, + keywords: js.UndefOr[__listOf__string] = js.undefined, + maximumMatchDistance: js.UndefOr[__integer] = js.undefined, + name: js.UndefOr[__string] = js.undefined, + regex: js.UndefOr[__string] = js.undefined, + tags: js.UndefOr[TagMap] = js.undefined + ): GetCustomDataIdentifierResponse = { + val __obj = js.Dynamic.literal() + arn.foreach(__v => __obj.updateDynamic("arn")(__v.asInstanceOf[js.Any])) + createdAt.foreach(__v => __obj.updateDynamic("createdAt")(__v.asInstanceOf[js.Any])) + deleted.foreach(__v => __obj.updateDynamic("deleted")(__v.asInstanceOf[js.Any])) + description.foreach(__v => __obj.updateDynamic("description")(__v.asInstanceOf[js.Any])) + id.foreach(__v => __obj.updateDynamic("id")(__v.asInstanceOf[js.Any])) + ignoreWords.foreach(__v => __obj.updateDynamic("ignoreWords")(__v.asInstanceOf[js.Any])) + keywords.foreach(__v => __obj.updateDynamic("keywords")(__v.asInstanceOf[js.Any])) + maximumMatchDistance.foreach(__v => __obj.updateDynamic("maximumMatchDistance")(__v.asInstanceOf[js.Any])) + name.foreach(__v => __obj.updateDynamic("name")(__v.asInstanceOf[js.Any])) + regex.foreach(__v => __obj.updateDynamic("regex")(__v.asInstanceOf[js.Any])) + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetCustomDataIdentifierResponse] + } + } + + @js.native + trait GetFindingStatisticsRequest extends js.Object { + var groupBy: GroupBy + var findingCriteria: js.UndefOr[FindingCriteria] + var size: js.UndefOr[__integer] + var sortCriteria: js.UndefOr[FindingStatisticsSortCriteria] + } + + object GetFindingStatisticsRequest { + @inline + def apply( + groupBy: GroupBy, + findingCriteria: js.UndefOr[FindingCriteria] = js.undefined, + size: js.UndefOr[__integer] = js.undefined, + sortCriteria: js.UndefOr[FindingStatisticsSortCriteria] = js.undefined + ): GetFindingStatisticsRequest = { + val __obj = js.Dynamic.literal( + "groupBy" -> groupBy.asInstanceOf[js.Any] + ) + + findingCriteria.foreach(__v => __obj.updateDynamic("findingCriteria")(__v.asInstanceOf[js.Any])) + size.foreach(__v => __obj.updateDynamic("size")(__v.asInstanceOf[js.Any])) + sortCriteria.foreach(__v => __obj.updateDynamic("sortCriteria")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetFindingStatisticsRequest] + } + } + + @js.native + trait GetFindingStatisticsResponse extends js.Object { + var countsByGroup: js.UndefOr[__listOfGroupCount] + } + + object GetFindingStatisticsResponse { + @inline + def apply( + countsByGroup: js.UndefOr[__listOfGroupCount] = js.undefined + ): GetFindingStatisticsResponse = { + val __obj = js.Dynamic.literal() + countsByGroup.foreach(__v => __obj.updateDynamic("countsByGroup")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetFindingStatisticsResponse] + } + } + + @js.native + trait GetFindingsFilterRequest extends js.Object { + var id: __string + } + + object GetFindingsFilterRequest { + @inline + def apply( + id: __string + ): GetFindingsFilterRequest = { + val __obj = js.Dynamic.literal( + "id" -> id.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[GetFindingsFilterRequest] + } + } + + @js.native + trait GetFindingsFilterResponse extends js.Object { + var action: js.UndefOr[FindingsFilterAction] + var arn: js.UndefOr[__string] + var description: js.UndefOr[__string] + var findingCriteria: js.UndefOr[FindingCriteria] + var id: js.UndefOr[__string] + var name: js.UndefOr[__string] + var position: js.UndefOr[__integer] + var tags: js.UndefOr[TagMap] + } + + object GetFindingsFilterResponse { + @inline + def apply( + action: js.UndefOr[FindingsFilterAction] = js.undefined, + arn: js.UndefOr[__string] = js.undefined, + description: js.UndefOr[__string] = js.undefined, + findingCriteria: js.UndefOr[FindingCriteria] = js.undefined, + id: js.UndefOr[__string] = js.undefined, + name: js.UndefOr[__string] = js.undefined, + position: js.UndefOr[__integer] = js.undefined, + tags: js.UndefOr[TagMap] = js.undefined + ): GetFindingsFilterResponse = { + val __obj = js.Dynamic.literal() + action.foreach(__v => __obj.updateDynamic("action")(__v.asInstanceOf[js.Any])) + arn.foreach(__v => __obj.updateDynamic("arn")(__v.asInstanceOf[js.Any])) + description.foreach(__v => __obj.updateDynamic("description")(__v.asInstanceOf[js.Any])) + findingCriteria.foreach(__v => __obj.updateDynamic("findingCriteria")(__v.asInstanceOf[js.Any])) + id.foreach(__v => __obj.updateDynamic("id")(__v.asInstanceOf[js.Any])) + name.foreach(__v => __obj.updateDynamic("name")(__v.asInstanceOf[js.Any])) + position.foreach(__v => __obj.updateDynamic("position")(__v.asInstanceOf[js.Any])) + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetFindingsFilterResponse] + } + } + + @js.native + trait GetFindingsRequest extends js.Object { + var findingIds: __listOf__string + var sortCriteria: js.UndefOr[SortCriteria] + } + + object GetFindingsRequest { + @inline + def apply( + findingIds: __listOf__string, + sortCriteria: js.UndefOr[SortCriteria] = js.undefined + ): GetFindingsRequest = { + val __obj = js.Dynamic.literal( + "findingIds" -> findingIds.asInstanceOf[js.Any] + ) + + sortCriteria.foreach(__v => __obj.updateDynamic("sortCriteria")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetFindingsRequest] + } + } + + @js.native + trait GetFindingsResponse extends js.Object { + var findings: js.UndefOr[__listOfFinding] + } + + object GetFindingsResponse { + @inline + def apply( + findings: js.UndefOr[__listOfFinding] = js.undefined + ): GetFindingsResponse = { + val __obj = js.Dynamic.literal() + findings.foreach(__v => __obj.updateDynamic("findings")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetFindingsResponse] + } + } + + @js.native + trait GetInvitationsCountRequest extends js.Object {} + + object GetInvitationsCountRequest { + @inline + def apply( + ): GetInvitationsCountRequest = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[GetInvitationsCountRequest] + } + } + + @js.native + trait GetInvitationsCountResponse extends js.Object { + var invitationsCount: js.UndefOr[__long] + } + + object GetInvitationsCountResponse { + @inline + def apply( + invitationsCount: js.UndefOr[__long] = js.undefined + ): GetInvitationsCountResponse = { + val __obj = js.Dynamic.literal() + invitationsCount.foreach(__v => __obj.updateDynamic("invitationsCount")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetInvitationsCountResponse] + } + } + + @js.native + trait GetMacieSessionRequest extends js.Object {} + + object GetMacieSessionRequest { + @inline + def apply( + ): GetMacieSessionRequest = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[GetMacieSessionRequest] + } + } + + @js.native + trait GetMacieSessionResponse extends js.Object { + var createdAt: js.UndefOr[__timestampIso8601] + var findingPublishingFrequency: js.UndefOr[FindingPublishingFrequency] + var serviceRole: js.UndefOr[__string] + var status: js.UndefOr[MacieStatus] + var updatedAt: js.UndefOr[__timestampIso8601] + } + + object GetMacieSessionResponse { + @inline + def apply( + createdAt: js.UndefOr[__timestampIso8601] = js.undefined, + findingPublishingFrequency: js.UndefOr[FindingPublishingFrequency] = js.undefined, + serviceRole: js.UndefOr[__string] = js.undefined, + status: js.UndefOr[MacieStatus] = js.undefined, + updatedAt: js.UndefOr[__timestampIso8601] = js.undefined + ): GetMacieSessionResponse = { + val __obj = js.Dynamic.literal() + createdAt.foreach(__v => __obj.updateDynamic("createdAt")(__v.asInstanceOf[js.Any])) + findingPublishingFrequency.foreach(__v => + __obj.updateDynamic("findingPublishingFrequency")(__v.asInstanceOf[js.Any]) + ) + serviceRole.foreach(__v => __obj.updateDynamic("serviceRole")(__v.asInstanceOf[js.Any])) + status.foreach(__v => __obj.updateDynamic("status")(__v.asInstanceOf[js.Any])) + updatedAt.foreach(__v => __obj.updateDynamic("updatedAt")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetMacieSessionResponse] + } + } + + @js.native + trait GetMasterAccountRequest extends js.Object {} + + object GetMasterAccountRequest { + @inline + def apply( + ): GetMasterAccountRequest = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[GetMasterAccountRequest] + } + } + + @js.native + trait GetMasterAccountResponse extends js.Object { + var master: js.UndefOr[Invitation] + } + + object GetMasterAccountResponse { + @inline + def apply( + master: js.UndefOr[Invitation] = js.undefined + ): GetMasterAccountResponse = { + val __obj = js.Dynamic.literal() + master.foreach(__v => __obj.updateDynamic("master")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetMasterAccountResponse] + } + } + + @js.native + trait GetMemberRequest extends js.Object { + var id: __string + } + + object GetMemberRequest { + @inline + def apply( + id: __string + ): GetMemberRequest = { + val __obj = js.Dynamic.literal( + "id" -> id.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[GetMemberRequest] + } + } + + @js.native + trait GetMemberResponse extends js.Object { + var accountId: js.UndefOr[__string] + var arn: js.UndefOr[__string] + var email: js.UndefOr[__string] + var invitedAt: js.UndefOr[__timestampIso8601] + var masterAccountId: js.UndefOr[__string] + var relationshipStatus: js.UndefOr[RelationshipStatus] + var tags: js.UndefOr[TagMap] + var updatedAt: js.UndefOr[__timestampIso8601] + } + + object GetMemberResponse { + @inline + def apply( + accountId: js.UndefOr[__string] = js.undefined, + arn: js.UndefOr[__string] = js.undefined, + email: js.UndefOr[__string] = js.undefined, + invitedAt: js.UndefOr[__timestampIso8601] = js.undefined, + masterAccountId: js.UndefOr[__string] = js.undefined, + relationshipStatus: js.UndefOr[RelationshipStatus] = js.undefined, + tags: js.UndefOr[TagMap] = js.undefined, + updatedAt: js.UndefOr[__timestampIso8601] = js.undefined + ): GetMemberResponse = { + val __obj = js.Dynamic.literal() + accountId.foreach(__v => __obj.updateDynamic("accountId")(__v.asInstanceOf[js.Any])) + arn.foreach(__v => __obj.updateDynamic("arn")(__v.asInstanceOf[js.Any])) + email.foreach(__v => __obj.updateDynamic("email")(__v.asInstanceOf[js.Any])) + invitedAt.foreach(__v => __obj.updateDynamic("invitedAt")(__v.asInstanceOf[js.Any])) + masterAccountId.foreach(__v => __obj.updateDynamic("masterAccountId")(__v.asInstanceOf[js.Any])) + relationshipStatus.foreach(__v => __obj.updateDynamic("relationshipStatus")(__v.asInstanceOf[js.Any])) + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + updatedAt.foreach(__v => __obj.updateDynamic("updatedAt")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetMemberResponse] + } + } + + @js.native + trait GetUsageStatisticsRequest extends js.Object { + var filterBy: js.UndefOr[__listOfUsageStatisticsFilter] + var maxResults: js.UndefOr[__integer] + var nextToken: js.UndefOr[__string] + var sortBy: js.UndefOr[UsageStatisticsSortBy] + } + + object GetUsageStatisticsRequest { + @inline + def apply( + filterBy: js.UndefOr[__listOfUsageStatisticsFilter] = js.undefined, + maxResults: js.UndefOr[__integer] = js.undefined, + nextToken: js.UndefOr[__string] = js.undefined, + sortBy: js.UndefOr[UsageStatisticsSortBy] = js.undefined + ): GetUsageStatisticsRequest = { + val __obj = js.Dynamic.literal() + filterBy.foreach(__v => __obj.updateDynamic("filterBy")(__v.asInstanceOf[js.Any])) + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + sortBy.foreach(__v => __obj.updateDynamic("sortBy")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetUsageStatisticsRequest] + } + } + + @js.native + trait GetUsageStatisticsResponse extends js.Object { + var nextToken: js.UndefOr[__string] + var records: js.UndefOr[__listOfUsageRecord] + } + + object GetUsageStatisticsResponse { + @inline + def apply( + nextToken: js.UndefOr[__string] = js.undefined, + records: js.UndefOr[__listOfUsageRecord] = js.undefined + ): GetUsageStatisticsResponse = { + val __obj = js.Dynamic.literal() + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + records.foreach(__v => __obj.updateDynamic("records")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetUsageStatisticsResponse] + } + } + + @js.native + trait GetUsageTotalsRequest extends js.Object {} + + object GetUsageTotalsRequest { + @inline + def apply( + ): GetUsageTotalsRequest = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[GetUsageTotalsRequest] + } + } + + @js.native + trait GetUsageTotalsResponse extends js.Object { + var usageTotals: js.UndefOr[__listOfUsageTotal] + } + + object GetUsageTotalsResponse { + @inline + def apply( + usageTotals: js.UndefOr[__listOfUsageTotal] = js.undefined + ): GetUsageTotalsResponse = { + val __obj = js.Dynamic.literal() + usageTotals.foreach(__v => __obj.updateDynamic("usageTotals")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetUsageTotalsResponse] + } + } + + @js.native + sealed trait GroupBy extends js.Any + object GroupBy extends js.Object { + val `resourcesAffected.s3Bucket.name` = "resourcesAffected.s3Bucket.name".asInstanceOf[GroupBy] + val `type` = "type".asInstanceOf[GroupBy] + val `classificationDetails.jobId` = "classificationDetails.jobId".asInstanceOf[GroupBy] + val `severity.description` = "severity.description".asInstanceOf[GroupBy] + + val values = js.Object.freeze( + js.Array(`resourcesAffected.s3Bucket.name`, `type`, `classificationDetails.jobId`, `severity.description`) + ) + } + + /** + * Provides a group of results for a query that retrieved information about findings. + */ + @js.native + trait GroupCount extends js.Object { + var count: js.UndefOr[__long] + var groupKey: js.UndefOr[__string] + } + + object GroupCount { + @inline + def apply( + count: js.UndefOr[__long] = js.undefined, + groupKey: js.UndefOr[__string] = js.undefined + ): GroupCount = { + val __obj = js.Dynamic.literal() + count.foreach(__v => __obj.updateDynamic("count")(__v.asInstanceOf[js.Any])) + groupKey.foreach(__v => __obj.updateDynamic("groupKey")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GroupCount] + } + } + + /** + * Reserved for future use. + */ + @js.native + trait IamUser extends js.Object { + var accountId: js.UndefOr[__string] + var arn: js.UndefOr[__string] + var principalId: js.UndefOr[__string] + var userName: js.UndefOr[__string] + } + + object IamUser { + @inline + def apply( + accountId: js.UndefOr[__string] = js.undefined, + arn: js.UndefOr[__string] = js.undefined, + principalId: js.UndefOr[__string] = js.undefined, + userName: js.UndefOr[__string] = js.undefined + ): IamUser = { + val __obj = js.Dynamic.literal() + accountId.foreach(__v => __obj.updateDynamic("accountId")(__v.asInstanceOf[js.Any])) + arn.foreach(__v => __obj.updateDynamic("arn")(__v.asInstanceOf[js.Any])) + principalId.foreach(__v => __obj.updateDynamic("principalId")(__v.asInstanceOf[js.Any])) + userName.foreach(__v => __obj.updateDynamic("userName")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[IamUser] + } + } + + /** + * Provides information about an Amazon Macie membership invitation that was received by an account. + */ + @js.native + trait Invitation extends js.Object { + var accountId: js.UndefOr[__string] + var invitationId: js.UndefOr[__string] + var invitedAt: js.UndefOr[__timestampIso8601] + var relationshipStatus: js.UndefOr[RelationshipStatus] + } + + object Invitation { + @inline + def apply( + accountId: js.UndefOr[__string] = js.undefined, + invitationId: js.UndefOr[__string] = js.undefined, + invitedAt: js.UndefOr[__timestampIso8601] = js.undefined, + relationshipStatus: js.UndefOr[RelationshipStatus] = js.undefined + ): Invitation = { + val __obj = js.Dynamic.literal() + accountId.foreach(__v => __obj.updateDynamic("accountId")(__v.asInstanceOf[js.Any])) + invitationId.foreach(__v => __obj.updateDynamic("invitationId")(__v.asInstanceOf[js.Any])) + invitedAt.foreach(__v => __obj.updateDynamic("invitedAt")(__v.asInstanceOf[js.Any])) + relationshipStatus.foreach(__v => __obj.updateDynamic("relationshipStatus")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[Invitation] + } + } + + /** + * The IP address of the device that the entity used to perform the action on the affected resource. This object also provides information such as the owner and geographical location for the IP address. + */ + @js.native + trait IpAddressDetails extends js.Object { + var ipAddressV4: js.UndefOr[__string] + var ipCity: js.UndefOr[IpCity] + var ipCountry: js.UndefOr[IpCountry] + var ipGeoLocation: js.UndefOr[IpGeoLocation] + var ipOwner: js.UndefOr[IpOwner] + } + + object IpAddressDetails { + @inline + def apply( + ipAddressV4: js.UndefOr[__string] = js.undefined, + ipCity: js.UndefOr[IpCity] = js.undefined, + ipCountry: js.UndefOr[IpCountry] = js.undefined, + ipGeoLocation: js.UndefOr[IpGeoLocation] = js.undefined, + ipOwner: js.UndefOr[IpOwner] = js.undefined + ): IpAddressDetails = { + val __obj = js.Dynamic.literal() + ipAddressV4.foreach(__v => __obj.updateDynamic("ipAddressV4")(__v.asInstanceOf[js.Any])) + ipCity.foreach(__v => __obj.updateDynamic("ipCity")(__v.asInstanceOf[js.Any])) + ipCountry.foreach(__v => __obj.updateDynamic("ipCountry")(__v.asInstanceOf[js.Any])) + ipGeoLocation.foreach(__v => __obj.updateDynamic("ipGeoLocation")(__v.asInstanceOf[js.Any])) + ipOwner.foreach(__v => __obj.updateDynamic("ipOwner")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[IpAddressDetails] + } + } + + /** + * Reserved for future use. + */ + @js.native + trait IpCity extends js.Object { + var name: js.UndefOr[__string] + } + + object IpCity { + @inline + def apply( + name: js.UndefOr[__string] = js.undefined + ): IpCity = { + val __obj = js.Dynamic.literal() + name.foreach(__v => __obj.updateDynamic("name")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[IpCity] + } + } + + /** + * Reserved for future use. + */ + @js.native + trait IpCountry extends js.Object { + var code: js.UndefOr[__string] + var name: js.UndefOr[__string] + } + + object IpCountry { + @inline + def apply( + code: js.UndefOr[__string] = js.undefined, + name: js.UndefOr[__string] = js.undefined + ): IpCountry = { + val __obj = js.Dynamic.literal() + code.foreach(__v => __obj.updateDynamic("code")(__v.asInstanceOf[js.Any])) + name.foreach(__v => __obj.updateDynamic("name")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[IpCountry] + } + } + + /** + * Reserved for future use. + */ + @js.native + trait IpGeoLocation extends js.Object { + var lat: js.UndefOr[__double] + var lon: js.UndefOr[__double] + } + + object IpGeoLocation { + @inline + def apply( + lat: js.UndefOr[__double] = js.undefined, + lon: js.UndefOr[__double] = js.undefined + ): IpGeoLocation = { + val __obj = js.Dynamic.literal() + lat.foreach(__v => __obj.updateDynamic("lat")(__v.asInstanceOf[js.Any])) + lon.foreach(__v => __obj.updateDynamic("lon")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[IpGeoLocation] + } + } + + /** + * Reserved for future use. + */ + @js.native + trait IpOwner extends js.Object { + var asn: js.UndefOr[__string] + var asnOrg: js.UndefOr[__string] + var isp: js.UndefOr[__string] + var org: js.UndefOr[__string] + } + + object IpOwner { + @inline + def apply( + asn: js.UndefOr[__string] = js.undefined, + asnOrg: js.UndefOr[__string] = js.undefined, + isp: js.UndefOr[__string] = js.undefined, + org: js.UndefOr[__string] = js.undefined + ): IpOwner = { + val __obj = js.Dynamic.literal() + asn.foreach(__v => __obj.updateDynamic("asn")(__v.asInstanceOf[js.Any])) + asnOrg.foreach(__v => __obj.updateDynamic("asnOrg")(__v.asInstanceOf[js.Any])) + isp.foreach(__v => __obj.updateDynamic("isp")(__v.asInstanceOf[js.Any])) + org.foreach(__v => __obj.updateDynamic("org")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[IpOwner] + } + } + + /** + * The operator to use in a condition. Valid values are: + */ + @js.native + sealed trait JobComparator extends js.Any + object JobComparator extends js.Object { + val EQ = "EQ".asInstanceOf[JobComparator] + val GT = "GT".asInstanceOf[JobComparator] + val GTE = "GTE".asInstanceOf[JobComparator] + val LT = "LT".asInstanceOf[JobComparator] + val LTE = "LTE".asInstanceOf[JobComparator] + val NE = "NE".asInstanceOf[JobComparator] + val CONTAINS = "CONTAINS".asInstanceOf[JobComparator] + + val values = js.Object.freeze(js.Array(EQ, GT, GTE, LT, LTE, NE, CONTAINS)) + } + + /** + * Specifies the recurrence pattern for running a classification job. + */ + @js.native + trait JobScheduleFrequency extends js.Object { + var dailySchedule: js.UndefOr[DailySchedule] + var monthlySchedule: js.UndefOr[MonthlySchedule] + var weeklySchedule: js.UndefOr[WeeklySchedule] + } + + object JobScheduleFrequency { + @inline + def apply( + dailySchedule: js.UndefOr[DailySchedule] = js.undefined, + monthlySchedule: js.UndefOr[MonthlySchedule] = js.undefined, + weeklySchedule: js.UndefOr[WeeklySchedule] = js.undefined + ): JobScheduleFrequency = { + val __obj = js.Dynamic.literal() + dailySchedule.foreach(__v => __obj.updateDynamic("dailySchedule")(__v.asInstanceOf[js.Any])) + monthlySchedule.foreach(__v => __obj.updateDynamic("monthlySchedule")(__v.asInstanceOf[js.Any])) + weeklySchedule.foreach(__v => __obj.updateDynamic("weeklySchedule")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[JobScheduleFrequency] + } + } + + /** + * Specifies one or more conditions that determine which objects a classification job analyzes. + */ + @js.native + trait JobScopeTerm extends js.Object { + var simpleScopeTerm: js.UndefOr[SimpleScopeTerm] + var tagScopeTerm: js.UndefOr[TagScopeTerm] + } + + object JobScopeTerm { + @inline + def apply( + simpleScopeTerm: js.UndefOr[SimpleScopeTerm] = js.undefined, + tagScopeTerm: js.UndefOr[TagScopeTerm] = js.undefined + ): JobScopeTerm = { + val __obj = js.Dynamic.literal() + simpleScopeTerm.foreach(__v => __obj.updateDynamic("simpleScopeTerm")(__v.asInstanceOf[js.Any])) + tagScopeTerm.foreach(__v => __obj.updateDynamic("tagScopeTerm")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[JobScopeTerm] + } + } + + /** + * Reserved for future use. + */ + @js.native + trait JobScopingBlock extends js.Object { + var and: js.UndefOr[__listOfJobScopeTerm] + } + + object JobScopingBlock { + @inline + def apply( + and: js.UndefOr[__listOfJobScopeTerm] = js.undefined + ): JobScopingBlock = { + val __obj = js.Dynamic.literal() + and.foreach(__v => __obj.updateDynamic("and")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[JobScopingBlock] + } + } + + /** + * The current status of a classification job. Valid values are: + */ + @js.native + sealed trait JobStatus extends js.Any + object JobStatus extends js.Object { + val RUNNING = "RUNNING".asInstanceOf[JobStatus] + val PAUSED = "PAUSED".asInstanceOf[JobStatus] + val CANCELLED = "CANCELLED".asInstanceOf[JobStatus] + val COMPLETE = "COMPLETE".asInstanceOf[JobStatus] + val IDLE = "IDLE".asInstanceOf[JobStatus] + + val values = js.Object.freeze(js.Array(RUNNING, PAUSED, CANCELLED, COMPLETE, IDLE)) + } + + /** + * Provides information about a classification job, including the current status of the job. + */ + @js.native + trait JobSummary extends js.Object { + var bucketDefinitions: js.UndefOr[__listOfS3BucketDefinitionForJob] + var createdAt: js.UndefOr[__timestampIso8601] + var jobId: js.UndefOr[__string] + var jobStatus: js.UndefOr[JobStatus] + var jobType: js.UndefOr[JobType] + var name: js.UndefOr[__string] + } + + object JobSummary { + @inline + def apply( + bucketDefinitions: js.UndefOr[__listOfS3BucketDefinitionForJob] = js.undefined, + createdAt: js.UndefOr[__timestampIso8601] = js.undefined, + jobId: js.UndefOr[__string] = js.undefined, + jobStatus: js.UndefOr[JobStatus] = js.undefined, + jobType: js.UndefOr[JobType] = js.undefined, + name: js.UndefOr[__string] = js.undefined + ): JobSummary = { + val __obj = js.Dynamic.literal() + bucketDefinitions.foreach(__v => __obj.updateDynamic("bucketDefinitions")(__v.asInstanceOf[js.Any])) + createdAt.foreach(__v => __obj.updateDynamic("createdAt")(__v.asInstanceOf[js.Any])) + jobId.foreach(__v => __obj.updateDynamic("jobId")(__v.asInstanceOf[js.Any])) + jobStatus.foreach(__v => __obj.updateDynamic("jobStatus")(__v.asInstanceOf[js.Any])) + jobType.foreach(__v => __obj.updateDynamic("jobType")(__v.asInstanceOf[js.Any])) + name.foreach(__v => __obj.updateDynamic("name")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[JobSummary] + } + } + + /** + * The schedule for running a classification job. Valid values are: + */ + @js.native + sealed trait JobType extends js.Any + object JobType extends js.Object { + val ONE_TIME = "ONE_TIME".asInstanceOf[JobType] + val SCHEDULED = "SCHEDULED".asInstanceOf[JobType] + + val values = js.Object.freeze(js.Array(ONE_TIME, SCHEDULED)) + } + + /** + * Provides information about the tags that are associated with an S3 bucket or object. Each tag consists of a required tag key and an associated tag value. + */ + @js.native + trait KeyValuePair extends js.Object { + var key: js.UndefOr[__string] + var value: js.UndefOr[__string] + } + + object KeyValuePair { + @inline + def apply( + key: js.UndefOr[__string] = js.undefined, + value: js.UndefOr[__string] = js.undefined + ): KeyValuePair = { + val __obj = js.Dynamic.literal() + key.foreach(__v => __obj.updateDynamic("key")(__v.asInstanceOf[js.Any])) + value.foreach(__v => __obj.updateDynamic("value")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[KeyValuePair] + } + } + + @js.native + trait ListClassificationJobsRequest extends js.Object { + var filterCriteria: js.UndefOr[ListJobsFilterCriteria] + var maxResults: js.UndefOr[__integer] + var nextToken: js.UndefOr[__string] + var sortCriteria: js.UndefOr[ListJobsSortCriteria] + } + + object ListClassificationJobsRequest { + @inline + def apply( + filterCriteria: js.UndefOr[ListJobsFilterCriteria] = js.undefined, + maxResults: js.UndefOr[__integer] = js.undefined, + nextToken: js.UndefOr[__string] = js.undefined, + sortCriteria: js.UndefOr[ListJobsSortCriteria] = js.undefined + ): ListClassificationJobsRequest = { + val __obj = js.Dynamic.literal() + filterCriteria.foreach(__v => __obj.updateDynamic("filterCriteria")(__v.asInstanceOf[js.Any])) + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + sortCriteria.foreach(__v => __obj.updateDynamic("sortCriteria")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListClassificationJobsRequest] + } + } + + @js.native + trait ListClassificationJobsResponse extends js.Object { + var items: js.UndefOr[__listOfJobSummary] + var nextToken: js.UndefOr[__string] + } + + object ListClassificationJobsResponse { + @inline + def apply( + items: js.UndefOr[__listOfJobSummary] = js.undefined, + nextToken: js.UndefOr[__string] = js.undefined + ): ListClassificationJobsResponse = { + val __obj = js.Dynamic.literal() + items.foreach(__v => __obj.updateDynamic("items")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListClassificationJobsResponse] + } + } + + @js.native + trait ListCustomDataIdentifiersRequest extends js.Object { + var maxResults: js.UndefOr[__integer] + var nextToken: js.UndefOr[__string] + } + + object ListCustomDataIdentifiersRequest { + @inline + def apply( + maxResults: js.UndefOr[__integer] = js.undefined, + nextToken: js.UndefOr[__string] = js.undefined + ): ListCustomDataIdentifiersRequest = { + val __obj = js.Dynamic.literal() + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListCustomDataIdentifiersRequest] + } + } + + @js.native + trait ListCustomDataIdentifiersResponse extends js.Object { + var items: js.UndefOr[__listOfCustomDataIdentifierSummary] + var nextToken: js.UndefOr[__string] + } + + object ListCustomDataIdentifiersResponse { + @inline + def apply( + items: js.UndefOr[__listOfCustomDataIdentifierSummary] = js.undefined, + nextToken: js.UndefOr[__string] = js.undefined + ): ListCustomDataIdentifiersResponse = { + val __obj = js.Dynamic.literal() + items.foreach(__v => __obj.updateDynamic("items")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListCustomDataIdentifiersResponse] + } + } + + @js.native + trait ListFindingsFiltersRequest extends js.Object { + var maxResults: js.UndefOr[MaxResults] + var nextToken: js.UndefOr[__string] + } + + object ListFindingsFiltersRequest { + @inline + def apply( + maxResults: js.UndefOr[MaxResults] = js.undefined, + nextToken: js.UndefOr[__string] = js.undefined + ): ListFindingsFiltersRequest = { + val __obj = js.Dynamic.literal() + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListFindingsFiltersRequest] + } + } + + @js.native + trait ListFindingsFiltersResponse extends js.Object { + var findingsFilterListItems: js.UndefOr[__listOfFindingsFilterListItem] + var nextToken: js.UndefOr[__string] + } + + object ListFindingsFiltersResponse { + @inline + def apply( + findingsFilterListItems: js.UndefOr[__listOfFindingsFilterListItem] = js.undefined, + nextToken: js.UndefOr[__string] = js.undefined + ): ListFindingsFiltersResponse = { + val __obj = js.Dynamic.literal() + findingsFilterListItems.foreach(__v => __obj.updateDynamic("findingsFilterListItems")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListFindingsFiltersResponse] + } + } + + @js.native + trait ListFindingsRequest extends js.Object { + var findingCriteria: js.UndefOr[FindingCriteria] + var maxResults: js.UndefOr[__integer] + var nextToken: js.UndefOr[__string] + var sortCriteria: js.UndefOr[SortCriteria] + } + + object ListFindingsRequest { + @inline + def apply( + findingCriteria: js.UndefOr[FindingCriteria] = js.undefined, + maxResults: js.UndefOr[__integer] = js.undefined, + nextToken: js.UndefOr[__string] = js.undefined, + sortCriteria: js.UndefOr[SortCriteria] = js.undefined + ): ListFindingsRequest = { + val __obj = js.Dynamic.literal() + findingCriteria.foreach(__v => __obj.updateDynamic("findingCriteria")(__v.asInstanceOf[js.Any])) + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + sortCriteria.foreach(__v => __obj.updateDynamic("sortCriteria")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListFindingsRequest] + } + } + + @js.native + trait ListFindingsResponse extends js.Object { + var findingIds: js.UndefOr[__listOf__string] + var nextToken: js.UndefOr[__string] + } + + object ListFindingsResponse { + @inline + def apply( + findingIds: js.UndefOr[__listOf__string] = js.undefined, + nextToken: js.UndefOr[__string] = js.undefined + ): ListFindingsResponse = { + val __obj = js.Dynamic.literal() + findingIds.foreach(__v => __obj.updateDynamic("findingIds")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListFindingsResponse] + } + } + + @js.native + trait ListInvitationsRequest extends js.Object { + var maxResults: js.UndefOr[MaxResults] + var nextToken: js.UndefOr[__string] + } + + object ListInvitationsRequest { + @inline + def apply( + maxResults: js.UndefOr[MaxResults] = js.undefined, + nextToken: js.UndefOr[__string] = js.undefined + ): ListInvitationsRequest = { + val __obj = js.Dynamic.literal() + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListInvitationsRequest] + } + } + + @js.native + trait ListInvitationsResponse extends js.Object { + var invitations: js.UndefOr[__listOfInvitation] + var nextToken: js.UndefOr[__string] + } + + object ListInvitationsResponse { + @inline + def apply( + invitations: js.UndefOr[__listOfInvitation] = js.undefined, + nextToken: js.UndefOr[__string] = js.undefined + ): ListInvitationsResponse = { + val __obj = js.Dynamic.literal() + invitations.foreach(__v => __obj.updateDynamic("invitations")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListInvitationsResponse] + } + } + + /** + * Specifies criteria for filtering the results of a request for information about classification jobs. + */ + @js.native + trait ListJobsFilterCriteria extends js.Object { + var excludes: js.UndefOr[__listOfListJobsFilterTerm] + var includes: js.UndefOr[__listOfListJobsFilterTerm] + } + + object ListJobsFilterCriteria { + @inline + def apply( + excludes: js.UndefOr[__listOfListJobsFilterTerm] = js.undefined, + includes: js.UndefOr[__listOfListJobsFilterTerm] = js.undefined + ): ListJobsFilterCriteria = { + val __obj = js.Dynamic.literal() + excludes.foreach(__v => __obj.updateDynamic("excludes")(__v.asInstanceOf[js.Any])) + includes.foreach(__v => __obj.updateDynamic("includes")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListJobsFilterCriteria] + } + } + + /** + * The property to use to filter the results. Valid values are: + */ + @js.native + sealed trait ListJobsFilterKey extends js.Any + object ListJobsFilterKey extends js.Object { + val jobType = "jobType".asInstanceOf[ListJobsFilterKey] + val jobStatus = "jobStatus".asInstanceOf[ListJobsFilterKey] + val createdAt = "createdAt".asInstanceOf[ListJobsFilterKey] + val name = "name".asInstanceOf[ListJobsFilterKey] + + val values = js.Object.freeze(js.Array(jobType, jobStatus, createdAt, name)) + } + + /** + * Specifies a condition that filters the results of a request for information about classification jobs. Each condition consists of a property, an operator, and one or more values. + */ + @js.native + trait ListJobsFilterTerm extends js.Object { + var comparator: js.UndefOr[JobComparator] + var key: js.UndefOr[ListJobsFilterKey] + var values: js.UndefOr[__listOf__string] + } + + object ListJobsFilterTerm { + @inline + def apply( + comparator: js.UndefOr[JobComparator] = js.undefined, + key: js.UndefOr[ListJobsFilterKey] = js.undefined, + values: js.UndefOr[__listOf__string] = js.undefined + ): ListJobsFilterTerm = { + val __obj = js.Dynamic.literal() + comparator.foreach(__v => __obj.updateDynamic("comparator")(__v.asInstanceOf[js.Any])) + key.foreach(__v => __obj.updateDynamic("key")(__v.asInstanceOf[js.Any])) + values.foreach(__v => __obj.updateDynamic("values")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListJobsFilterTerm] + } + } + + /** + * The property to sort the results by. Valid values are: + */ + @js.native + sealed trait ListJobsSortAttributeName extends js.Any + object ListJobsSortAttributeName extends js.Object { + val createdAt = "createdAt".asInstanceOf[ListJobsSortAttributeName] + val jobStatus = "jobStatus".asInstanceOf[ListJobsSortAttributeName] + val name = "name".asInstanceOf[ListJobsSortAttributeName] + val jobType = "jobType".asInstanceOf[ListJobsSortAttributeName] + + val values = js.Object.freeze(js.Array(createdAt, jobStatus, name, jobType)) + } + + /** + * Specifies criteria for sorting the results of a request for information about classification jobs. + */ + @js.native + trait ListJobsSortCriteria extends js.Object { + var attributeName: js.UndefOr[ListJobsSortAttributeName] + var orderBy: js.UndefOr[OrderBy] + } + + object ListJobsSortCriteria { + @inline + def apply( + attributeName: js.UndefOr[ListJobsSortAttributeName] = js.undefined, + orderBy: js.UndefOr[OrderBy] = js.undefined + ): ListJobsSortCriteria = { + val __obj = js.Dynamic.literal() + attributeName.foreach(__v => __obj.updateDynamic("attributeName")(__v.asInstanceOf[js.Any])) + orderBy.foreach(__v => __obj.updateDynamic("orderBy")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListJobsSortCriteria] + } + } + + @js.native + trait ListMembersRequest extends js.Object { + var maxResults: js.UndefOr[MaxResults] + var nextToken: js.UndefOr[__string] + var onlyAssociated: js.UndefOr[__string] + } + + object ListMembersRequest { + @inline + def apply( + maxResults: js.UndefOr[MaxResults] = js.undefined, + nextToken: js.UndefOr[__string] = js.undefined, + onlyAssociated: js.UndefOr[__string] = js.undefined + ): ListMembersRequest = { + val __obj = js.Dynamic.literal() + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + onlyAssociated.foreach(__v => __obj.updateDynamic("onlyAssociated")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListMembersRequest] + } + } + + @js.native + trait ListMembersResponse extends js.Object { + var members: js.UndefOr[__listOfMember] + var nextToken: js.UndefOr[__string] + } + + object ListMembersResponse { + @inline + def apply( + members: js.UndefOr[__listOfMember] = js.undefined, + nextToken: js.UndefOr[__string] = js.undefined + ): ListMembersResponse = { + val __obj = js.Dynamic.literal() + members.foreach(__v => __obj.updateDynamic("members")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListMembersResponse] + } + } + + @js.native + trait ListOrganizationAdminAccountsRequest extends js.Object { + var maxResults: js.UndefOr[MaxResults] + var nextToken: js.UndefOr[__string] + } + + object ListOrganizationAdminAccountsRequest { + @inline + def apply( + maxResults: js.UndefOr[MaxResults] = js.undefined, + nextToken: js.UndefOr[__string] = js.undefined + ): ListOrganizationAdminAccountsRequest = { + val __obj = js.Dynamic.literal() + maxResults.foreach(__v => __obj.updateDynamic("maxResults")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListOrganizationAdminAccountsRequest] + } + } + + @js.native + trait ListOrganizationAdminAccountsResponse extends js.Object { + var adminAccounts: js.UndefOr[__listOfAdminAccount] + var nextToken: js.UndefOr[__string] + } + + object ListOrganizationAdminAccountsResponse { + @inline + def apply( + adminAccounts: js.UndefOr[__listOfAdminAccount] = js.undefined, + nextToken: js.UndefOr[__string] = js.undefined + ): ListOrganizationAdminAccountsResponse = { + val __obj = js.Dynamic.literal() + adminAccounts.foreach(__v => __obj.updateDynamic("adminAccounts")(__v.asInstanceOf[js.Any])) + nextToken.foreach(__v => __obj.updateDynamic("nextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListOrganizationAdminAccountsResponse] + } + } + + @js.native + trait ListTagsForResourceRequest extends js.Object { + var resourceArn: __string + } + + object ListTagsForResourceRequest { + @inline + def apply( + resourceArn: __string + ): ListTagsForResourceRequest = { + val __obj = js.Dynamic.literal( + "resourceArn" -> resourceArn.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[ListTagsForResourceRequest] + } + } + + @js.native + trait ListTagsForResourceResponse extends js.Object { + var tags: js.UndefOr[TagMap] + } + + object ListTagsForResourceResponse { + @inline + def apply( + tags: js.UndefOr[TagMap] = js.undefined + ): ListTagsForResourceResponse = { + val __obj = js.Dynamic.literal() + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListTagsForResourceResponse] + } + } + + /** + * The status of an Amazon Macie account. Valid values are: + */ + @js.native + sealed trait MacieStatus extends js.Any + object MacieStatus extends js.Object { + val PAUSED = "PAUSED".asInstanceOf[MacieStatus] + val ENABLED = "ENABLED".asInstanceOf[MacieStatus] + + val values = js.Object.freeze(js.Array(PAUSED, ENABLED)) + } + + /** + * Provides information about an account that's associated with an Amazon Macie master account. + */ + @js.native + trait Member extends js.Object { + var accountId: js.UndefOr[__string] + var arn: js.UndefOr[__string] + var email: js.UndefOr[__string] + var invitedAt: js.UndefOr[__timestampIso8601] + var masterAccountId: js.UndefOr[__string] + var relationshipStatus: js.UndefOr[RelationshipStatus] + var tags: js.UndefOr[TagMap] + var updatedAt: js.UndefOr[__timestampIso8601] + } + + object Member { + @inline + def apply( + accountId: js.UndefOr[__string] = js.undefined, + arn: js.UndefOr[__string] = js.undefined, + email: js.UndefOr[__string] = js.undefined, + invitedAt: js.UndefOr[__timestampIso8601] = js.undefined, + masterAccountId: js.UndefOr[__string] = js.undefined, + relationshipStatus: js.UndefOr[RelationshipStatus] = js.undefined, + tags: js.UndefOr[TagMap] = js.undefined, + updatedAt: js.UndefOr[__timestampIso8601] = js.undefined + ): Member = { + val __obj = js.Dynamic.literal() + accountId.foreach(__v => __obj.updateDynamic("accountId")(__v.asInstanceOf[js.Any])) + arn.foreach(__v => __obj.updateDynamic("arn")(__v.asInstanceOf[js.Any])) + email.foreach(__v => __obj.updateDynamic("email")(__v.asInstanceOf[js.Any])) + invitedAt.foreach(__v => __obj.updateDynamic("invitedAt")(__v.asInstanceOf[js.Any])) + masterAccountId.foreach(__v => __obj.updateDynamic("masterAccountId")(__v.asInstanceOf[js.Any])) + relationshipStatus.foreach(__v => __obj.updateDynamic("relationshipStatus")(__v.asInstanceOf[js.Any])) + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + updatedAt.foreach(__v => __obj.updateDynamic("updatedAt")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[Member] + } + } + + /** + * Run the job once a month, on a specific day of the month. This value can be an integer from 1 through 30. + */ + @js.native + trait MonthlySchedule extends js.Object { + var dayOfMonth: js.UndefOr[__integer] + } + + object MonthlySchedule { + @inline + def apply( + dayOfMonth: js.UndefOr[__integer] = js.undefined + ): MonthlySchedule = { + val __obj = js.Dynamic.literal() + dayOfMonth.foreach(__v => __obj.updateDynamic("dayOfMonth")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[MonthlySchedule] + } + } + + /** + * The total number of objects that are in the bucket, grouped by server-side encryption type. This includes a grouping that reports the total number of objects that aren't encrypted. + */ + @js.native + trait ObjectCountByEncryptionType extends js.Object { + var customerManaged: js.UndefOr[__long] + var kmsManaged: js.UndefOr[__long] + var s3Managed: js.UndefOr[__long] + var unencrypted: js.UndefOr[__long] + } + + object ObjectCountByEncryptionType { + @inline + def apply( + customerManaged: js.UndefOr[__long] = js.undefined, + kmsManaged: js.UndefOr[__long] = js.undefined, + s3Managed: js.UndefOr[__long] = js.undefined, + unencrypted: js.UndefOr[__long] = js.undefined + ): ObjectCountByEncryptionType = { + val __obj = js.Dynamic.literal() + customerManaged.foreach(__v => __obj.updateDynamic("customerManaged")(__v.asInstanceOf[js.Any])) + kmsManaged.foreach(__v => __obj.updateDynamic("kmsManaged")(__v.asInstanceOf[js.Any])) + s3Managed.foreach(__v => __obj.updateDynamic("s3Managed")(__v.asInstanceOf[js.Any])) + unencrypted.foreach(__v => __obj.updateDynamic("unencrypted")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ObjectCountByEncryptionType] + } + } + + @js.native + sealed trait OrderBy extends js.Any + object OrderBy extends js.Object { + val ASC = "ASC".asInstanceOf[OrderBy] + val DESC = "DESC".asInstanceOf[OrderBy] + + val values = js.Object.freeze(js.Array(ASC, DESC)) + } + + /** + * Provides detailed information about a policy finding. + */ + @js.native + trait PolicyDetails extends js.Object { + var action: js.UndefOr[FindingAction] + var actor: js.UndefOr[FindingActor] + } + + object PolicyDetails { + @inline + def apply( + action: js.UndefOr[FindingAction] = js.undefined, + actor: js.UndefOr[FindingActor] = js.undefined + ): PolicyDetails = { + val __obj = js.Dynamic.literal() + action.foreach(__v => __obj.updateDynamic("action")(__v.asInstanceOf[js.Any])) + actor.foreach(__v => __obj.updateDynamic("actor")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[PolicyDetails] + } + } + + @js.native + trait PutClassificationExportConfigurationRequest extends js.Object { + var configuration: ClassificationExportConfiguration + } + + object PutClassificationExportConfigurationRequest { + @inline + def apply( + configuration: ClassificationExportConfiguration + ): PutClassificationExportConfigurationRequest = { + val __obj = js.Dynamic.literal( + "configuration" -> configuration.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[PutClassificationExportConfigurationRequest] + } + } + + @js.native + trait PutClassificationExportConfigurationResponse extends js.Object { + var configuration: js.UndefOr[ClassificationExportConfiguration] + } + + object PutClassificationExportConfigurationResponse { + @inline + def apply( + configuration: js.UndefOr[ClassificationExportConfiguration] = js.undefined + ): PutClassificationExportConfigurationResponse = { + val __obj = js.Dynamic.literal() + configuration.foreach(__v => __obj.updateDynamic("configuration")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[PutClassificationExportConfigurationResponse] + } + } + + /** + * The current status of the relationship between an account and an associated Amazon Macie master account (inviter account). Possible values are: + */ + @js.native + sealed trait RelationshipStatus extends js.Any + object RelationshipStatus extends js.Object { + val Enabled = "Enabled".asInstanceOf[RelationshipStatus] + val Paused = "Paused".asInstanceOf[RelationshipStatus] + val Invited = "Invited".asInstanceOf[RelationshipStatus] + val Created = "Created".asInstanceOf[RelationshipStatus] + val Removed = "Removed".asInstanceOf[RelationshipStatus] + val Resigned = "Resigned".asInstanceOf[RelationshipStatus] + val EmailVerificationInProgress = "EmailVerificationInProgress".asInstanceOf[RelationshipStatus] + val EmailVerificationFailed = "EmailVerificationFailed".asInstanceOf[RelationshipStatus] + + val values = js.Object.freeze( + js.Array( + Enabled, + Paused, + Invited, + Created, + Removed, + Resigned, + EmailVerificationInProgress, + EmailVerificationFailed + ) + ) + } + + /** + * Provides information about settings that define whether one or more objects in an S3 bucket are replicated to S3 buckets for other AWS accounts and, if so, which accounts. + */ + @js.native + trait ReplicationDetails extends js.Object { + var replicated: js.UndefOr[__boolean] + var replicatedExternally: js.UndefOr[__boolean] + var replicationAccounts: js.UndefOr[__listOf__string] + } + + object ReplicationDetails { + @inline + def apply( + replicated: js.UndefOr[__boolean] = js.undefined, + replicatedExternally: js.UndefOr[__boolean] = js.undefined, + replicationAccounts: js.UndefOr[__listOf__string] = js.undefined + ): ReplicationDetails = { + val __obj = js.Dynamic.literal() + replicated.foreach(__v => __obj.updateDynamic("replicated")(__v.asInstanceOf[js.Any])) + replicatedExternally.foreach(__v => __obj.updateDynamic("replicatedExternally")(__v.asInstanceOf[js.Any])) + replicationAccounts.foreach(__v => __obj.updateDynamic("replicationAccounts")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ReplicationDetails] + } + } + + /** + * Provides information about the resources that a finding applies to. + */ + @js.native + trait ResourcesAffected extends js.Object { + var s3Bucket: js.UndefOr[S3Bucket] + var s3Object: js.UndefOr[S3Object] + } + + object ResourcesAffected { + @inline + def apply( + s3Bucket: js.UndefOr[S3Bucket] = js.undefined, + s3Object: js.UndefOr[S3Object] = js.undefined + ): ResourcesAffected = { + val __obj = js.Dynamic.literal() + s3Bucket.foreach(__v => __obj.updateDynamic("s3Bucket")(__v.asInstanceOf[js.Any])) + s3Object.foreach(__v => __obj.updateDynamic("s3Object")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ResourcesAffected] + } + } + + /** + * Provides information about an S3 bucket that a finding applies to. + */ + @js.native + trait S3Bucket extends js.Object { + var arn: js.UndefOr[__string] + var createdAt: js.UndefOr[__timestampIso8601] + var defaultServerSideEncryption: js.UndefOr[ServerSideEncryption] + var name: js.UndefOr[__string] + var owner: js.UndefOr[S3BucketOwner] + var publicAccess: js.UndefOr[BucketPublicAccess] + var tags: js.UndefOr[KeyValuePairList] + } + + object S3Bucket { + @inline + def apply( + arn: js.UndefOr[__string] = js.undefined, + createdAt: js.UndefOr[__timestampIso8601] = js.undefined, + defaultServerSideEncryption: js.UndefOr[ServerSideEncryption] = js.undefined, + name: js.UndefOr[__string] = js.undefined, + owner: js.UndefOr[S3BucketOwner] = js.undefined, + publicAccess: js.UndefOr[BucketPublicAccess] = js.undefined, + tags: js.UndefOr[KeyValuePairList] = js.undefined + ): S3Bucket = { + val __obj = js.Dynamic.literal() + arn.foreach(__v => __obj.updateDynamic("arn")(__v.asInstanceOf[js.Any])) + createdAt.foreach(__v => __obj.updateDynamic("createdAt")(__v.asInstanceOf[js.Any])) + defaultServerSideEncryption.foreach(__v => + __obj.updateDynamic("defaultServerSideEncryption")(__v.asInstanceOf[js.Any]) + ) + name.foreach(__v => __obj.updateDynamic("name")(__v.asInstanceOf[js.Any])) + owner.foreach(__v => __obj.updateDynamic("owner")(__v.asInstanceOf[js.Any])) + publicAccess.foreach(__v => __obj.updateDynamic("publicAccess")(__v.asInstanceOf[js.Any])) + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[S3Bucket] + } + } + + /** + * Specifies which S3 buckets contain the objects that a classification job analyzes. + */ + @js.native + trait S3BucketDefinitionForJob extends js.Object { + var accountId: js.UndefOr[__string] + var buckets: js.UndefOr[__listOf__string] + } + + object S3BucketDefinitionForJob { + @inline + def apply( + accountId: js.UndefOr[__string] = js.undefined, + buckets: js.UndefOr[__listOf__string] = js.undefined + ): S3BucketDefinitionForJob = { + val __obj = js.Dynamic.literal() + accountId.foreach(__v => __obj.updateDynamic("accountId")(__v.asInstanceOf[js.Any])) + buckets.foreach(__v => __obj.updateDynamic("buckets")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[S3BucketDefinitionForJob] + } + } + + /** + * Provides information about the user who owns an S3 bucket. + */ + @js.native + trait S3BucketOwner extends js.Object { + var displayName: js.UndefOr[__string] + var id: js.UndefOr[__string] + } + + object S3BucketOwner { + @inline + def apply( + displayName: js.UndefOr[__string] = js.undefined, + id: js.UndefOr[__string] = js.undefined + ): S3BucketOwner = { + val __obj = js.Dynamic.literal() + displayName.foreach(__v => __obj.updateDynamic("displayName")(__v.asInstanceOf[js.Any])) + id.foreach(__v => __obj.updateDynamic("id")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[S3BucketOwner] + } + } + + /** + * Specifies an S3 bucket to store data classification results in, and the encryption settings to use when storing results in that bucket. + */ + @js.native + trait S3Destination extends js.Object { + var bucketName: __string + var kmsKeyArn: __string + var keyPrefix: js.UndefOr[__string] + } + + object S3Destination { + @inline + def apply( + bucketName: __string, + kmsKeyArn: __string, + keyPrefix: js.UndefOr[__string] = js.undefined + ): S3Destination = { + val __obj = js.Dynamic.literal( + "bucketName" -> bucketName.asInstanceOf[js.Any], + "kmsKeyArn" -> kmsKeyArn.asInstanceOf[js.Any] + ) + + keyPrefix.foreach(__v => __obj.updateDynamic("keyPrefix")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[S3Destination] + } + } + + /** + * Specifies which S3 buckets contain the objects that a classification job analyzes, and the scope of that analysis. + */ + @js.native + trait S3JobDefinition extends js.Object { + var bucketDefinitions: js.UndefOr[__listOfS3BucketDefinitionForJob] + var scoping: js.UndefOr[Scoping] + } + + object S3JobDefinition { + @inline + def apply( + bucketDefinitions: js.UndefOr[__listOfS3BucketDefinitionForJob] = js.undefined, + scoping: js.UndefOr[Scoping] = js.undefined + ): S3JobDefinition = { + val __obj = js.Dynamic.literal() + bucketDefinitions.foreach(__v => __obj.updateDynamic("bucketDefinitions")(__v.asInstanceOf[js.Any])) + scoping.foreach(__v => __obj.updateDynamic("scoping")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[S3JobDefinition] + } + } + + /** + * Provides information about an S3 object that a finding applies to. + */ + @js.native + trait S3Object extends js.Object { + var bucketArn: js.UndefOr[__string] + var eTag: js.UndefOr[__string] + var extension: js.UndefOr[__string] + var key: js.UndefOr[__string] + var lastModified: js.UndefOr[__timestampIso8601] + var path: js.UndefOr[__string] + var publicAccess: js.UndefOr[__boolean] + var serverSideEncryption: js.UndefOr[ServerSideEncryption] + var size: js.UndefOr[__long] + var storageClass: js.UndefOr[StorageClass] + var tags: js.UndefOr[KeyValuePairList] + var versionId: js.UndefOr[__string] + } + + object S3Object { + @inline + def apply( + bucketArn: js.UndefOr[__string] = js.undefined, + eTag: js.UndefOr[__string] = js.undefined, + extension: js.UndefOr[__string] = js.undefined, + key: js.UndefOr[__string] = js.undefined, + lastModified: js.UndefOr[__timestampIso8601] = js.undefined, + path: js.UndefOr[__string] = js.undefined, + publicAccess: js.UndefOr[__boolean] = js.undefined, + serverSideEncryption: js.UndefOr[ServerSideEncryption] = js.undefined, + size: js.UndefOr[__long] = js.undefined, + storageClass: js.UndefOr[StorageClass] = js.undefined, + tags: js.UndefOr[KeyValuePairList] = js.undefined, + versionId: js.UndefOr[__string] = js.undefined + ): S3Object = { + val __obj = js.Dynamic.literal() + bucketArn.foreach(__v => __obj.updateDynamic("bucketArn")(__v.asInstanceOf[js.Any])) + eTag.foreach(__v => __obj.updateDynamic("eTag")(__v.asInstanceOf[js.Any])) + extension.foreach(__v => __obj.updateDynamic("extension")(__v.asInstanceOf[js.Any])) + key.foreach(__v => __obj.updateDynamic("key")(__v.asInstanceOf[js.Any])) + lastModified.foreach(__v => __obj.updateDynamic("lastModified")(__v.asInstanceOf[js.Any])) + path.foreach(__v => __obj.updateDynamic("path")(__v.asInstanceOf[js.Any])) + publicAccess.foreach(__v => __obj.updateDynamic("publicAccess")(__v.asInstanceOf[js.Any])) + serverSideEncryption.foreach(__v => __obj.updateDynamic("serverSideEncryption")(__v.asInstanceOf[js.Any])) + size.foreach(__v => __obj.updateDynamic("size")(__v.asInstanceOf[js.Any])) + storageClass.foreach(__v => __obj.updateDynamic("storageClass")(__v.asInstanceOf[js.Any])) + tags.foreach(__v => __obj.updateDynamic("tags")(__v.asInstanceOf[js.Any])) + versionId.foreach(__v => __obj.updateDynamic("versionId")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[S3Object] + } + } + + /** + * The property to use in a condition that determines which objects are analyzed by a classification job. Valid values are: + */ + @js.native + sealed trait ScopeFilterKey extends js.Any + object ScopeFilterKey extends js.Object { + val BUCKET_CREATION_DATE = "BUCKET_CREATION_DATE".asInstanceOf[ScopeFilterKey] + val OBJECT_EXTENSION = "OBJECT_EXTENSION".asInstanceOf[ScopeFilterKey] + val OBJECT_LAST_MODIFIED_DATE = "OBJECT_LAST_MODIFIED_DATE".asInstanceOf[ScopeFilterKey] + val OBJECT_SIZE = "OBJECT_SIZE".asInstanceOf[ScopeFilterKey] + val TAG = "TAG".asInstanceOf[ScopeFilterKey] + + val values = + js.Object.freeze(js.Array(BUCKET_CREATION_DATE, OBJECT_EXTENSION, OBJECT_LAST_MODIFIED_DATE, OBJECT_SIZE, TAG)) + } + + /** + * An object that specifies conditions for including or excluding objects from the job. + */ + @js.native + trait Scoping extends js.Object { + var excludes: js.UndefOr[JobScopingBlock] + var includes: js.UndefOr[JobScopingBlock] + } + + object Scoping { + @inline + def apply( + excludes: js.UndefOr[JobScopingBlock] = js.undefined, + includes: js.UndefOr[JobScopingBlock] = js.undefined + ): Scoping = { + val __obj = js.Dynamic.literal() + excludes.foreach(__v => __obj.updateDynamic("excludes")(__v.asInstanceOf[js.Any])) + includes.foreach(__v => __obj.updateDynamic("includes")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[Scoping] + } + } + + /** + * Provides information about the category, type, and number of occurrences of sensitive data that produced a finding. + */ + @js.native + trait SensitiveDataItem extends js.Object { + var category: js.UndefOr[SensitiveDataItemCategory] + var detections: js.UndefOr[DefaultDetections] + var totalCount: js.UndefOr[__long] + } + + object SensitiveDataItem { + @inline + def apply( + category: js.UndefOr[SensitiveDataItemCategory] = js.undefined, + detections: js.UndefOr[DefaultDetections] = js.undefined, + totalCount: js.UndefOr[__long] = js.undefined + ): SensitiveDataItem = { + val __obj = js.Dynamic.literal() + category.foreach(__v => __obj.updateDynamic("category")(__v.asInstanceOf[js.Any])) + detections.foreach(__v => __obj.updateDynamic("detections")(__v.asInstanceOf[js.Any])) + totalCount.foreach(__v => __obj.updateDynamic("totalCount")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[SensitiveDataItem] + } + } + + /** + * The category of sensitive data that was detected and produced the finding. + */ + @js.native + sealed trait SensitiveDataItemCategory extends js.Any + object SensitiveDataItemCategory extends js.Object { + val FINANCIAL_INFORMATION = "FINANCIAL_INFORMATION".asInstanceOf[SensitiveDataItemCategory] + val PERSONAL_INFORMATION = "PERSONAL_INFORMATION".asInstanceOf[SensitiveDataItemCategory] + val CREDENTIALS = "CREDENTIALS".asInstanceOf[SensitiveDataItemCategory] + val CUSTOM_IDENTIFIER = "CUSTOM_IDENTIFIER".asInstanceOf[SensitiveDataItemCategory] + + val values = js.Object.freeze(js.Array(FINANCIAL_INFORMATION, PERSONAL_INFORMATION, CREDENTIALS, CUSTOM_IDENTIFIER)) + } + + /** + * Provides information about the server-side encryption settings for an S3 bucket or object. + */ + @js.native + trait ServerSideEncryption extends js.Object { + var encryptionType: js.UndefOr[EncryptionType] + var kmsMasterKeyId: js.UndefOr[__string] + } + + object ServerSideEncryption { + @inline + def apply( + encryptionType: js.UndefOr[EncryptionType] = js.undefined, + kmsMasterKeyId: js.UndefOr[__string] = js.undefined + ): ServerSideEncryption = { + val __obj = js.Dynamic.literal() + encryptionType.foreach(__v => __obj.updateDynamic("encryptionType")(__v.asInstanceOf[js.Any])) + kmsMasterKeyId.foreach(__v => __obj.updateDynamic("kmsMasterKeyId")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ServerSideEncryption] + } + } + + /** + * Specifies a current quota for an account. + */ + @js.native + trait ServiceLimit extends js.Object { + var isServiceLimited: js.UndefOr[__boolean] + var unit: js.UndefOr[Unit] + var value: js.UndefOr[__long] + } + + object ServiceLimit { + @inline + def apply( + isServiceLimited: js.UndefOr[__boolean] = js.undefined, + unit: js.UndefOr[Unit] = js.undefined, + value: js.UndefOr[__long] = js.undefined + ): ServiceLimit = { + val __obj = js.Dynamic.literal() + isServiceLimited.foreach(__v => __obj.updateDynamic("isServiceLimited")(__v.asInstanceOf[js.Any])) + unit.foreach(__v => __obj.updateDynamic("unit")(__v.asInstanceOf[js.Any])) + value.foreach(__v => __obj.updateDynamic("value")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ServiceLimit] + } + } + + /** + * Provides information about a session that was created for an entity that performed an action by using temporary security credentials. + */ + @js.native + trait SessionContext extends js.Object { + var attributes: js.UndefOr[SessionContextAttributes] + var sessionIssuer: js.UndefOr[SessionIssuer] + } + + object SessionContext { + @inline + def apply( + attributes: js.UndefOr[SessionContextAttributes] = js.undefined, + sessionIssuer: js.UndefOr[SessionIssuer] = js.undefined + ): SessionContext = { + val __obj = js.Dynamic.literal() + attributes.foreach(__v => __obj.updateDynamic("attributes")(__v.asInstanceOf[js.Any])) + sessionIssuer.foreach(__v => __obj.updateDynamic("sessionIssuer")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[SessionContext] + } + } + + /** + * Provides information about the context in which temporary security credentials were issued to an entity. + */ + @js.native + trait SessionContextAttributes extends js.Object { + var creationDate: js.UndefOr[__timestampIso8601] + var mfaAuthenticated: js.UndefOr[__boolean] + } + + object SessionContextAttributes { + @inline + def apply( + creationDate: js.UndefOr[__timestampIso8601] = js.undefined, + mfaAuthenticated: js.UndefOr[__boolean] = js.undefined + ): SessionContextAttributes = { + val __obj = js.Dynamic.literal() + creationDate.foreach(__v => __obj.updateDynamic("creationDate")(__v.asInstanceOf[js.Any])) + mfaAuthenticated.foreach(__v => __obj.updateDynamic("mfaAuthenticated")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[SessionContextAttributes] + } + } + + /** + * Provides information about the source and type of temporary security credentials that were issued to an entity. + */ + @js.native + trait SessionIssuer extends js.Object { + var accountId: js.UndefOr[__string] + var arn: js.UndefOr[__string] + var principalId: js.UndefOr[__string] + var `type`: js.UndefOr[__string] + var userName: js.UndefOr[__string] + } + + object SessionIssuer { + @inline + def apply( + accountId: js.UndefOr[__string] = js.undefined, + arn: js.UndefOr[__string] = js.undefined, + principalId: js.UndefOr[__string] = js.undefined, + `type`: js.UndefOr[__string] = js.undefined, + userName: js.UndefOr[__string] = js.undefined + ): SessionIssuer = { + val __obj = js.Dynamic.literal() + accountId.foreach(__v => __obj.updateDynamic("accountId")(__v.asInstanceOf[js.Any])) + arn.foreach(__v => __obj.updateDynamic("arn")(__v.asInstanceOf[js.Any])) + principalId.foreach(__v => __obj.updateDynamic("principalId")(__v.asInstanceOf[js.Any])) + `type`.foreach(__v => __obj.updateDynamic("type")(__v.asInstanceOf[js.Any])) + userName.foreach(__v => __obj.updateDynamic("userName")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[SessionIssuer] + } + } + + /** + * Provides the numeric score and textual representation of a severity value. + */ + @js.native + trait Severity extends js.Object { + var description: js.UndefOr[SeverityDescription] + var score: js.UndefOr[__long] + } + + object Severity { + @inline + def apply( + description: js.UndefOr[SeverityDescription] = js.undefined, + score: js.UndefOr[__long] = js.undefined + ): Severity = { + val __obj = js.Dynamic.literal() + description.foreach(__v => __obj.updateDynamic("description")(__v.asInstanceOf[js.Any])) + score.foreach(__v => __obj.updateDynamic("score")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[Severity] + } + } + + /** + * The textual representation of the finding's severity. Valid values are: + */ + @js.native + sealed trait SeverityDescription extends js.Any + object SeverityDescription extends js.Object { + val Low = "Low".asInstanceOf[SeverityDescription] + val Medium = "Medium".asInstanceOf[SeverityDescription] + val High = "High".asInstanceOf[SeverityDescription] + + val values = js.Object.freeze(js.Array(Low, Medium, High)) + } + + @js.native + sealed trait SharedAccess extends js.Any + object SharedAccess extends js.Object { + val EXTERNAL = "EXTERNAL".asInstanceOf[SharedAccess] + val INTERNAL = "INTERNAL".asInstanceOf[SharedAccess] + val NOT_SHARED = "NOT_SHARED".asInstanceOf[SharedAccess] + + val values = js.Object.freeze(js.Array(EXTERNAL, INTERNAL, NOT_SHARED)) + } + + /** + * Specifies a property-based condition that determines whether an object is included or excluded from a classification job. + */ + @js.native + trait SimpleScopeTerm extends js.Object { + var comparator: js.UndefOr[JobComparator] + var key: js.UndefOr[ScopeFilterKey] + var values: js.UndefOr[__listOf__string] + } + + object SimpleScopeTerm { + @inline + def apply( + comparator: js.UndefOr[JobComparator] = js.undefined, + key: js.UndefOr[ScopeFilterKey] = js.undefined, + values: js.UndefOr[__listOf__string] = js.undefined + ): SimpleScopeTerm = { + val __obj = js.Dynamic.literal() + comparator.foreach(__v => __obj.updateDynamic("comparator")(__v.asInstanceOf[js.Any])) + key.foreach(__v => __obj.updateDynamic("key")(__v.asInstanceOf[js.Any])) + values.foreach(__v => __obj.updateDynamic("values")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[SimpleScopeTerm] + } + } + + /** + * Specifies criteria for sorting the results of a request for information about findings. + */ + @js.native + trait SortCriteria extends js.Object { + var attributeName: js.UndefOr[__string] + var orderBy: js.UndefOr[OrderBy] + } + + object SortCriteria { + @inline + def apply( + attributeName: js.UndefOr[__string] = js.undefined, + orderBy: js.UndefOr[OrderBy] = js.undefined + ): SortCriteria = { + val __obj = js.Dynamic.literal() + attributeName.foreach(__v => __obj.updateDynamic("attributeName")(__v.asInstanceOf[js.Any])) + orderBy.foreach(__v => __obj.updateDynamic("orderBy")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[SortCriteria] + } + } + + /** + * Provides processing statistics for a classification job. + */ + @js.native + trait Statistics extends js.Object { + var approximateNumberOfObjectsToProcess: js.UndefOr[__double] + var numberOfRuns: js.UndefOr[__double] + } + + object Statistics { + @inline + def apply( + approximateNumberOfObjectsToProcess: js.UndefOr[__double] = js.undefined, + numberOfRuns: js.UndefOr[__double] = js.undefined + ): Statistics = { + val __obj = js.Dynamic.literal() + approximateNumberOfObjectsToProcess.foreach(__v => + __obj.updateDynamic("approximateNumberOfObjectsToProcess")(__v.asInstanceOf[js.Any]) + ) + numberOfRuns.foreach(__v => __obj.updateDynamic("numberOfRuns")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[Statistics] + } + } + + /** + * The storage class of the S3 bucket or object. Valid values are: + */ + @js.native + sealed trait StorageClass extends js.Any + object StorageClass extends js.Object { + val STANDARD = "STANDARD".asInstanceOf[StorageClass] + val REDUCED_REDUNDANCY = "REDUCED_REDUNDANCY".asInstanceOf[StorageClass] + val STANDARD_IA = "STANDARD_IA".asInstanceOf[StorageClass] + val INTELLIGENT_TIERING = "INTELLIGENT_TIERING".asInstanceOf[StorageClass] + val DEEP_ARCHIVE = "DEEP_ARCHIVE".asInstanceOf[StorageClass] + val ONEZONE_IA = "ONEZONE_IA".asInstanceOf[StorageClass] + val GLACIER = "GLACIER".asInstanceOf[StorageClass] + + val values = js.Object.freeze( + js.Array(STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, ONEZONE_IA, GLACIER) + ) + } + + @js.native + trait TagResourceRequest extends js.Object { + var resourceArn: __string + var tags: TagMap + } + + object TagResourceRequest { + @inline + def apply( + resourceArn: __string, + tags: TagMap + ): TagResourceRequest = { + val __obj = js.Dynamic.literal( + "resourceArn" -> resourceArn.asInstanceOf[js.Any], + "tags" -> tags.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[TagResourceRequest] + } + } + + @js.native + trait TagResourceResponse extends js.Object {} + + object TagResourceResponse { + @inline + def apply( + ): TagResourceResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[TagResourceResponse] + } + } + + /** + * Specifies a tag-based condition that determines whether an object is included or excluded from a classification job. + */ + @js.native + trait TagScopeTerm extends js.Object { + var comparator: js.UndefOr[JobComparator] + var key: js.UndefOr[__string] + var tagValues: js.UndefOr[__listOfTagValuePair] + var target: js.UndefOr[TagTarget] + } + + object TagScopeTerm { + @inline + def apply( + comparator: js.UndefOr[JobComparator] = js.undefined, + key: js.UndefOr[__string] = js.undefined, + tagValues: js.UndefOr[__listOfTagValuePair] = js.undefined, + target: js.UndefOr[TagTarget] = js.undefined + ): TagScopeTerm = { + val __obj = js.Dynamic.literal() + comparator.foreach(__v => __obj.updateDynamic("comparator")(__v.asInstanceOf[js.Any])) + key.foreach(__v => __obj.updateDynamic("key")(__v.asInstanceOf[js.Any])) + tagValues.foreach(__v => __obj.updateDynamic("tagValues")(__v.asInstanceOf[js.Any])) + target.foreach(__v => __obj.updateDynamic("target")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[TagScopeTerm] + } + } + + /** + * The type of object to apply a tag-based condition to. Valid values are: + */ + @js.native + sealed trait TagTarget extends js.Any + object TagTarget extends js.Object { + val S3_OBJECT = "S3_OBJECT".asInstanceOf[TagTarget] + + val values = js.Object.freeze(js.Array(S3_OBJECT)) + } + + /** + * Specifies a tag key and value, as a pair, to use in a tag-based condition for a classification job. + */ + @js.native + trait TagValuePair extends js.Object { + var key: js.UndefOr[__string] + var value: js.UndefOr[__string] + } + + object TagValuePair { + @inline + def apply( + key: js.UndefOr[__string] = js.undefined, + value: js.UndefOr[__string] = js.undefined + ): TagValuePair = { + val __obj = js.Dynamic.literal() + key.foreach(__v => __obj.updateDynamic("key")(__v.asInstanceOf[js.Any])) + value.foreach(__v => __obj.updateDynamic("value")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[TagValuePair] + } + } + + @js.native + trait TestCustomDataIdentifierRequest extends js.Object { + var regex: __string + var sampleText: __string + var ignoreWords: js.UndefOr[__listOf__string] + var keywords: js.UndefOr[__listOf__string] + var maximumMatchDistance: js.UndefOr[__integer] + } + + object TestCustomDataIdentifierRequest { + @inline + def apply( + regex: __string, + sampleText: __string, + ignoreWords: js.UndefOr[__listOf__string] = js.undefined, + keywords: js.UndefOr[__listOf__string] = js.undefined, + maximumMatchDistance: js.UndefOr[__integer] = js.undefined + ): TestCustomDataIdentifierRequest = { + val __obj = js.Dynamic.literal( + "regex" -> regex.asInstanceOf[js.Any], + "sampleText" -> sampleText.asInstanceOf[js.Any] + ) + + ignoreWords.foreach(__v => __obj.updateDynamic("ignoreWords")(__v.asInstanceOf[js.Any])) + keywords.foreach(__v => __obj.updateDynamic("keywords")(__v.asInstanceOf[js.Any])) + maximumMatchDistance.foreach(__v => __obj.updateDynamic("maximumMatchDistance")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[TestCustomDataIdentifierRequest] + } + } + + @js.native + trait TestCustomDataIdentifierResponse extends js.Object { + var matchCount: js.UndefOr[__integer] + } + + object TestCustomDataIdentifierResponse { + @inline + def apply( + matchCount: js.UndefOr[__integer] = js.undefined + ): TestCustomDataIdentifierResponse = { + val __obj = js.Dynamic.literal() + matchCount.foreach(__v => __obj.updateDynamic("matchCount")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[TestCustomDataIdentifierResponse] + } + } + + @js.native + sealed trait Unit extends js.Any + object Unit extends js.Object { + val TERABYTES = "TERABYTES".asInstanceOf[Unit] + + val values = js.Object.freeze(js.Array(TERABYTES)) + } + + /** + * Provides information about an account-related request that hasn't been processed. + */ + @js.native + trait UnprocessedAccount extends js.Object { + var accountId: js.UndefOr[__string] + var errorCode: js.UndefOr[ErrorCode] + var errorMessage: js.UndefOr[__string] + } + + object UnprocessedAccount { + @inline + def apply( + accountId: js.UndefOr[__string] = js.undefined, + errorCode: js.UndefOr[ErrorCode] = js.undefined, + errorMessage: js.UndefOr[__string] = js.undefined + ): UnprocessedAccount = { + val __obj = js.Dynamic.literal() + accountId.foreach(__v => __obj.updateDynamic("accountId")(__v.asInstanceOf[js.Any])) + errorCode.foreach(__v => __obj.updateDynamic("errorCode")(__v.asInstanceOf[js.Any])) + errorMessage.foreach(__v => __obj.updateDynamic("errorMessage")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[UnprocessedAccount] + } + } + + @js.native + trait UntagResourceRequest extends js.Object { + var resourceArn: __string + var tagKeys: __listOf__string + } + + object UntagResourceRequest { + @inline + def apply( + resourceArn: __string, + tagKeys: __listOf__string + ): UntagResourceRequest = { + val __obj = js.Dynamic.literal( + "resourceArn" -> resourceArn.asInstanceOf[js.Any], + "tagKeys" -> tagKeys.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[UntagResourceRequest] + } + } + + @js.native + trait UntagResourceResponse extends js.Object {} + + object UntagResourceResponse { + @inline + def apply( + ): UntagResourceResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[UntagResourceResponse] + } + } + + @js.native + trait UpdateClassificationJobRequest extends js.Object { + var jobId: __string + var jobStatus: JobStatus + } + + object UpdateClassificationJobRequest { + @inline + def apply( + jobId: __string, + jobStatus: JobStatus + ): UpdateClassificationJobRequest = { + val __obj = js.Dynamic.literal( + "jobId" -> jobId.asInstanceOf[js.Any], + "jobStatus" -> jobStatus.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[UpdateClassificationJobRequest] + } + } + + @js.native + trait UpdateClassificationJobResponse extends js.Object {} + + object UpdateClassificationJobResponse { + @inline + def apply( + ): UpdateClassificationJobResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[UpdateClassificationJobResponse] + } + } + + @js.native + trait UpdateFindingsFilterRequest extends js.Object { + var id: __string + var action: js.UndefOr[FindingsFilterAction] + var description: js.UndefOr[__string] + var findingCriteria: js.UndefOr[FindingCriteria] + var name: js.UndefOr[__string] + var position: js.UndefOr[__integer] + } + + object UpdateFindingsFilterRequest { + @inline + def apply( + id: __string, + action: js.UndefOr[FindingsFilterAction] = js.undefined, + description: js.UndefOr[__string] = js.undefined, + findingCriteria: js.UndefOr[FindingCriteria] = js.undefined, + name: js.UndefOr[__string] = js.undefined, + position: js.UndefOr[__integer] = js.undefined + ): UpdateFindingsFilterRequest = { + val __obj = js.Dynamic.literal( + "id" -> id.asInstanceOf[js.Any] + ) + + action.foreach(__v => __obj.updateDynamic("action")(__v.asInstanceOf[js.Any])) + description.foreach(__v => __obj.updateDynamic("description")(__v.asInstanceOf[js.Any])) + findingCriteria.foreach(__v => __obj.updateDynamic("findingCriteria")(__v.asInstanceOf[js.Any])) + name.foreach(__v => __obj.updateDynamic("name")(__v.asInstanceOf[js.Any])) + position.foreach(__v => __obj.updateDynamic("position")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[UpdateFindingsFilterRequest] + } + } + + @js.native + trait UpdateFindingsFilterResponse extends js.Object { + var arn: js.UndefOr[__string] + var id: js.UndefOr[__string] + } + + object UpdateFindingsFilterResponse { + @inline + def apply( + arn: js.UndefOr[__string] = js.undefined, + id: js.UndefOr[__string] = js.undefined + ): UpdateFindingsFilterResponse = { + val __obj = js.Dynamic.literal() + arn.foreach(__v => __obj.updateDynamic("arn")(__v.asInstanceOf[js.Any])) + id.foreach(__v => __obj.updateDynamic("id")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[UpdateFindingsFilterResponse] + } + } + + @js.native + trait UpdateMacieSessionRequest extends js.Object { + var findingPublishingFrequency: js.UndefOr[FindingPublishingFrequency] + var status: js.UndefOr[MacieStatus] + } + + object UpdateMacieSessionRequest { + @inline + def apply( + findingPublishingFrequency: js.UndefOr[FindingPublishingFrequency] = js.undefined, + status: js.UndefOr[MacieStatus] = js.undefined + ): UpdateMacieSessionRequest = { + val __obj = js.Dynamic.literal() + findingPublishingFrequency.foreach(__v => + __obj.updateDynamic("findingPublishingFrequency")(__v.asInstanceOf[js.Any]) + ) + status.foreach(__v => __obj.updateDynamic("status")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[UpdateMacieSessionRequest] + } + } + + @js.native + trait UpdateMacieSessionResponse extends js.Object {} + + object UpdateMacieSessionResponse { + @inline + def apply( + ): UpdateMacieSessionResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[UpdateMacieSessionResponse] + } + } + + @js.native + trait UpdateMemberSessionRequest extends js.Object { + var id: __string + var status: MacieStatus + } + + object UpdateMemberSessionRequest { + @inline + def apply( + id: __string, + status: MacieStatus + ): UpdateMemberSessionRequest = { + val __obj = js.Dynamic.literal( + "id" -> id.asInstanceOf[js.Any], + "status" -> status.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[UpdateMemberSessionRequest] + } + } + + @js.native + trait UpdateMemberSessionResponse extends js.Object {} + + object UpdateMemberSessionResponse { + @inline + def apply( + ): UpdateMemberSessionResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[UpdateMemberSessionResponse] + } + } + + @js.native + trait UpdateOrganizationConfigurationRequest extends js.Object { + var autoEnable: __boolean + } + + object UpdateOrganizationConfigurationRequest { + @inline + def apply( + autoEnable: __boolean + ): UpdateOrganizationConfigurationRequest = { + val __obj = js.Dynamic.literal( + "autoEnable" -> autoEnable.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[UpdateOrganizationConfigurationRequest] + } + } + + @js.native + trait UpdateOrganizationConfigurationResponse extends js.Object {} + + object UpdateOrganizationConfigurationResponse { + @inline + def apply( + ): UpdateOrganizationConfigurationResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[UpdateOrganizationConfigurationResponse] + } + } + + /** + * Provides data for a specific usage metric and the corresponding quota for an account. The value for the metric is an aggregated value that reports usage during the past 30 days. + */ + @js.native + trait UsageByAccount extends js.Object { + var currency: js.UndefOr[Currency] + var estimatedCost: js.UndefOr[__string] + var serviceLimit: js.UndefOr[ServiceLimit] + var `type`: js.UndefOr[UsageType] + } + + object UsageByAccount { + @inline + def apply( + currency: js.UndefOr[Currency] = js.undefined, + estimatedCost: js.UndefOr[__string] = js.undefined, + serviceLimit: js.UndefOr[ServiceLimit] = js.undefined, + `type`: js.UndefOr[UsageType] = js.undefined + ): UsageByAccount = { + val __obj = js.Dynamic.literal() + currency.foreach(__v => __obj.updateDynamic("currency")(__v.asInstanceOf[js.Any])) + estimatedCost.foreach(__v => __obj.updateDynamic("estimatedCost")(__v.asInstanceOf[js.Any])) + serviceLimit.foreach(__v => __obj.updateDynamic("serviceLimit")(__v.asInstanceOf[js.Any])) + `type`.foreach(__v => __obj.updateDynamic("type")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[UsageByAccount] + } + } + + /** + * Provides quota and aggregated usage data for an account. + */ + @js.native + trait UsageRecord extends js.Object { + var accountId: js.UndefOr[__string] + var freeTrialStartDate: js.UndefOr[__timestampIso8601] + var usage: js.UndefOr[__listOfUsageByAccount] + } + + object UsageRecord { + @inline + def apply( + accountId: js.UndefOr[__string] = js.undefined, + freeTrialStartDate: js.UndefOr[__timestampIso8601] = js.undefined, + usage: js.UndefOr[__listOfUsageByAccount] = js.undefined + ): UsageRecord = { + val __obj = js.Dynamic.literal() + accountId.foreach(__v => __obj.updateDynamic("accountId")(__v.asInstanceOf[js.Any])) + freeTrialStartDate.foreach(__v => __obj.updateDynamic("freeTrialStartDate")(__v.asInstanceOf[js.Any])) + usage.foreach(__v => __obj.updateDynamic("usage")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[UsageRecord] + } + } + + /** + * Specifies criteria for filtering the results of a query for account quotas and usage data. + */ + @js.native + trait UsageStatisticsFilter extends js.Object { + var key: js.UndefOr[UsageStatisticsFilterKey] + var values: js.UndefOr[__listOf__string] + } + + object UsageStatisticsFilter { + @inline + def apply( + key: js.UndefOr[UsageStatisticsFilterKey] = js.undefined, + values: js.UndefOr[__listOf__string] = js.undefined + ): UsageStatisticsFilter = { + val __obj = js.Dynamic.literal() + key.foreach(__v => __obj.updateDynamic("key")(__v.asInstanceOf[js.Any])) + values.foreach(__v => __obj.updateDynamic("values")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[UsageStatisticsFilter] + } + } + + /** + * The field to use to filter the results of a query for account quotas and usage data. + */ + @js.native + sealed trait UsageStatisticsFilterKey extends js.Any + object UsageStatisticsFilterKey extends js.Object { + val accountId = "accountId".asInstanceOf[UsageStatisticsFilterKey] + + val values = js.Object.freeze(js.Array(accountId)) + } + + /** + * Specifies criteria for sorting the results of a query for account quotas and usage data. + */ + @js.native + trait UsageStatisticsSortBy extends js.Object { + var key: js.UndefOr[UsageStatisticsSortKey] + var orderBy: js.UndefOr[OrderBy] + } + + object UsageStatisticsSortBy { + @inline + def apply( + key: js.UndefOr[UsageStatisticsSortKey] = js.undefined, + orderBy: js.UndefOr[OrderBy] = js.undefined + ): UsageStatisticsSortBy = { + val __obj = js.Dynamic.literal() + key.foreach(__v => __obj.updateDynamic("key")(__v.asInstanceOf[js.Any])) + orderBy.foreach(__v => __obj.updateDynamic("orderBy")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[UsageStatisticsSortBy] + } + } + + /** + * The field to use to sort the results of a query for account quotas and usage data. + */ + @js.native + sealed trait UsageStatisticsSortKey extends js.Any + object UsageStatisticsSortKey extends js.Object { + val accountId = "accountId".asInstanceOf[UsageStatisticsSortKey] + val total = "total".asInstanceOf[UsageStatisticsSortKey] + + val values = js.Object.freeze(js.Array(accountId, total)) + } + + /** + * Provides aggregated data for a usage metric. The value for the metric reports usage data for an account during the past 30 days. + */ + @js.native + trait UsageTotal extends js.Object { + var currency: js.UndefOr[Currency] + var estimatedCost: js.UndefOr[__string] + var `type`: js.UndefOr[UsageType] + } + + object UsageTotal { + @inline + def apply( + currency: js.UndefOr[Currency] = js.undefined, + estimatedCost: js.UndefOr[__string] = js.undefined, + `type`: js.UndefOr[UsageType] = js.undefined + ): UsageTotal = { + val __obj = js.Dynamic.literal() + currency.foreach(__v => __obj.updateDynamic("currency")(__v.asInstanceOf[js.Any])) + estimatedCost.foreach(__v => __obj.updateDynamic("estimatedCost")(__v.asInstanceOf[js.Any])) + `type`.foreach(__v => __obj.updateDynamic("type")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[UsageTotal] + } + } + + /** + * The name of a usage metric for an account. Possible values are: + */ + @js.native + sealed trait UsageType extends js.Any + object UsageType extends js.Object { + val DATA_INVENTORY_EVALUATION = "DATA_INVENTORY_EVALUATION".asInstanceOf[UsageType] + val SENSITIVE_DATA_DISCOVERY = "SENSITIVE_DATA_DISCOVERY".asInstanceOf[UsageType] + + val values = js.Object.freeze(js.Array(DATA_INVENTORY_EVALUATION, SENSITIVE_DATA_DISCOVERY)) + } + + /** + * The name and type of entity who performed the action on the affected resource. + */ + @js.native + trait UserIdentity extends js.Object { + var assumedRole: js.UndefOr[AssumedRole] + var awsAccount: js.UndefOr[AwsAccount] + var awsService: js.UndefOr[AwsService] + var federatedUser: js.UndefOr[FederatedUser] + var iamUser: js.UndefOr[IamUser] + var root: js.UndefOr[UserIdentityRoot] + var `type`: js.UndefOr[UserIdentityType] + } + + object UserIdentity { + @inline + def apply( + assumedRole: js.UndefOr[AssumedRole] = js.undefined, + awsAccount: js.UndefOr[AwsAccount] = js.undefined, + awsService: js.UndefOr[AwsService] = js.undefined, + federatedUser: js.UndefOr[FederatedUser] = js.undefined, + iamUser: js.UndefOr[IamUser] = js.undefined, + root: js.UndefOr[UserIdentityRoot] = js.undefined, + `type`: js.UndefOr[UserIdentityType] = js.undefined + ): UserIdentity = { + val __obj = js.Dynamic.literal() + assumedRole.foreach(__v => __obj.updateDynamic("assumedRole")(__v.asInstanceOf[js.Any])) + awsAccount.foreach(__v => __obj.updateDynamic("awsAccount")(__v.asInstanceOf[js.Any])) + awsService.foreach(__v => __obj.updateDynamic("awsService")(__v.asInstanceOf[js.Any])) + federatedUser.foreach(__v => __obj.updateDynamic("federatedUser")(__v.asInstanceOf[js.Any])) + iamUser.foreach(__v => __obj.updateDynamic("iamUser")(__v.asInstanceOf[js.Any])) + root.foreach(__v => __obj.updateDynamic("root")(__v.asInstanceOf[js.Any])) + `type`.foreach(__v => __obj.updateDynamic("type")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[UserIdentity] + } + } + + /** + * Reserved for future use. + */ + @js.native + trait UserIdentityRoot extends js.Object { + var accountId: js.UndefOr[__string] + var arn: js.UndefOr[__string] + var principalId: js.UndefOr[__string] + } + + object UserIdentityRoot { + @inline + def apply( + accountId: js.UndefOr[__string] = js.undefined, + arn: js.UndefOr[__string] = js.undefined, + principalId: js.UndefOr[__string] = js.undefined + ): UserIdentityRoot = { + val __obj = js.Dynamic.literal() + accountId.foreach(__v => __obj.updateDynamic("accountId")(__v.asInstanceOf[js.Any])) + arn.foreach(__v => __obj.updateDynamic("arn")(__v.asInstanceOf[js.Any])) + principalId.foreach(__v => __obj.updateDynamic("principalId")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[UserIdentityRoot] + } + } + + /** + * Reserved for future use. + */ + @js.native + sealed trait UserIdentityType extends js.Any + object UserIdentityType extends js.Object { + val AssumedRole = "AssumedRole".asInstanceOf[UserIdentityType] + val IAMUser = "IAMUser".asInstanceOf[UserIdentityType] + val FederatedUser = "FederatedUser".asInstanceOf[UserIdentityType] + val Root = "Root".asInstanceOf[UserIdentityType] + val AWSAccount = "AWSAccount".asInstanceOf[UserIdentityType] + val AWSService = "AWSService".asInstanceOf[UserIdentityType] + + val values = js.Object.freeze(js.Array(AssumedRole, IAMUser, FederatedUser, Root, AWSAccount, AWSService)) + } + + /** + * Reserved for future use. + */ + @js.native + trait WeeklySchedule extends js.Object { + var dayOfWeek: js.UndefOr[DayOfWeek] + } + + object WeeklySchedule { + @inline + def apply( + dayOfWeek: js.UndefOr[DayOfWeek] = js.undefined + ): WeeklySchedule = { + val __obj = js.Dynamic.literal() + dayOfWeek.foreach(__v => __obj.updateDynamic("dayOfWeek")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[WeeklySchedule] + } + } +} diff --git a/services/synthetics/src/main/scala/facade/amazonaws/services/Synthetics.scala b/services/synthetics/src/main/scala/facade/amazonaws/services/Synthetics.scala new file mode 100644 index 000000000..d3f800df1 --- /dev/null +++ b/services/synthetics/src/main/scala/facade/amazonaws/services/Synthetics.scala @@ -0,0 +1,1085 @@ +package facade.amazonaws.services + +import scalajs._ +import scalajs.js.annotation.JSImport +import scala.scalajs.js.| +import scala.concurrent.Future +import facade.amazonaws._ + +package object synthetics { + type Arn = String + type Blob = js.typedarray.TypedArray[_, _] | js.Array[Byte] | String + type Canaries = js.Array[Canary] + type CanariesLastRun = js.Array[CanaryLastRun] + type CanaryName = String + type CanaryRuns = js.Array[CanaryRun] + type MaxCanaryResults = Int + type MaxFifteenMinutesInSeconds = Int + type MaxOneYearInSeconds = Double + type MaxSize100 = Int + type MaxSize1024 = Int + type MaxSize3008 = Int + type RuntimeVersionList = js.Array[RuntimeVersion] + type SecurityGroupId = String + type SecurityGroupIds = js.Array[SecurityGroupId] + type SubnetId = String + type SubnetIds = js.Array[SubnetId] + type TagKey = String + type TagKeyList = js.Array[TagKey] + type TagMap = js.Dictionary[TagValue] + type TagValue = String + type Timestamp = js.Date + type Token = String + type UUID = String + type VpcId = String + + implicit final class SyntheticsOps(private val service: Synthetics) extends AnyVal { + + @inline def createCanaryFuture(params: CreateCanaryRequest): Future[CreateCanaryResponse] = + service.createCanary(params).promise().toFuture + @inline def deleteCanaryFuture(params: DeleteCanaryRequest): Future[DeleteCanaryResponse] = + service.deleteCanary(params).promise().toFuture + @inline def describeCanariesFuture(params: DescribeCanariesRequest): Future[DescribeCanariesResponse] = + service.describeCanaries(params).promise().toFuture + @inline def describeCanariesLastRunFuture( + params: DescribeCanariesLastRunRequest + ): Future[DescribeCanariesLastRunResponse] = service.describeCanariesLastRun(params).promise().toFuture + @inline def describeRuntimeVersionsFuture( + params: DescribeRuntimeVersionsRequest + ): Future[DescribeRuntimeVersionsResponse] = service.describeRuntimeVersions(params).promise().toFuture + @inline def getCanaryFuture(params: GetCanaryRequest): Future[GetCanaryResponse] = + service.getCanary(params).promise().toFuture + @inline def getCanaryRunsFuture(params: GetCanaryRunsRequest): Future[GetCanaryRunsResponse] = + service.getCanaryRuns(params).promise().toFuture + @inline def listTagsForResourceFuture(params: ListTagsForResourceRequest): Future[ListTagsForResourceResponse] = + service.listTagsForResource(params).promise().toFuture + @inline def startCanaryFuture(params: StartCanaryRequest): Future[StartCanaryResponse] = + service.startCanary(params).promise().toFuture + @inline def stopCanaryFuture(params: StopCanaryRequest): Future[StopCanaryResponse] = + service.stopCanary(params).promise().toFuture + @inline def tagResourceFuture(params: TagResourceRequest): Future[TagResourceResponse] = + service.tagResource(params).promise().toFuture + @inline def untagResourceFuture(params: UntagResourceRequest): Future[UntagResourceResponse] = + service.untagResource(params).promise().toFuture + @inline def updateCanaryFuture(params: UpdateCanaryRequest): Future[UpdateCanaryResponse] = + service.updateCanary(params).promise().toFuture + } +} + +package synthetics { + @js.native + @JSImport("aws-sdk", "Synthetics", "AWS.Synthetics") + class Synthetics() extends js.Object { + def this(config: AWSConfig) = this() + + def createCanary(params: CreateCanaryRequest): Request[CreateCanaryResponse] = js.native + def deleteCanary(params: DeleteCanaryRequest): Request[DeleteCanaryResponse] = js.native + def describeCanaries(params: DescribeCanariesRequest): Request[DescribeCanariesResponse] = js.native + def describeCanariesLastRun(params: DescribeCanariesLastRunRequest): Request[DescribeCanariesLastRunResponse] = + js.native + def describeRuntimeVersions(params: DescribeRuntimeVersionsRequest): Request[DescribeRuntimeVersionsResponse] = + js.native + def getCanary(params: GetCanaryRequest): Request[GetCanaryResponse] = js.native + def getCanaryRuns(params: GetCanaryRunsRequest): Request[GetCanaryRunsResponse] = js.native + def listTagsForResource(params: ListTagsForResourceRequest): Request[ListTagsForResourceResponse] = js.native + def startCanary(params: StartCanaryRequest): Request[StartCanaryResponse] = js.native + def stopCanary(params: StopCanaryRequest): Request[StopCanaryResponse] = js.native + def tagResource(params: TagResourceRequest): Request[TagResourceResponse] = js.native + def untagResource(params: UntagResourceRequest): Request[UntagResourceResponse] = js.native + def updateCanary(params: UpdateCanaryRequest): Request[UpdateCanaryResponse] = js.native + } + + /** + * This structure contains all information about one canary in your account. + */ + @js.native + trait Canary extends js.Object { + var ArtifactS3Location: js.UndefOr[String] + var Code: js.UndefOr[CanaryCodeOutput] + var EngineArn: js.UndefOr[Arn] + var ExecutionRoleArn: js.UndefOr[Arn] + var FailureRetentionPeriodInDays: js.UndefOr[MaxSize1024] + var Id: js.UndefOr[UUID] + var Name: js.UndefOr[CanaryName] + var RunConfig: js.UndefOr[CanaryRunConfigOutput] + var RuntimeVersion: js.UndefOr[String] + var Schedule: js.UndefOr[CanaryScheduleOutput] + var Status: js.UndefOr[CanaryStatus] + var SuccessRetentionPeriodInDays: js.UndefOr[MaxSize1024] + var Tags: js.UndefOr[TagMap] + var Timeline: js.UndefOr[CanaryTimeline] + var VpcConfig: js.UndefOr[VpcConfigOutput] + } + + object Canary { + @inline + def apply( + ArtifactS3Location: js.UndefOr[String] = js.undefined, + Code: js.UndefOr[CanaryCodeOutput] = js.undefined, + EngineArn: js.UndefOr[Arn] = js.undefined, + ExecutionRoleArn: js.UndefOr[Arn] = js.undefined, + FailureRetentionPeriodInDays: js.UndefOr[MaxSize1024] = js.undefined, + Id: js.UndefOr[UUID] = js.undefined, + Name: js.UndefOr[CanaryName] = js.undefined, + RunConfig: js.UndefOr[CanaryRunConfigOutput] = js.undefined, + RuntimeVersion: js.UndefOr[String] = js.undefined, + Schedule: js.UndefOr[CanaryScheduleOutput] = js.undefined, + Status: js.UndefOr[CanaryStatus] = js.undefined, + SuccessRetentionPeriodInDays: js.UndefOr[MaxSize1024] = js.undefined, + Tags: js.UndefOr[TagMap] = js.undefined, + Timeline: js.UndefOr[CanaryTimeline] = js.undefined, + VpcConfig: js.UndefOr[VpcConfigOutput] = js.undefined + ): Canary = { + val __obj = js.Dynamic.literal() + ArtifactS3Location.foreach(__v => __obj.updateDynamic("ArtifactS3Location")(__v.asInstanceOf[js.Any])) + Code.foreach(__v => __obj.updateDynamic("Code")(__v.asInstanceOf[js.Any])) + EngineArn.foreach(__v => __obj.updateDynamic("EngineArn")(__v.asInstanceOf[js.Any])) + ExecutionRoleArn.foreach(__v => __obj.updateDynamic("ExecutionRoleArn")(__v.asInstanceOf[js.Any])) + FailureRetentionPeriodInDays.foreach(__v => + __obj.updateDynamic("FailureRetentionPeriodInDays")(__v.asInstanceOf[js.Any]) + ) + Id.foreach(__v => __obj.updateDynamic("Id")(__v.asInstanceOf[js.Any])) + Name.foreach(__v => __obj.updateDynamic("Name")(__v.asInstanceOf[js.Any])) + RunConfig.foreach(__v => __obj.updateDynamic("RunConfig")(__v.asInstanceOf[js.Any])) + RuntimeVersion.foreach(__v => __obj.updateDynamic("RuntimeVersion")(__v.asInstanceOf[js.Any])) + Schedule.foreach(__v => __obj.updateDynamic("Schedule")(__v.asInstanceOf[js.Any])) + Status.foreach(__v => __obj.updateDynamic("Status")(__v.asInstanceOf[js.Any])) + SuccessRetentionPeriodInDays.foreach(__v => + __obj.updateDynamic("SuccessRetentionPeriodInDays")(__v.asInstanceOf[js.Any]) + ) + Tags.foreach(__v => __obj.updateDynamic("Tags")(__v.asInstanceOf[js.Any])) + Timeline.foreach(__v => __obj.updateDynamic("Timeline")(__v.asInstanceOf[js.Any])) + VpcConfig.foreach(__v => __obj.updateDynamic("VpcConfig")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[Canary] + } + } + + /** + * Use this structure to input your script code for the canary. This structure contains the Lambda handler with the location where the canary should start running the script. If the script is stored in an S3 bucket, the bucket name, key, and version are also included. If the script was passed into the canary directly, the script code is contained in the value of Zipfile. + */ + @js.native + trait CanaryCodeInput extends js.Object { + var Handler: String + var S3Bucket: js.UndefOr[String] + var S3Key: js.UndefOr[String] + var S3Version: js.UndefOr[String] + var ZipFile: js.UndefOr[Blob] + } + + object CanaryCodeInput { + @inline + def apply( + Handler: String, + S3Bucket: js.UndefOr[String] = js.undefined, + S3Key: js.UndefOr[String] = js.undefined, + S3Version: js.UndefOr[String] = js.undefined, + ZipFile: js.UndefOr[Blob] = js.undefined + ): CanaryCodeInput = { + val __obj = js.Dynamic.literal( + "Handler" -> Handler.asInstanceOf[js.Any] + ) + + S3Bucket.foreach(__v => __obj.updateDynamic("S3Bucket")(__v.asInstanceOf[js.Any])) + S3Key.foreach(__v => __obj.updateDynamic("S3Key")(__v.asInstanceOf[js.Any])) + S3Version.foreach(__v => __obj.updateDynamic("S3Version")(__v.asInstanceOf[js.Any])) + ZipFile.foreach(__v => __obj.updateDynamic("ZipFile")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CanaryCodeInput] + } + } + + /** + * This structure contains information about the canary's Lambda handler and where its code is stored by CloudWatch Synthetics. + */ + @js.native + trait CanaryCodeOutput extends js.Object { + var Handler: js.UndefOr[String] + var SourceLocationArn: js.UndefOr[String] + } + + object CanaryCodeOutput { + @inline + def apply( + Handler: js.UndefOr[String] = js.undefined, + SourceLocationArn: js.UndefOr[String] = js.undefined + ): CanaryCodeOutput = { + val __obj = js.Dynamic.literal() + Handler.foreach(__v => __obj.updateDynamic("Handler")(__v.asInstanceOf[js.Any])) + SourceLocationArn.foreach(__v => __obj.updateDynamic("SourceLocationArn")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CanaryCodeOutput] + } + } + + /** + * This structure contains information about the most recent run of a single canary. + */ + @js.native + trait CanaryLastRun extends js.Object { + var CanaryName: js.UndefOr[CanaryName] + var LastRun: js.UndefOr[CanaryRun] + } + + object CanaryLastRun { + @inline + def apply( + CanaryName: js.UndefOr[CanaryName] = js.undefined, + LastRun: js.UndefOr[CanaryRun] = js.undefined + ): CanaryLastRun = { + val __obj = js.Dynamic.literal() + CanaryName.foreach(__v => __obj.updateDynamic("CanaryName")(__v.asInstanceOf[js.Any])) + LastRun.foreach(__v => __obj.updateDynamic("LastRun")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CanaryLastRun] + } + } + + /** + * This structure contains the details about one run of one canary. + */ + @js.native + trait CanaryRun extends js.Object { + var ArtifactS3Location: js.UndefOr[String] + var Name: js.UndefOr[CanaryName] + var Status: js.UndefOr[CanaryRunStatus] + var Timeline: js.UndefOr[CanaryRunTimeline] + } + + object CanaryRun { + @inline + def apply( + ArtifactS3Location: js.UndefOr[String] = js.undefined, + Name: js.UndefOr[CanaryName] = js.undefined, + Status: js.UndefOr[CanaryRunStatus] = js.undefined, + Timeline: js.UndefOr[CanaryRunTimeline] = js.undefined + ): CanaryRun = { + val __obj = js.Dynamic.literal() + ArtifactS3Location.foreach(__v => __obj.updateDynamic("ArtifactS3Location")(__v.asInstanceOf[js.Any])) + Name.foreach(__v => __obj.updateDynamic("Name")(__v.asInstanceOf[js.Any])) + Status.foreach(__v => __obj.updateDynamic("Status")(__v.asInstanceOf[js.Any])) + Timeline.foreach(__v => __obj.updateDynamic("Timeline")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CanaryRun] + } + } + + /** + * A structure that contains input information for a canary run. + */ + @js.native + trait CanaryRunConfigInput extends js.Object { + var TimeoutInSeconds: MaxFifteenMinutesInSeconds + var MemoryInMB: js.UndefOr[MaxSize3008] + } + + object CanaryRunConfigInput { + @inline + def apply( + TimeoutInSeconds: MaxFifteenMinutesInSeconds, + MemoryInMB: js.UndefOr[MaxSize3008] = js.undefined + ): CanaryRunConfigInput = { + val __obj = js.Dynamic.literal( + "TimeoutInSeconds" -> TimeoutInSeconds.asInstanceOf[js.Any] + ) + + MemoryInMB.foreach(__v => __obj.updateDynamic("MemoryInMB")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CanaryRunConfigInput] + } + } + + /** + * A structure that contains information for a canary run. + */ + @js.native + trait CanaryRunConfigOutput extends js.Object { + var MemoryInMB: js.UndefOr[MaxSize3008] + var TimeoutInSeconds: js.UndefOr[MaxFifteenMinutesInSeconds] + } + + object CanaryRunConfigOutput { + @inline + def apply( + MemoryInMB: js.UndefOr[MaxSize3008] = js.undefined, + TimeoutInSeconds: js.UndefOr[MaxFifteenMinutesInSeconds] = js.undefined + ): CanaryRunConfigOutput = { + val __obj = js.Dynamic.literal() + MemoryInMB.foreach(__v => __obj.updateDynamic("MemoryInMB")(__v.asInstanceOf[js.Any])) + TimeoutInSeconds.foreach(__v => __obj.updateDynamic("TimeoutInSeconds")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CanaryRunConfigOutput] + } + } + + @js.native + sealed trait CanaryRunState extends js.Any + object CanaryRunState extends js.Object { + val RUNNING = "RUNNING".asInstanceOf[CanaryRunState] + val PASSED = "PASSED".asInstanceOf[CanaryRunState] + val FAILED = "FAILED".asInstanceOf[CanaryRunState] + + val values = js.Object.freeze(js.Array(RUNNING, PASSED, FAILED)) + } + + @js.native + sealed trait CanaryRunStateReasonCode extends js.Any + object CanaryRunStateReasonCode extends js.Object { + val CANARY_FAILURE = "CANARY_FAILURE".asInstanceOf[CanaryRunStateReasonCode] + val EXECUTION_FAILURE = "EXECUTION_FAILURE".asInstanceOf[CanaryRunStateReasonCode] + + val values = js.Object.freeze(js.Array(CANARY_FAILURE, EXECUTION_FAILURE)) + } + + /** + * This structure contains the status information about a canary run. + */ + @js.native + trait CanaryRunStatus extends js.Object { + var State: js.UndefOr[CanaryRunState] + var StateReason: js.UndefOr[String] + var StateReasonCode: js.UndefOr[CanaryRunStateReasonCode] + } + + object CanaryRunStatus { + @inline + def apply( + State: js.UndefOr[CanaryRunState] = js.undefined, + StateReason: js.UndefOr[String] = js.undefined, + StateReasonCode: js.UndefOr[CanaryRunStateReasonCode] = js.undefined + ): CanaryRunStatus = { + val __obj = js.Dynamic.literal() + State.foreach(__v => __obj.updateDynamic("State")(__v.asInstanceOf[js.Any])) + StateReason.foreach(__v => __obj.updateDynamic("StateReason")(__v.asInstanceOf[js.Any])) + StateReasonCode.foreach(__v => __obj.updateDynamic("StateReasonCode")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CanaryRunStatus] + } + } + + /** + * This structure contains the start and end times of a single canary run. + */ + @js.native + trait CanaryRunTimeline extends js.Object { + var Completed: js.UndefOr[Timestamp] + var Started: js.UndefOr[Timestamp] + } + + object CanaryRunTimeline { + @inline + def apply( + Completed: js.UndefOr[Timestamp] = js.undefined, + Started: js.UndefOr[Timestamp] = js.undefined + ): CanaryRunTimeline = { + val __obj = js.Dynamic.literal() + Completed.foreach(__v => __obj.updateDynamic("Completed")(__v.asInstanceOf[js.Any])) + Started.foreach(__v => __obj.updateDynamic("Started")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CanaryRunTimeline] + } + } + + /** + * This structure specifies how often a canary is to make runs and the date and time when it should stop making runs. + */ + @js.native + trait CanaryScheduleInput extends js.Object { + var Expression: String + var DurationInSeconds: js.UndefOr[MaxOneYearInSeconds] + } + + object CanaryScheduleInput { + @inline + def apply( + Expression: String, + DurationInSeconds: js.UndefOr[MaxOneYearInSeconds] = js.undefined + ): CanaryScheduleInput = { + val __obj = js.Dynamic.literal( + "Expression" -> Expression.asInstanceOf[js.Any] + ) + + DurationInSeconds.foreach(__v => __obj.updateDynamic("DurationInSeconds")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CanaryScheduleInput] + } + } + + /** + * How long, in seconds, for the canary to continue making regular runs according to the schedule in the Expression value. + */ + @js.native + trait CanaryScheduleOutput extends js.Object { + var DurationInSeconds: js.UndefOr[MaxOneYearInSeconds] + var Expression: js.UndefOr[String] + } + + object CanaryScheduleOutput { + @inline + def apply( + DurationInSeconds: js.UndefOr[MaxOneYearInSeconds] = js.undefined, + Expression: js.UndefOr[String] = js.undefined + ): CanaryScheduleOutput = { + val __obj = js.Dynamic.literal() + DurationInSeconds.foreach(__v => __obj.updateDynamic("DurationInSeconds")(__v.asInstanceOf[js.Any])) + Expression.foreach(__v => __obj.updateDynamic("Expression")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CanaryScheduleOutput] + } + } + + @js.native + sealed trait CanaryState extends js.Any + object CanaryState extends js.Object { + val CREATING = "CREATING".asInstanceOf[CanaryState] + val READY = "READY".asInstanceOf[CanaryState] + val STARTING = "STARTING".asInstanceOf[CanaryState] + val RUNNING = "RUNNING".asInstanceOf[CanaryState] + val UPDATING = "UPDATING".asInstanceOf[CanaryState] + val STOPPING = "STOPPING".asInstanceOf[CanaryState] + val STOPPED = "STOPPED".asInstanceOf[CanaryState] + val ERROR = "ERROR".asInstanceOf[CanaryState] + val DELETING = "DELETING".asInstanceOf[CanaryState] + + val values = + js.Object.freeze(js.Array(CREATING, READY, STARTING, RUNNING, UPDATING, STOPPING, STOPPED, ERROR, DELETING)) + } + + @js.native + sealed trait CanaryStateReasonCode extends js.Any + object CanaryStateReasonCode extends js.Object { + val INVALID_PERMISSIONS = "INVALID_PERMISSIONS".asInstanceOf[CanaryStateReasonCode] + + val values = js.Object.freeze(js.Array(INVALID_PERMISSIONS)) + } + + /** + * A structure that contains the current state of the canary. + */ + @js.native + trait CanaryStatus extends js.Object { + var State: js.UndefOr[CanaryState] + var StateReason: js.UndefOr[String] + var StateReasonCode: js.UndefOr[CanaryStateReasonCode] + } + + object CanaryStatus { + @inline + def apply( + State: js.UndefOr[CanaryState] = js.undefined, + StateReason: js.UndefOr[String] = js.undefined, + StateReasonCode: js.UndefOr[CanaryStateReasonCode] = js.undefined + ): CanaryStatus = { + val __obj = js.Dynamic.literal() + State.foreach(__v => __obj.updateDynamic("State")(__v.asInstanceOf[js.Any])) + StateReason.foreach(__v => __obj.updateDynamic("StateReason")(__v.asInstanceOf[js.Any])) + StateReasonCode.foreach(__v => __obj.updateDynamic("StateReasonCode")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CanaryStatus] + } + } + + /** + * This structure contains information about when the canary was created and modified. + */ + @js.native + trait CanaryTimeline extends js.Object { + var Created: js.UndefOr[Timestamp] + var LastModified: js.UndefOr[Timestamp] + var LastStarted: js.UndefOr[Timestamp] + var LastStopped: js.UndefOr[Timestamp] + } + + object CanaryTimeline { + @inline + def apply( + Created: js.UndefOr[Timestamp] = js.undefined, + LastModified: js.UndefOr[Timestamp] = js.undefined, + LastStarted: js.UndefOr[Timestamp] = js.undefined, + LastStopped: js.UndefOr[Timestamp] = js.undefined + ): CanaryTimeline = { + val __obj = js.Dynamic.literal() + Created.foreach(__v => __obj.updateDynamic("Created")(__v.asInstanceOf[js.Any])) + LastModified.foreach(__v => __obj.updateDynamic("LastModified")(__v.asInstanceOf[js.Any])) + LastStarted.foreach(__v => __obj.updateDynamic("LastStarted")(__v.asInstanceOf[js.Any])) + LastStopped.foreach(__v => __obj.updateDynamic("LastStopped")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CanaryTimeline] + } + } + + @js.native + trait CreateCanaryRequest extends js.Object { + var ArtifactS3Location: String + var Code: CanaryCodeInput + var ExecutionRoleArn: Arn + var Name: CanaryName + var RuntimeVersion: String + var Schedule: CanaryScheduleInput + var FailureRetentionPeriodInDays: js.UndefOr[MaxSize1024] + var RunConfig: js.UndefOr[CanaryRunConfigInput] + var SuccessRetentionPeriodInDays: js.UndefOr[MaxSize1024] + var Tags: js.UndefOr[TagMap] + var VpcConfig: js.UndefOr[VpcConfigInput] + } + + object CreateCanaryRequest { + @inline + def apply( + ArtifactS3Location: String, + Code: CanaryCodeInput, + ExecutionRoleArn: Arn, + Name: CanaryName, + RuntimeVersion: String, + Schedule: CanaryScheduleInput, + FailureRetentionPeriodInDays: js.UndefOr[MaxSize1024] = js.undefined, + RunConfig: js.UndefOr[CanaryRunConfigInput] = js.undefined, + SuccessRetentionPeriodInDays: js.UndefOr[MaxSize1024] = js.undefined, + Tags: js.UndefOr[TagMap] = js.undefined, + VpcConfig: js.UndefOr[VpcConfigInput] = js.undefined + ): CreateCanaryRequest = { + val __obj = js.Dynamic.literal( + "ArtifactS3Location" -> ArtifactS3Location.asInstanceOf[js.Any], + "Code" -> Code.asInstanceOf[js.Any], + "ExecutionRoleArn" -> ExecutionRoleArn.asInstanceOf[js.Any], + "Name" -> Name.asInstanceOf[js.Any], + "RuntimeVersion" -> RuntimeVersion.asInstanceOf[js.Any], + "Schedule" -> Schedule.asInstanceOf[js.Any] + ) + + FailureRetentionPeriodInDays.foreach(__v => + __obj.updateDynamic("FailureRetentionPeriodInDays")(__v.asInstanceOf[js.Any]) + ) + RunConfig.foreach(__v => __obj.updateDynamic("RunConfig")(__v.asInstanceOf[js.Any])) + SuccessRetentionPeriodInDays.foreach(__v => + __obj.updateDynamic("SuccessRetentionPeriodInDays")(__v.asInstanceOf[js.Any]) + ) + Tags.foreach(__v => __obj.updateDynamic("Tags")(__v.asInstanceOf[js.Any])) + VpcConfig.foreach(__v => __obj.updateDynamic("VpcConfig")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateCanaryRequest] + } + } + + @js.native + trait CreateCanaryResponse extends js.Object { + var Canary: js.UndefOr[Canary] + } + + object CreateCanaryResponse { + @inline + def apply( + Canary: js.UndefOr[Canary] = js.undefined + ): CreateCanaryResponse = { + val __obj = js.Dynamic.literal() + Canary.foreach(__v => __obj.updateDynamic("Canary")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[CreateCanaryResponse] + } + } + + @js.native + trait DeleteCanaryRequest extends js.Object { + var Name: CanaryName + } + + object DeleteCanaryRequest { + @inline + def apply( + Name: CanaryName + ): DeleteCanaryRequest = { + val __obj = js.Dynamic.literal( + "Name" -> Name.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[DeleteCanaryRequest] + } + } + + @js.native + trait DeleteCanaryResponse extends js.Object {} + + object DeleteCanaryResponse { + @inline + def apply( + ): DeleteCanaryResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[DeleteCanaryResponse] + } + } + + @js.native + trait DescribeCanariesLastRunRequest extends js.Object { + var MaxResults: js.UndefOr[MaxSize100] + var NextToken: js.UndefOr[Token] + } + + object DescribeCanariesLastRunRequest { + @inline + def apply( + MaxResults: js.UndefOr[MaxSize100] = js.undefined, + NextToken: js.UndefOr[Token] = js.undefined + ): DescribeCanariesLastRunRequest = { + val __obj = js.Dynamic.literal() + MaxResults.foreach(__v => __obj.updateDynamic("MaxResults")(__v.asInstanceOf[js.Any])) + NextToken.foreach(__v => __obj.updateDynamic("NextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DescribeCanariesLastRunRequest] + } + } + + @js.native + trait DescribeCanariesLastRunResponse extends js.Object { + var CanariesLastRun: js.UndefOr[CanariesLastRun] + var NextToken: js.UndefOr[Token] + } + + object DescribeCanariesLastRunResponse { + @inline + def apply( + CanariesLastRun: js.UndefOr[CanariesLastRun] = js.undefined, + NextToken: js.UndefOr[Token] = js.undefined + ): DescribeCanariesLastRunResponse = { + val __obj = js.Dynamic.literal() + CanariesLastRun.foreach(__v => __obj.updateDynamic("CanariesLastRun")(__v.asInstanceOf[js.Any])) + NextToken.foreach(__v => __obj.updateDynamic("NextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DescribeCanariesLastRunResponse] + } + } + + @js.native + trait DescribeCanariesRequest extends js.Object { + var MaxResults: js.UndefOr[MaxCanaryResults] + var NextToken: js.UndefOr[Token] + } + + object DescribeCanariesRequest { + @inline + def apply( + MaxResults: js.UndefOr[MaxCanaryResults] = js.undefined, + NextToken: js.UndefOr[Token] = js.undefined + ): DescribeCanariesRequest = { + val __obj = js.Dynamic.literal() + MaxResults.foreach(__v => __obj.updateDynamic("MaxResults")(__v.asInstanceOf[js.Any])) + NextToken.foreach(__v => __obj.updateDynamic("NextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DescribeCanariesRequest] + } + } + + @js.native + trait DescribeCanariesResponse extends js.Object { + var Canaries: js.UndefOr[Canaries] + var NextToken: js.UndefOr[Token] + } + + object DescribeCanariesResponse { + @inline + def apply( + Canaries: js.UndefOr[Canaries] = js.undefined, + NextToken: js.UndefOr[Token] = js.undefined + ): DescribeCanariesResponse = { + val __obj = js.Dynamic.literal() + Canaries.foreach(__v => __obj.updateDynamic("Canaries")(__v.asInstanceOf[js.Any])) + NextToken.foreach(__v => __obj.updateDynamic("NextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DescribeCanariesResponse] + } + } + + @js.native + trait DescribeRuntimeVersionsRequest extends js.Object { + var MaxResults: js.UndefOr[MaxSize100] + var NextToken: js.UndefOr[Token] + } + + object DescribeRuntimeVersionsRequest { + @inline + def apply( + MaxResults: js.UndefOr[MaxSize100] = js.undefined, + NextToken: js.UndefOr[Token] = js.undefined + ): DescribeRuntimeVersionsRequest = { + val __obj = js.Dynamic.literal() + MaxResults.foreach(__v => __obj.updateDynamic("MaxResults")(__v.asInstanceOf[js.Any])) + NextToken.foreach(__v => __obj.updateDynamic("NextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DescribeRuntimeVersionsRequest] + } + } + + @js.native + trait DescribeRuntimeVersionsResponse extends js.Object { + var NextToken: js.UndefOr[Token] + var RuntimeVersions: js.UndefOr[RuntimeVersionList] + } + + object DescribeRuntimeVersionsResponse { + @inline + def apply( + NextToken: js.UndefOr[Token] = js.undefined, + RuntimeVersions: js.UndefOr[RuntimeVersionList] = js.undefined + ): DescribeRuntimeVersionsResponse = { + val __obj = js.Dynamic.literal() + NextToken.foreach(__v => __obj.updateDynamic("NextToken")(__v.asInstanceOf[js.Any])) + RuntimeVersions.foreach(__v => __obj.updateDynamic("RuntimeVersions")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[DescribeRuntimeVersionsResponse] + } + } + + @js.native + trait GetCanaryRequest extends js.Object { + var Name: CanaryName + } + + object GetCanaryRequest { + @inline + def apply( + Name: CanaryName + ): GetCanaryRequest = { + val __obj = js.Dynamic.literal( + "Name" -> Name.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[GetCanaryRequest] + } + } + + @js.native + trait GetCanaryResponse extends js.Object { + var Canary: js.UndefOr[Canary] + } + + object GetCanaryResponse { + @inline + def apply( + Canary: js.UndefOr[Canary] = js.undefined + ): GetCanaryResponse = { + val __obj = js.Dynamic.literal() + Canary.foreach(__v => __obj.updateDynamic("Canary")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetCanaryResponse] + } + } + + @js.native + trait GetCanaryRunsRequest extends js.Object { + var Name: CanaryName + var MaxResults: js.UndefOr[MaxSize100] + var NextToken: js.UndefOr[Token] + } + + object GetCanaryRunsRequest { + @inline + def apply( + Name: CanaryName, + MaxResults: js.UndefOr[MaxSize100] = js.undefined, + NextToken: js.UndefOr[Token] = js.undefined + ): GetCanaryRunsRequest = { + val __obj = js.Dynamic.literal( + "Name" -> Name.asInstanceOf[js.Any] + ) + + MaxResults.foreach(__v => __obj.updateDynamic("MaxResults")(__v.asInstanceOf[js.Any])) + NextToken.foreach(__v => __obj.updateDynamic("NextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetCanaryRunsRequest] + } + } + + @js.native + trait GetCanaryRunsResponse extends js.Object { + var CanaryRuns: js.UndefOr[CanaryRuns] + var NextToken: js.UndefOr[Token] + } + + object GetCanaryRunsResponse { + @inline + def apply( + CanaryRuns: js.UndefOr[CanaryRuns] = js.undefined, + NextToken: js.UndefOr[Token] = js.undefined + ): GetCanaryRunsResponse = { + val __obj = js.Dynamic.literal() + CanaryRuns.foreach(__v => __obj.updateDynamic("CanaryRuns")(__v.asInstanceOf[js.Any])) + NextToken.foreach(__v => __obj.updateDynamic("NextToken")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[GetCanaryRunsResponse] + } + } + + @js.native + trait ListTagsForResourceRequest extends js.Object { + var ResourceArn: Arn + } + + object ListTagsForResourceRequest { + @inline + def apply( + ResourceArn: Arn + ): ListTagsForResourceRequest = { + val __obj = js.Dynamic.literal( + "ResourceArn" -> ResourceArn.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[ListTagsForResourceRequest] + } + } + + @js.native + trait ListTagsForResourceResponse extends js.Object { + var Tags: js.UndefOr[TagMap] + } + + object ListTagsForResourceResponse { + @inline + def apply( + Tags: js.UndefOr[TagMap] = js.undefined + ): ListTagsForResourceResponse = { + val __obj = js.Dynamic.literal() + Tags.foreach(__v => __obj.updateDynamic("Tags")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[ListTagsForResourceResponse] + } + } + + /** + * This structure contains information about one canary runtime version. For more information about runtime versions, see [[https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html| Canary Runtime Versions]]. + */ + @js.native + trait RuntimeVersion extends js.Object { + var DeprecationDate: js.UndefOr[Timestamp] + var Description: js.UndefOr[String] + var ReleaseDate: js.UndefOr[Timestamp] + var VersionName: js.UndefOr[String] + } + + object RuntimeVersion { + @inline + def apply( + DeprecationDate: js.UndefOr[Timestamp] = js.undefined, + Description: js.UndefOr[String] = js.undefined, + ReleaseDate: js.UndefOr[Timestamp] = js.undefined, + VersionName: js.UndefOr[String] = js.undefined + ): RuntimeVersion = { + val __obj = js.Dynamic.literal() + DeprecationDate.foreach(__v => __obj.updateDynamic("DeprecationDate")(__v.asInstanceOf[js.Any])) + Description.foreach(__v => __obj.updateDynamic("Description")(__v.asInstanceOf[js.Any])) + ReleaseDate.foreach(__v => __obj.updateDynamic("ReleaseDate")(__v.asInstanceOf[js.Any])) + VersionName.foreach(__v => __obj.updateDynamic("VersionName")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[RuntimeVersion] + } + } + + @js.native + trait StartCanaryRequest extends js.Object { + var Name: CanaryName + } + + object StartCanaryRequest { + @inline + def apply( + Name: CanaryName + ): StartCanaryRequest = { + val __obj = js.Dynamic.literal( + "Name" -> Name.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[StartCanaryRequest] + } + } + + @js.native + trait StartCanaryResponse extends js.Object {} + + object StartCanaryResponse { + @inline + def apply( + ): StartCanaryResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[StartCanaryResponse] + } + } + + @js.native + trait StopCanaryRequest extends js.Object { + var Name: CanaryName + } + + object StopCanaryRequest { + @inline + def apply( + Name: CanaryName + ): StopCanaryRequest = { + val __obj = js.Dynamic.literal( + "Name" -> Name.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[StopCanaryRequest] + } + } + + @js.native + trait StopCanaryResponse extends js.Object {} + + object StopCanaryResponse { + @inline + def apply( + ): StopCanaryResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[StopCanaryResponse] + } + } + + @js.native + trait TagResourceRequest extends js.Object { + var ResourceArn: Arn + var Tags: TagMap + } + + object TagResourceRequest { + @inline + def apply( + ResourceArn: Arn, + Tags: TagMap + ): TagResourceRequest = { + val __obj = js.Dynamic.literal( + "ResourceArn" -> ResourceArn.asInstanceOf[js.Any], + "Tags" -> Tags.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[TagResourceRequest] + } + } + + @js.native + trait TagResourceResponse extends js.Object {} + + object TagResourceResponse { + @inline + def apply( + ): TagResourceResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[TagResourceResponse] + } + } + + @js.native + trait UntagResourceRequest extends js.Object { + var ResourceArn: Arn + var TagKeys: TagKeyList + } + + object UntagResourceRequest { + @inline + def apply( + ResourceArn: Arn, + TagKeys: TagKeyList + ): UntagResourceRequest = { + val __obj = js.Dynamic.literal( + "ResourceArn" -> ResourceArn.asInstanceOf[js.Any], + "TagKeys" -> TagKeys.asInstanceOf[js.Any] + ) + + __obj.asInstanceOf[UntagResourceRequest] + } + } + + @js.native + trait UntagResourceResponse extends js.Object {} + + object UntagResourceResponse { + @inline + def apply( + ): UntagResourceResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[UntagResourceResponse] + } + } + + @js.native + trait UpdateCanaryRequest extends js.Object { + var Name: CanaryName + var Code: js.UndefOr[CanaryCodeInput] + var ExecutionRoleArn: js.UndefOr[Arn] + var FailureRetentionPeriodInDays: js.UndefOr[MaxSize1024] + var RunConfig: js.UndefOr[CanaryRunConfigInput] + var RuntimeVersion: js.UndefOr[String] + var Schedule: js.UndefOr[CanaryScheduleInput] + var SuccessRetentionPeriodInDays: js.UndefOr[MaxSize1024] + var VpcConfig: js.UndefOr[VpcConfigInput] + } + + object UpdateCanaryRequest { + @inline + def apply( + Name: CanaryName, + Code: js.UndefOr[CanaryCodeInput] = js.undefined, + ExecutionRoleArn: js.UndefOr[Arn] = js.undefined, + FailureRetentionPeriodInDays: js.UndefOr[MaxSize1024] = js.undefined, + RunConfig: js.UndefOr[CanaryRunConfigInput] = js.undefined, + RuntimeVersion: js.UndefOr[String] = js.undefined, + Schedule: js.UndefOr[CanaryScheduleInput] = js.undefined, + SuccessRetentionPeriodInDays: js.UndefOr[MaxSize1024] = js.undefined, + VpcConfig: js.UndefOr[VpcConfigInput] = js.undefined + ): UpdateCanaryRequest = { + val __obj = js.Dynamic.literal( + "Name" -> Name.asInstanceOf[js.Any] + ) + + Code.foreach(__v => __obj.updateDynamic("Code")(__v.asInstanceOf[js.Any])) + ExecutionRoleArn.foreach(__v => __obj.updateDynamic("ExecutionRoleArn")(__v.asInstanceOf[js.Any])) + FailureRetentionPeriodInDays.foreach(__v => + __obj.updateDynamic("FailureRetentionPeriodInDays")(__v.asInstanceOf[js.Any]) + ) + RunConfig.foreach(__v => __obj.updateDynamic("RunConfig")(__v.asInstanceOf[js.Any])) + RuntimeVersion.foreach(__v => __obj.updateDynamic("RuntimeVersion")(__v.asInstanceOf[js.Any])) + Schedule.foreach(__v => __obj.updateDynamic("Schedule")(__v.asInstanceOf[js.Any])) + SuccessRetentionPeriodInDays.foreach(__v => + __obj.updateDynamic("SuccessRetentionPeriodInDays")(__v.asInstanceOf[js.Any]) + ) + VpcConfig.foreach(__v => __obj.updateDynamic("VpcConfig")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[UpdateCanaryRequest] + } + } + + @js.native + trait UpdateCanaryResponse extends js.Object {} + + object UpdateCanaryResponse { + @inline + def apply( + ): UpdateCanaryResponse = { + val __obj = js.Dynamic.literal() + + __obj.asInstanceOf[UpdateCanaryResponse] + } + } + + /** + * If this canary is to test an endpoint in a VPC, this structure contains information about the subnets and security groups of the VPC endpoint. For more information, see [[https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_VPC.html| Running a Canary in a VPC]]. + */ + @js.native + trait VpcConfigInput extends js.Object { + var SecurityGroupIds: js.UndefOr[SecurityGroupIds] + var SubnetIds: js.UndefOr[SubnetIds] + } + + object VpcConfigInput { + @inline + def apply( + SecurityGroupIds: js.UndefOr[SecurityGroupIds] = js.undefined, + SubnetIds: js.UndefOr[SubnetIds] = js.undefined + ): VpcConfigInput = { + val __obj = js.Dynamic.literal() + SecurityGroupIds.foreach(__v => __obj.updateDynamic("SecurityGroupIds")(__v.asInstanceOf[js.Any])) + SubnetIds.foreach(__v => __obj.updateDynamic("SubnetIds")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[VpcConfigInput] + } + } + + /** + * If this canary is to test an endpoint in a VPC, this structure contains information about the subnets and security groups of the VPC endpoint. For more information, see [[https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_VPC.html| Running a Canary in a VPC]]. + */ + @js.native + trait VpcConfigOutput extends js.Object { + var SecurityGroupIds: js.UndefOr[SecurityGroupIds] + var SubnetIds: js.UndefOr[SubnetIds] + var VpcId: js.UndefOr[VpcId] + } + + object VpcConfigOutput { + @inline + def apply( + SecurityGroupIds: js.UndefOr[SecurityGroupIds] = js.undefined, + SubnetIds: js.UndefOr[SubnetIds] = js.undefined, + VpcId: js.UndefOr[VpcId] = js.undefined + ): VpcConfigOutput = { + val __obj = js.Dynamic.literal() + SecurityGroupIds.foreach(__v => __obj.updateDynamic("SecurityGroupIds")(__v.asInstanceOf[js.Any])) + SubnetIds.foreach(__v => __obj.updateDynamic("SubnetIds")(__v.asInstanceOf[js.Any])) + VpcId.foreach(__v => __obj.updateDynamic("VpcId")(__v.asInstanceOf[js.Any])) + __obj.asInstanceOf[VpcConfigOutput] + } + } +} From 3facf5d8bfaff5c33290ff21ce37ea746a4c2534 Mon Sep 17 00:00:00 2001 From: exoego Date: Fri, 17 Jul 2020 08:55:42 +0900 Subject: [PATCH 2/2] Add new services to docs --- ARTIFACTS.md | 11 ++++++++--- README.md | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ARTIFACTS.md b/ARTIFACTS.md index 38f57b71e..ff753037f 100644 --- a/ARTIFACTS.md +++ b/ARTIFACTS.md @@ -1,6 +1,6 @@ You can include all-in-one dependencyby adding below single dependency. ```scala -libraryDependencies += "net.exoego" %%% "aws-sdk-scalajs-facade" % "0.28.0-v2.596.0" +libraryDependencies += "net.exoego" %%% "aws-sdk-scalajs-facade" % "VERSION(SEE README.md)" ``` This dependency contains all AWS and, also offers companion object `AWS` as same as `aws-sdk-js`. However, this artifact is quite huge (100MB+!!). @@ -9,9 +9,8 @@ If you need only a few AWS (e.g. S3 and DynamoDB), you may consider to depend on It will shorten download time and linking time (`fullOptJS`/`fastOptJS`). ```scala -val awsSdkScalajsFacadeVersion = "0.28.0-v2.596.0" +val awsSdkScalajsFacadeVersion = "VERSION(SEE README.md)" libraryDependencies ++= Seq( - "net.exoego" %%% "aws-sdk-scalajs-facade-accessanalyzer" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-acm" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-acmpca" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-alexaforbusiness" % awsSdkScalajsFacadeVersion, @@ -47,6 +46,7 @@ libraryDependencies ++= Seq( "net.exoego" %%% "aws-sdk-scalajs-facade-cloudwatch" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-cloudwatchevents" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-cloudwatchlogs" % awsSdkScalajsFacadeVersion, + "net.exoego" %%% "aws-sdk-scalajs-facade-codeartifact" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-codebuild" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-codecommit" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-codedeploy" % awsSdkScalajsFacadeVersion, @@ -110,6 +110,7 @@ libraryDependencies ++= Seq( "net.exoego" %%% "aws-sdk-scalajs-facade-groundstation" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-guardduty" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-health" % awsSdkScalajsFacadeVersion, + "net.exoego" %%% "aws-sdk-scalajs-facade-honeycode" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-iam" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-imagebuilder" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-importexport" % awsSdkScalajsFacadeVersion, @@ -123,7 +124,9 @@ libraryDependencies ++= Seq( "net.exoego" %%% "aws-sdk-scalajs-facade-ioteventsdata" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-iotjobsdataplane" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-iotsecuretunneling" % awsSdkScalajsFacadeVersion, + "net.exoego" %%% "aws-sdk-scalajs-facade-iotsitewise" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-iotthingsgraph" % awsSdkScalajsFacadeVersion, + "net.exoego" %%% "aws-sdk-scalajs-facade-ivs" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-kafka" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-kendra" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-kinesis" % awsSdkScalajsFacadeVersion, @@ -142,6 +145,7 @@ libraryDependencies ++= Seq( "net.exoego" %%% "aws-sdk-scalajs-facade-lightsail" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-machinelearning" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-macie" % awsSdkScalajsFacadeVersion, + "net.exoego" %%% "aws-sdk-scalajs-facade-macie2" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-managedblockchain" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-marketplacecatalog" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-marketplacecommerceanalytics" % awsSdkScalajsFacadeVersion, @@ -219,6 +223,7 @@ libraryDependencies ++= Seq( "net.exoego" %%% "aws-sdk-scalajs-facade-sts" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-support" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-swf" % awsSdkScalajsFacadeVersion, + "net.exoego" %%% "aws-sdk-scalajs-facade-synthetics" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-textract" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-transcribeservice" % awsSdkScalajsFacadeVersion, "net.exoego" %%% "aws-sdk-scalajs-facade-transfer" % awsSdkScalajsFacadeVersion, diff --git a/README.md b/README.md index ad6c8e897..3f899beac 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ A complete set of [Scala.js](https://www.scala-js.org/) type facade for [aws/aws-sdk-js](https://github.com/aws/aws-sdk-js/). -[All **222 AWS**](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/top-level-namespace.html) are available as of 2020-01-02, and keep updating. +[All **226 AWS**](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/top-level-namespace.html) are available as of 2020-07-17, and keep updating. You may find the below peer facades useful when developing app with AWS.